Add missing generated sources and windows targets for awssdk-kms

awssdk-kms is built from source with soong, but requires some generated
sources that are created upstream via maven plugin.

These sources were created by running `mvn generate-sources` locally, and
then checking in the (normally ignored) source files that are then used
to compile the SDK.

This change also enables all build targets for windows, now that targets
in other repositories also have windows enabled.

Bug: 319296495
Test: m awssdk-kms
Test: m apksigner-kms && apksigner-kms sign --ks-type aws --ks-key-alias rsa-2048 --cert
src/test/resources/com/android/apksig/rsa-2048.x509.pem
--v4-signing-enabled false --alignment-preserved --in
src/test/resources/com/android/apksig/golden-aligned-in.apk --out
src/test/resources/com/android/apksig/golden-aligned-out.apk
(golden output remains unchanged)

Change-Id: Ib08d984894705b2f7821be0621a6de3cc85c6134
diff --git a/core/auth/Android.bp b/core/auth/Android.bp
index f7d5bef..5568e0d 100644
--- a/core/auth/Android.bp
+++ b/core/auth/Android.bp
@@ -3,7 +3,7 @@
     srcs: ["src/main/**/*.java"],
     libs: [
         "slf4j-api",
-        "awssdk-annotations"
+        "awssdk-annotations",
     ],
     static_libs: [
         "aws-eventstream-java",
@@ -12,10 +12,9 @@
         "awssdk-profiles",
         "awssdk-http-auth",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/core/aws-core/Android.bp b/core/aws-core/Android.bp
index dfbcf64..e2a99e1 100644
--- a/core/aws-core/Android.bp
+++ b/core/aws-core/Android.bp
@@ -2,6 +2,9 @@
     name: "awssdk-aws-core",
     srcs: [
         "src/main/**/*.java",
+        // These files were generated locally with maven: `mvn generate-sources`,
+        // and then checked in with `git add -f`, so that soong can build this
+        // target from source.
         "target/generated-sources/**/*.java",
     ],
     libs: ["awssdk-annotations"],
@@ -11,10 +14,9 @@
         "awssdk-sdk-core",
         "awssdk-profiles",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
-}
\ No newline at end of file
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
+}
diff --git a/core/json-utils/Android.bp b/core/json-utils/Android.bp
index b936217..4fe7964 100644
--- a/core/json-utils/Android.bp
+++ b/core/json-utils/Android.bp
@@ -6,10 +6,9 @@
         "awssdk-utils",
         "awssdk-third-party-jackson-core",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/core/protocols/aws-json-protocol/Android.bp b/core/protocols/aws-json-protocol/Android.bp
index 32789f4..e378311 100644
--- a/core/protocols/aws-json-protocol/Android.bp
+++ b/core/protocols/aws-json-protocol/Android.bp
@@ -11,10 +11,9 @@
         "awssdk-sdk-core",
         "awssdk-json-utils",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/core/protocols/protocol-core/Android.bp b/core/protocols/protocol-core/Android.bp
index 75eebe2..17747dd 100644
--- a/core/protocols/protocol-core/Android.bp
+++ b/core/protocols/protocol-core/Android.bp
@@ -3,10 +3,9 @@
     srcs: ["src/main/**/*.java"],
     libs: ["awssdk-annotations"],
     static_libs: ["awssdk-sdk-core"],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/core/regions/Android.bp b/core/regions/Android.bp
index ebefddd..fe36d39 100644
--- a/core/regions/Android.bp
+++ b/core/regions/Android.bp
@@ -2,6 +2,9 @@
     name: "awssdk-regions",
     srcs: [
         "src/main/**/*.java",
+        // These files were generated locally with maven: `mvn generate-sources`,
+        // and then checked in with `git add -f`, so that soong can build this
+        // target from source.
         "target/generated-sources/**/*.java",
     ],
     libs: [
@@ -13,10 +16,9 @@
         "awssdk-profiles",
         "awssdk-json-utils",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/core/sdk-core/Android.bp b/core/sdk-core/Android.bp
index a1877c4..c74d057 100644
--- a/core/sdk-core/Android.bp
+++ b/core/sdk-core/Android.bp
@@ -2,6 +2,9 @@
     name: "awssdk-sdk-core",
     srcs: [
         "src/main/**/*.java",
+        // These files were generated locally with maven: `mvn generate-sources`,
+        // and then checked in with `git add -f`, so that soong can build this
+        // target from source.
         "target/generated-sources/**/*.java",
     ],
     libs: [
@@ -20,10 +23,9 @@
         "awssdk-utils",
         "awssdk-profiles",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/services/kms/Android.bp b/services/kms/Android.bp
index cad2343..3620bdc 100644
--- a/services/kms/Android.bp
+++ b/services/kms/Android.bp
@@ -2,21 +2,23 @@
     name: "awssdk-kms",
     srcs: [
         "src/main/**/*.java",
+        // These files were generated locally with maven: `mvn generate-sources`,
+        // and then checked in with `git add -f`, so othat soong can build this
+        // target from source.
         "target/generated-sources/**/*.java",
     ],
     libs: [
         "slf4j-api",
-        "awssdk-annotations"
+        "awssdk-annotations",
     ],
     static_libs: [
         "awssdk-aws-json-protocol",
         "awssdk-protocol-core",
         "awssdk-http-auth-aws",
     ],
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsAsyncClient.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsAsyncClient.java
new file mode 100644
index 0000000..36ac108
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsAsyncClient.java
@@ -0,0 +1,9582 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.client.handler.AwsAsyncClientHandler;
+import software.amazon.awssdk.awscore.exception.AwsServiceException;
+import software.amazon.awssdk.awscore.internal.AwsProtocolMetadata;
+import software.amazon.awssdk.awscore.internal.AwsServiceProtocol;
+import software.amazon.awssdk.core.RequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkPlugin;
+import software.amazon.awssdk.core.SdkRequest;
+import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientOption;
+import software.amazon.awssdk.core.client.handler.AsyncClientHandler;
+import software.amazon.awssdk.core.client.handler.ClientExecutionParams;
+import software.amazon.awssdk.core.http.HttpResponseHandler;
+import software.amazon.awssdk.core.metrics.CoreMetric;
+import software.amazon.awssdk.metrics.MetricCollector;
+import software.amazon.awssdk.metrics.MetricPublisher;
+import software.amazon.awssdk.metrics.NoOpMetricCollector;
+import software.amazon.awssdk.protocols.core.ExceptionMetadata;
+import software.amazon.awssdk.protocols.json.AwsJsonProtocol;
+import software.amazon.awssdk.protocols.json.AwsJsonProtocolFactory;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.protocols.json.JsonOperationMetadata;
+import software.amazon.awssdk.services.kms.internal.KmsServiceClientConfigurationBuilder;
+import software.amazon.awssdk.services.kms.model.AlreadyExistsException;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterInUseException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotActiveException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotFoundException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotRelatedException;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateAliasRequest;
+import software.amazon.awssdk.services.kms.model.CreateAliasResponse;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateGrantRequest;
+import software.amazon.awssdk.services.kms.model.CreateGrantResponse;
+import software.amazon.awssdk.services.kms.model.CreateKeyRequest;
+import software.amazon.awssdk.services.kms.model.CreateKeyResponse;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreHasCmKsException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreInvalidStateException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreNameInUseException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreNotFoundException;
+import software.amazon.awssdk.services.kms.model.DecryptRequest;
+import software.amazon.awssdk.services.kms.model.DecryptResponse;
+import software.amazon.awssdk.services.kms.model.DeleteAliasRequest;
+import software.amazon.awssdk.services.kms.model.DeleteAliasResponse;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.DependencyTimeoutException;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse;
+import software.amazon.awssdk.services.kms.model.DescribeKeyRequest;
+import software.amazon.awssdk.services.kms.model.DescribeKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.DisabledException;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DryRunOperationException;
+import software.amazon.awssdk.services.kms.model.EnableKeyRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyResponse;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.EncryptRequest;
+import software.amazon.awssdk.services.kms.model.EncryptResponse;
+import software.amazon.awssdk.services.kms.model.ExpiredImportTokenException;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateMacRequest;
+import software.amazon.awssdk.services.kms.model.GenerateMacResponse;
+import software.amazon.awssdk.services.kms.model.GenerateRandomRequest;
+import software.amazon.awssdk.services.kms.model.GenerateRandomResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusResponse;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportRequest;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportResponse;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyRequest;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyResponse;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.IncorrectKeyException;
+import software.amazon.awssdk.services.kms.model.IncorrectKeyMaterialException;
+import software.amazon.awssdk.services.kms.model.IncorrectTrustAnchorException;
+import software.amazon.awssdk.services.kms.model.InvalidAliasNameException;
+import software.amazon.awssdk.services.kms.model.InvalidArnException;
+import software.amazon.awssdk.services.kms.model.InvalidCiphertextException;
+import software.amazon.awssdk.services.kms.model.InvalidGrantIdException;
+import software.amazon.awssdk.services.kms.model.InvalidGrantTokenException;
+import software.amazon.awssdk.services.kms.model.InvalidImportTokenException;
+import software.amazon.awssdk.services.kms.model.InvalidKeyUsageException;
+import software.amazon.awssdk.services.kms.model.InvalidMarkerException;
+import software.amazon.awssdk.services.kms.model.KeyUnavailableException;
+import software.amazon.awssdk.services.kms.model.KmsException;
+import software.amazon.awssdk.services.kms.model.KmsInternalException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidMacException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidSignatureException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidStateException;
+import software.amazon.awssdk.services.kms.model.LimitExceededException;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListGrantsResponse;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.services.kms.model.ListKeysResponse;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse;
+import software.amazon.awssdk.services.kms.model.MalformedPolicyDocumentException;
+import software.amazon.awssdk.services.kms.model.NotFoundException;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.ReEncryptRequest;
+import software.amazon.awssdk.services.kms.model.ReEncryptResponse;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyRequest;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyResponse;
+import software.amazon.awssdk.services.kms.model.RetireGrantRequest;
+import software.amazon.awssdk.services.kms.model.RetireGrantResponse;
+import software.amazon.awssdk.services.kms.model.RevokeGrantRequest;
+import software.amazon.awssdk.services.kms.model.RevokeGrantResponse;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.SignRequest;
+import software.amazon.awssdk.services.kms.model.SignResponse;
+import software.amazon.awssdk.services.kms.model.TagException;
+import software.amazon.awssdk.services.kms.model.TagResourceRequest;
+import software.amazon.awssdk.services.kms.model.TagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UnsupportedOperationException;
+import software.amazon.awssdk.services.kms.model.UntagResourceRequest;
+import software.amazon.awssdk.services.kms.model.UntagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UpdateAliasRequest;
+import software.amazon.awssdk.services.kms.model.UpdateAliasResponse;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionResponse;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionResponse;
+import software.amazon.awssdk.services.kms.model.VerifyMacRequest;
+import software.amazon.awssdk.services.kms.model.VerifyMacResponse;
+import software.amazon.awssdk.services.kms.model.VerifyRequest;
+import software.amazon.awssdk.services.kms.model.VerifyResponse;
+import software.amazon.awssdk.services.kms.model.XksKeyAlreadyInUseException;
+import software.amazon.awssdk.services.kms.model.XksKeyInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksKeyNotFoundException;
+import software.amazon.awssdk.services.kms.model.XksProxyIncorrectAuthenticationCredentialException;
+import software.amazon.awssdk.services.kms.model.XksProxyInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksProxyInvalidResponseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriEndpointInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriUnreachableException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceNotFoundException;
+import software.amazon.awssdk.services.kms.transform.CancelKeyDeletionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ConnectCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateAliasRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateGrantRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DecryptRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DeleteAliasRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DeleteCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DeleteImportedKeyMaterialRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DescribeCustomKeyStoresRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DescribeKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DisableKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DisableKeyRotationRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DisconnectCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.EnableKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.EnableKeyRotationRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.EncryptRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyPairRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyPairWithoutPlaintextRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyWithoutPlaintextRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateMacRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateRandomRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetKeyPolicyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetKeyRotationStatusRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetParametersForImportRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetPublicKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ImportKeyMaterialRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListAliasesRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListGrantsRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListKeyPoliciesRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListKeysRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListResourceTagsRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListRetirableGrantsRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.PutKeyPolicyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ReEncryptRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ReplicateKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.RetireGrantRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.RevokeGrantRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ScheduleKeyDeletionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.SignRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.TagResourceRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UntagResourceRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdateAliasRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdateCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdateKeyDescriptionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdatePrimaryRegionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.VerifyMacRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.VerifyRequestMarshaller;
+import software.amazon.awssdk.utils.CompletableFutureUtils;
+
+/**
+ * Internal implementation of {@link KmsAsyncClient}.
+ *
+ * @see KmsAsyncClient#builder()
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+final class DefaultKmsAsyncClient implements KmsAsyncClient {
+    private static final Logger log = LoggerFactory.getLogger(DefaultKmsAsyncClient.class);
+
+    private static final AwsProtocolMetadata protocolMetadata = AwsProtocolMetadata.builder()
+            .serviceProtocol(AwsServiceProtocol.AWS_JSON).build();
+
+    private final AsyncClientHandler clientHandler;
+
+    private final AwsJsonProtocolFactory protocolFactory;
+
+    private final SdkClientConfiguration clientConfiguration;
+
+    protected DefaultKmsAsyncClient(SdkClientConfiguration clientConfiguration) {
+        this.clientHandler = new AwsAsyncClientHandler(clientConfiguration);
+        this.clientConfiguration = clientConfiguration.toBuilder().option(SdkClientOption.SDK_CLIENT, this).build();
+        this.protocolFactory = init(AwsJsonProtocolFactory.builder()).build();
+    }
+
+    /**
+     * <p>
+     * Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is
+     * <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>.
+     * </p>
+     * <p>
+     * For more information about scheduling and canceling deletion of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CancelKeyDeletion</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param cancelKeyDeletionRequest
+     * @return A Java Future containing the result of the CancelKeyDeletion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CancelKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<CancelKeyDeletionResponse> cancelKeyDeletion(CancelKeyDeletionRequest cancelKeyDeletionRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(cancelKeyDeletionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, cancelKeyDeletionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CancelKeyDeletion");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<CancelKeyDeletionResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, CancelKeyDeletionResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<CancelKeyDeletionResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<CancelKeyDeletionRequest, CancelKeyDeletionResponse>()
+                            .withOperationName("CancelKeyDeletion").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new CancelKeyDeletionRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(cancelKeyDeletionRequest));
+            CompletableFuture<CancelKeyDeletionResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Connects or reconnects a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * to its backing key store. For an CloudHSM key store, <code>ConnectCustomKeyStore</code> connects the key store to
+     * its associated CloudHSM cluster. For an external key store, <code>ConnectCustomKeyStore</code> connects the key
+     * store to the external key store proxy that communicates with your external key manager.
+     * </p>
+     * <p>
+     * The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it
+     * contains. You can disconnect and reconnect a custom key store at any time.
+     * </p>
+     * <p>
+     * The connection process for a custom key store can take an extended amount of time to complete. This operation
+     * starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly
+     * returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that
+     * the custom key store is connected. To get the connection state of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The <code>ConnectCustomKeyStore</code> operation might fail for various reasons. To find the reason, use the
+     * <a>DescribeCustomKeyStores</a> operation and see the <code>ConnectionErrorCode</code> in the response. For help
+     * interpreting the <code>ConnectionErrorCode</code>, see <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * To fix the failure, use the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store, correct
+     * the error, use the <a>UpdateCustomKeyStore</a> operation if necessary, and then use
+     * <code>ConnectCustomKeyStore</code> again.
+     * </p>
+     * <p>
+     * <b>CloudHSM key store</b>
+     * </p>
+     * <p>
+     * During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with
+     * the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM
+     * client as the <code>kmsuser</code> CU, and rotates its password.
+     * </p>
+     * <p>
+     * To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the
+     * number of active HSMs in a cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation. To add HSMs to the cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation. Also,
+     * the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user</a> (CU) must not be logged into the cluster. This prevents KMS from using this
+     * account to log in.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting a CloudHSM key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>External key store</b>
+     * </p>
+     * <p>
+     * When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to
+     * communicate with your external key manager by sending a request via the external key store proxy.
+     * </p>
+     * <p>
+     * When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the
+     * networking elements that it needs to communicate with your external key manager via the external key store proxy.
+     * This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic
+     * between KMS and the VPC endpoint service.
+     * </p>
+     * <p>
+     * To connect an external key store, KMS must be able to connect to the external key store proxy, the external key
+     * store proxy must be able to communicate with your external key manager, and the external key manager must be
+     * available for cryptographic operations.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting an external key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ConnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param connectCustomKeyStoreRequest
+     * @return A Java Future containing the result of the ConnectCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ConnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ConnectCustomKeyStoreResponse> connectCustomKeyStore(
+            ConnectCustomKeyStoreRequest connectCustomKeyStoreRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(connectCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, connectCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ConnectCustomKeyStore");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ConnectCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, ConnectCustomKeyStoreResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ConnectCustomKeyStoreResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ConnectCustomKeyStoreRequest, ConnectCustomKeyStoreResponse>()
+                            .withOperationName("ConnectCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ConnectCustomKeyStoreRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(connectCustomKeyStoreRequest));
+            CompletableFuture<ConnectCustomKeyStoreResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a friendly name for a KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * You can use an alias to identify a KMS key in the KMS console, in the <a>DescribeKey</a> operation and in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>, such as <a>Encrypt</a> and <a>GenerateDataKey</a>. You can also change the KMS key that's
+     * associated with the alias (<a>UpdateAlias</a>) or delete the alias (<a>DeleteAlias</a>) at any time. These
+     * operations don't affect the underlying KMS key.
+     * </p>
+     * <p>
+     * You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is
+     * associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required.
+     * You can't create an alias without a KMS key.
+     * </p>
+     * <p>
+     * The alias must be unique in the account and Region, but you can have aliases with the same name in different
+     * Regions. For detailed information about aliases, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">Using aliases</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return a response. To get the alias that you created, use the <a>ListAliases</a>
+     * operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createAliasRequest
+     * @return A Java Future containing the result of the CreateAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>AlreadyExistsException The request was rejected because it attempted to create a resource that
+     *         already exists.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidAliasNameException The request was rejected because the specified alias name is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<CreateAliasResponse> createAlias(CreateAliasRequest createAliasRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createAliasRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createAliasRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateAlias");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<CreateAliasResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    CreateAliasResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<CreateAliasResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<CreateAliasRequest, CreateAliasResponse>()
+                            .withOperationName("CreateAlias").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new CreateAliasRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(createAliasRequest));
+            CompletableFuture<CreateAliasResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a> backed by a key store that you own and manage. When you use a KMS key in a custom key store for a
+     * cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS
+     * supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM
+     * cluster</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external
+     * key stores</a> backed by an external key store proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * Before you create the custom key store, the required elements must be in place and operational. We recommend that
+     * you use the test tools that KMS provides to verify the configuration your external key store proxy. For details
+     * about the required elements and verification tests, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+     * prerequisites (for CloudHSM key stores)</a> or <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">Assemble
+     * the prerequisites (for external key stores)</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To create a custom key store, use the following parameters.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * To create an CloudHSM key store, specify the <code>CustomKeyStoreName</code>, <code>CloudHsmClusterId</code>,
+     * <code>KeyStorePassword</code>, and <code>TrustAnchorCertificate</code>. The <code>CustomKeyStoreType</code>
+     * parameter is optional for CloudHSM key stores. If you include it, set it to the default value,
+     * <code>AWS_CLOUDHSM</code>. For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To create an external key store, specify the <code>CustomKeyStoreName</code> and a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>. Also, specify values for
+     * <code>XksProxyConnectivity</code>, <code>XksProxyAuthenticationCredential</code>,
+     * <code>XksProxyUriEndpoint</code>, and <code>XksProxyUriPath</code>. If your <code>XksProxyConnectivity</code>
+     * value is <code>VPC_ENDPOINT_SERVICE</code>, specify the <code>XksProxyVpcEndpointServiceName</code> parameter.
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for creating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot use a proxy configuration with the <code>CreateCustomKeyStore</code> operation.
+     * However, you can use the values in the file to help you determine the correct values for the
+     * <code>CreateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your
+     * new custom key store, you need to use the <a>ConnectCustomKeyStore</a> operation to connect a new CloudHSM key
+     * store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your
+     * external key manager. Even if you are not going to use your custom key store immediately, you might want to
+     * connect it to verify that all settings are correct and then disconnect it until you are ready to use it.
+     * </p>
+     * <p>
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateCustomKeyStore</a> (IAM policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createCustomKeyStoreRequest
+     * @return A Java Future containing the result of the CreateCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CloudHsmClusterInUseException The request was rejected because the specified CloudHSM cluster is
+     *         already associated with an CloudHSM key store in the account, or it shares a backup history with an
+     *         CloudHSM key store in the account. Each CloudHSM key store in the account must be associated with a
+     *         different CloudHSM cluster.</p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.</li>
+     *         <li>CustomKeyStoreNameInUseException The request was rejected because the specified custom key store name
+     *         is already assigned to another custom key store in the account. Try again with a custom key store name
+     *         that is unique in the account.</li>
+     *         <li>CloudHsmClusterNotFoundException The request was rejected because KMS cannot find the CloudHSM
+     *         cluster with the specified cluster ID. Retry the request with a different cluster ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>IncorrectTrustAnchorException The request was rejected because the trust anchor certificate in the
+     *         request to create an CloudHSM key store is not the trust anchor certificate for the specified CloudHSM
+     *         cluster.</p>
+     *         <p>
+     *         When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the
+     *         <code>customerCA.crt</code> file.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>XksProxyUriInUseException The request was rejected because the concatenation of the
+     *         <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. Each external key store in a Region must use a
+     *         unique external key store proxy API address.</li>
+     *         <li>XksProxyUriEndpointInUseException The request was rejected because the
+     *         <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. To identify the cause, see the error message that accompanies the exception.</li>
+     *         <li>XksProxyUriUnreachableException KMS was unable to reach the specified <code>XksProxyUriPath</code>.
+     *         The path must be reachable before you create the external key store or update its settings.</p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</li>
+     *         <li>XksProxyIncorrectAuthenticationCredentialException The request was rejected because the proxy
+     *         credentials failed to authenticate to the specified external key store proxy. The specified external key
+     *         store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in
+     *         the credentials or in the identification of the external key store proxy.</li>
+     *         <li>XksProxyVpcEndpointServiceInUseException The request was rejected because the specified Amazon VPC
+     *         endpoint service is already associated with another external key store in this Amazon Web Services
+     *         Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</li>
+     *         <li>XksProxyVpcEndpointServiceNotFoundException The request was rejected because KMS could not find the
+     *         specified VPC endpoint service. Use <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service
+     *         name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC
+     *         endpoint service includes the KMS service principal for the Region, such as
+     *         <code>cks.kms.us-east-1.amazonaws.com</code>.</li>
+     *         <li>XksProxyVpcEndpointServiceInvalidConfigurationException The request was rejected because the Amazon
+     *         VPC endpoint service configuration does not fulfill the requirements for an external key store. To
+     *         identify the cause, see the error message that accompanies the exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</li>
+     *         <li>XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.</li>
+     *         <li>XksProxyInvalidConfigurationException The request was rejected because the external key store proxy
+     *         is not configured correctly. To identify the cause, see the error message that accompanies the exception.
+     *         </li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<CreateCustomKeyStoreResponse> createCustomKeyStore(
+            CreateCustomKeyStoreRequest createCustomKeyStoreRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateCustomKeyStore");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<CreateCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, CreateCustomKeyStoreResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<CreateCustomKeyStoreResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<CreateCustomKeyStoreRequest, CreateCustomKeyStoreResponse>()
+                            .withOperationName("CreateCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new CreateCustomKeyStoreRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(createCustomKeyStoreRequest));
+            CompletableFuture<CreateCustomKeyStoreResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Adds a grant to a KMS key.
+     * </p>
+     * <p>
+     * A <i>grant</i> is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic
+     * operations. It also can allow them to view a KMS key (<a>DescribeKey</a>) and create and manage grants. When
+     * authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often
+     * used for temporary permissions because you can create one, use its permissions, and delete it without changing
+     * your key policies or IAM policies.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * The <code>CreateGrant</code> operation returns a <code>GrantToken</code> and a <code>GrantId</code>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. Once the grant has
+     * achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the
+     * grant.
+     * </p>
+     * <p>
+     * However, to use the permissions in the grant immediately, use the <code>GrantToken</code> that
+     * <code>CreateGrant</code> returns. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>CreateGrant</code> operation also returns a <code>GrantId</code>. You can use the <code>GrantId</code>
+     * and a key identifier to identify the grant in the <a>RetireGrant</a> and <a>RevokeGrant</a> operations. To find
+     * the grant ID, use the <a>ListGrants</a> or <a>ListRetirableGrants</a> operations.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateGrant</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createGrantRequest
+     * @return A Java Future containing the result of the CreateGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<CreateGrantResponse> createGrant(CreateGrantRequest createGrantRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createGrantRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createGrantRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateGrant");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<CreateGrantResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    CreateGrantResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<CreateGrantResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<CreateGrantRequest, CreateGrantResponse>()
+                            .withOperationName("CreateGrant").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new CreateGrantRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(createGrantRequest));
+            CompletableFuture<CreateGrantResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createKeyRequest
+     * @return A Java Future containing the result of the CreateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksKeyInvalidConfigurationException The request was rejected because the external key specified by
+     *         the <code>XksKeyId</code> parameter did not meet the configuration requirements for an external key
+     *         store.</p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     *         </li>
+     *         <li>XksKeyAlreadyInUseException The request was rejected because the (<code>XksKeyId</code>) is already
+     *         associated with another KMS key in this external key store. Each KMS key in an external key store must be
+     *         associated with a different external key.</li>
+     *         <li>XksKeyNotFoundException The request was rejected because the external key store proxy could not find
+     *         the external key. This exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't
+     *         identify a key in the external key manager associated with the external key proxy.</p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<CreateKeyResponse> createKey(CreateKeyRequest createKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<CreateKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    CreateKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<CreateKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<CreateKeyRequest, CreateKeyResponse>().withOperationName("CreateKey")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new CreateKeyRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler)
+                            .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                            .withMetricCollector(apiCallMetricCollector).withInput(createKeyRequest));
+            CompletableFuture<CreateKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an
+     * asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
+     * algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <code>Decrypt</code> operation also decrypts ciphertext that was encrypted outside of KMS by the public key
+     * in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such
+     * as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services
+     * Encryption SDK</a> or <a
+     * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * If the ciphertext was encrypted under a symmetric encryption KMS key, the <code>KeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as
+     * a best practice. When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key
+     * you specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code> operation fails.
+     * This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * <p>
+     * Whenever possible, use key policies to give users permission to call the <code>Decrypt</code> operation on a
+     * particular KMS key, instead of using &amp;IAM; policies. Otherwise, you might create an &amp;IAM; policy that
+     * gives the user <code>Decrypt</code> permission on all KMS keys. This user could decrypt ciphertext that was
+     * encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must
+     * use an IAM policy for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular
+     * trusted accounts. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best
+     * practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>Decrypt</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>Decrypt</code> for a
+     * Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data
+     * encrypted with the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. If you use the <code>KeyId</code> parameter to identify a KMS key in a different
+     * Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReEncrypt</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param decryptRequest
+     * @return A Java Future containing the result of the Decrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>IncorrectKeyException The request was rejected because the specified KMS key cannot decrypt the data.
+     *         The <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a>
+     *         request must identify the same KMS key that was used to encrypt the ciphertext.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Decrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DecryptResponse> decrypt(DecryptRequest decryptRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(decryptRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, decryptRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Decrypt");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DecryptResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    DecryptResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DecryptResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DecryptRequest, DecryptResponse>().withOperationName("Decrypt")
+                            .withProtocolMetadata(protocolMetadata).withMarshaller(new DecryptRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(decryptRequest));
+            CompletableFuture<DecryptResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes the specified alias.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without
+     * affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get
+     * the aliases of all KMS keys, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the
+     * current alias and <a>CreateAlias</a> to create a new alias. To associate an existing alias with a different KMS
+     * key, call <a>UpdateAlias</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteAliasRequest
+     * @return A Java Future containing the result of the DeleteAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DeleteAliasResponse> deleteAlias(DeleteAliasRequest deleteAliasRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(deleteAliasRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, deleteAliasRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteAlias");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DeleteAliasResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    DeleteAliasResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DeleteAliasResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DeleteAliasRequest, DeleteAliasResponse>()
+                            .withOperationName("DeleteAlias").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DeleteAliasRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(deleteAliasRequest));
+            CompletableFuture<DeleteAliasResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a>. This operation does not affect any backing elements of the custom key store. It does not delete
+     * the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster.
+     * For an external key store, it does not affect the external key store proxy, external key manager, or any external
+     * keys.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The custom key store that you delete cannot contain any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before deleting
+     * the key store, verify that you will never need to use any of the KMS keys in the key store for any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the KMS keys from the key store. After the
+     * required waiting period expires and all KMS keys are deleted from the custom key store, use
+     * <a>DisconnectCustomKeyStore</a> to disconnect the key store from KMS. Then, you can delete the custom key store.
+     * </p>
+     * <p>
+     * For keys in an CloudHSM key store, the <code>ScheduleKeyDeletion</code> operation makes a best effort to delete
+     * the key material from the associated cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. KMS never creates, manages, or deletes
+     * cryptographic keys in the external key manager associated with an external key store. You must manage them using
+     * your external key manager tools.
+     * </p>
+     * <p>
+     * Instead of deleting the custom key store, consider using the <a>DisconnectCustomKeyStore</a> operation to
+     * disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot
+     * create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a
+     * disconnected custom key store at any time.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteCustomKeyStoreRequest
+     * @return A Java Future containing the result of the DeleteCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreHasCmKsException The request was rejected because the custom key store contains KMS
+     *         keys. After verifying that you do not need to use the KMS keys, use the <a>ScheduleKeyDeletion</a>
+     *         operation to delete the KMS keys. After they are deleted, you can delete the custom key store.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DeleteCustomKeyStoreResponse> deleteCustomKeyStore(
+            DeleteCustomKeyStoreRequest deleteCustomKeyStoreRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(deleteCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, deleteCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteCustomKeyStore");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DeleteCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, DeleteCustomKeyStoreResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DeleteCustomKeyStoreResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DeleteCustomKeyStoreRequest, DeleteCustomKeyStoreResponse>()
+                            .withOperationName("DeleteCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DeleteCustomKeyStoreRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(deleteCustomKeyStoreRequest));
+            CompletableFuture<DeleteCustomKeyStoreResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily
+     * unusable. To restore the usability of the KMS key, reimport the same key material. For more information about
+     * importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does not change the KMS
+     * key's state. Otherwise, it changes the KMS key's state to <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteImportedKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteImportedKeyMaterialRequest
+     * @return A Java Future containing the result of the DeleteImportedKeyMaterial operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteImportedKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DeleteImportedKeyMaterialResponse> deleteImportedKeyMaterial(
+            DeleteImportedKeyMaterialRequest deleteImportedKeyMaterialRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(deleteImportedKeyMaterialRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, deleteImportedKeyMaterialRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteImportedKeyMaterial");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DeleteImportedKeyMaterialResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, DeleteImportedKeyMaterialResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DeleteImportedKeyMaterialResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DeleteImportedKeyMaterialRequest, DeleteImportedKeyMaterialResponse>()
+                            .withOperationName("DeleteImportedKeyMaterial").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DeleteImportedKeyMaterialRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(deleteImportedKeyMaterialRequest));
+            CompletableFuture<DeleteImportedKeyMaterialResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     * @return A Java Future containing the result of the DescribeCustomKeyStores operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DescribeCustomKeyStoresResponse> describeCustomKeyStores(
+            DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(describeCustomKeyStoresRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, describeCustomKeyStoresRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeCustomKeyStores");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DescribeCustomKeyStoresResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, DescribeCustomKeyStoresResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DescribeCustomKeyStoresResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DescribeCustomKeyStoresRequest, DescribeCustomKeyStoresResponse>()
+                            .withOperationName("DescribeCustomKeyStores").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DescribeCustomKeyStoresRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(describeCustomKeyStoresRequest));
+            CompletableFuture<DescribeCustomKeyStoresResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Provides detailed information about a KMS key. You can run <code>DescribeKey</code> on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     * Services managed key</a>.
+     * </p>
+     * <p>
+     * This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state,
+     * and the origin and expiration date (if any) of the key material. It includes fields, like <code>KeySpec</code>,
+     * that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or
+     * generating and verifying MACs) and the algorithms that the KMS key supports.
+     * </p>
+     * <p>
+     * For <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * keys</a>, <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it
+     * includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>,
+     * it includes the custom key store ID and the ID of the external key.
+     * </p>
+     * <p>
+     * <code>DescribeKey</code> does not return the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether automatic key rotation is enabled on the KMS key. To get this information, use
+     * <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being automatically rotated. For
+     * details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How
+     * Automatic Key Rotation Works</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * In general, <code>DescribeKey</code> is a non-mutating operation. It returns data about KMS keys, but doesn't
+     * change them. However, Amazon Web Services services use <code>DescribeKey</code> to create <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a> from a <i>predefined Amazon Web Services alias</i> with no key ID.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeKeyRequest
+     * @return A Java Future containing the result of the DescribeKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DescribeKeyResponse> describeKey(DescribeKeyRequest describeKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(describeKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, describeKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DescribeKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    DescribeKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DescribeKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DescribeKeyRequest, DescribeKeyResponse>()
+                            .withOperationName("DescribeKey").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DescribeKeyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(describeKeyRequest));
+            CompletableFuture<DescribeKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+     * <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>EnableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRequest
+     * @return A Java Future containing the result of the DisableKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DisableKeyResponse> disableKey(DisableKeyRequest disableKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(disableKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, disableKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DisableKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DisableKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    DisableKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DisableKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DisableKeyRequest, DisableKeyResponse>().withOperationName("DisableKey")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DisableKeyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(disableKeyRequest));
+            CompletableFuture<DisableKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation
+     * of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+     * with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation of the key material in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material for every year. Rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRotationRequest
+     * @return A Java Future containing the result of the DisableKeyRotation operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DisableKeyRotationResponse> disableKeyRotation(DisableKeyRotationRequest disableKeyRotationRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(disableKeyRotationRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, disableKeyRotationRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DisableKeyRotation");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DisableKeyRotationResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, DisableKeyRotationResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DisableKeyRotationResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DisableKeyRotationRequest, DisableKeyRotationResponse>()
+                            .withOperationName("DisableKeyRotation").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DisableKeyRotationRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(disableKeyRotationRequest));
+            CompletableFuture<DisableKeyRotationResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Disconnects the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster
+     * or disconnects an external key store from the external key store proxy that communicates with your external key
+     * manager.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot
+     * create or use its KMS keys. You can reconnect the custom key store at any time.
+     * </p>
+     * <note>
+     * <p>
+     * While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use
+     * existing KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> will fail. This action can prevent users from storing and accessing sensitive data.
+     * </p>
+     * </note>
+     * <p>
+     * When you disconnect a custom key store, its <code>ConnectionState</code> changes to <code>Disconnected</code>. To
+     * find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a
+     * custom key store, use the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisconnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disconnectCustomKeyStoreRequest
+     * @return A Java Future containing the result of the DisconnectCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisconnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public CompletableFuture<DisconnectCustomKeyStoreResponse> disconnectCustomKeyStore(
+            DisconnectCustomKeyStoreRequest disconnectCustomKeyStoreRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(disconnectCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, disconnectCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DisconnectCustomKeyStore");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<DisconnectCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, DisconnectCustomKeyStoreResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<DisconnectCustomKeyStoreResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<DisconnectCustomKeyStoreRequest, DisconnectCustomKeyStoreResponse>()
+                            .withOperationName("DisconnectCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new DisconnectCustomKeyStoreRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(disconnectCustomKeyStoreRequest));
+            CompletableFuture<DisconnectCustomKeyStoreResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>DisableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRequest
+     * @return A Java Future containing the result of the EnableKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.EnableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<EnableKeyResponse> enableKey(EnableKeyRequest enableKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(enableKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, enableKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "EnableKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<EnableKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    EnableKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<EnableKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<EnableKeyRequest, EnableKeyResponse>().withOperationName("EnableKey")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new EnableKeyRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler)
+                            .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                            .withMetricCollector(apiCallMetricCollector).withInput(enableKeyRequest));
+            CompletableFuture<EnableKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation of a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * key</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the
+     * <a>DisableKeyRotation</a> operation.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You cannot enable or disable automatic rotation <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a>. KMS always rotates the key material of Amazon Web Services managed keys every year.
+     * Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
+     * Web Services owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years
+     * (approximately 1,095 days) to every year (approximately 365 days).
+     * </p>
+     * <p>
+     * New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately
+     * every year thereafter.
+     * </p>
+     * <p>
+     * Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation,
+     * and every year thereafter.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:EnableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRotationRequest
+     * @return A Java Future containing the result of the EnableKeyRotation operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.EnableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<EnableKeyRotationResponse> enableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(enableKeyRotationRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, enableKeyRotationRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "EnableKeyRotation");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<EnableKeyRotationResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, EnableKeyRotationResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<EnableKeyRotationResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<EnableKeyRotationRequest, EnableKeyRotationResponse>()
+                            .withOperationName("EnableKeyRotation").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new EnableKeyRotationRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(enableKeyRotationRequest));
+            CompletableFuture<EnableKeyRotationResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a
+     * <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database
+     * password, or other sensitive information. You don't need to use the <code>Encrypt</code> operation to encrypt a
+     * data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a plaintext data key and an
+     * encrypted copy of that data key.
+     * </p>
+     * <p>
+     * If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your
+     * encryption operation. If you specify an <code>EncryptionContext</code> when encrypting data, you must specify the
+     * same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to
+     * decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be
+     * compatible with the KMS key spec.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important>
+     * <p>
+     * The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm
+     * that you choose.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption KMS keys
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>: 4096 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 214 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 190 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 342 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 318 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 470 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 446 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SM2PKE</code>: 1024 bytes (China Regions only)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param encryptRequest
+     * @return A Java Future containing the result of the Encrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Encrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<EncryptResponse> encrypt(EncryptRequest encryptRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(encryptRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, encryptRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Encrypt");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<EncryptResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    EncryptResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<EncryptResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<EncryptRequest, EncryptResponse>().withOperationName("Encrypt")
+                            .withProtocolMetadata(protocolMetadata).withMarshaller(new EncryptRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(encryptRequest));
+            CompletableFuture<EncryptResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data
+     * key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the
+     * plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to
+     * encrypt your data outside of KMS and store the encrypted data key with the encrypted data.
+     * </p>
+     * <p>
+     * To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You
+     * cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate a 128-bit SM4 data key (China Regions only), specify a <code>KeySpec</code> value of
+     * <code>AES_128</code> or a <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used
+     * in China Regions to encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an
+     * asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * operation. To get a cryptographically secure random byte string, use <a>GenerateRandom</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKey</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateDataKey</code>
+     * for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKey</code> returns a copy of the data key encrypted under
+     * the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of
+     * the data key encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>How to use your data key</b>
+     * </p>
+     * <p>
+     * We recommend that you use the following pattern to encrypt data locally in your application. You can write your
+     * own code or use a client-side encryption library, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>,
+     * the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption
+     * Client</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
+     * client-side encryption</a> to do these tasks for you.
+     * </p>
+     * <p>
+     * To encrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <code>GenerateDataKey</code> operation to get a data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key (in the <code>Plaintext</code> field of the response) to encrypt your data outside of
+     * KMS. Then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Store the encrypted data key (in the <code>CiphertextBlob</code> field of the response) with the encrypted data.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * To decrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The operation returns a plaintext copy of the
+     * data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyRequest
+     * @return A Java Future containing the result of the GenerateDataKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GenerateDataKeyResponse> generateDataKey(GenerateDataKeyRequest generateDataKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateDataKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GenerateDataKeyResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, GenerateDataKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GenerateDataKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GenerateDataKeyRequest, GenerateDataKeyResponse>()
+                            .withOperationName("GenerateDataKey").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GenerateDataKeyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(generateDataKeyRequest));
+            CompletableFuture<GenerateDataKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key,
+     * a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key
+     * you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures
+     * outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is
+     * used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data or verify a signature
+     * outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a
+     * message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a
+     * private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an encrypted private key, but
+     * omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need
+     * to decrypt the data or sign a message, use the <a>Decrypt</a> operation to decrypt the encrypted private key in
+     * the data key pair.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The bytes in the keys are
+     * random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key
+     * is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a
+     * href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call
+     * <code>GenerateDataKeyPair</code> for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKeyPair</code> returns the public data key and a copy of
+     * the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the
+     * private data key (<code>PrivateKeyPlaintext</code>), the response includes a copy of the private data key
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPair</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairRequest
+     * @return A Java Future containing the result of the GenerateDataKeyPair operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyPair
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GenerateDataKeyPairResponse> generateDataKeyPair(
+            GenerateDataKeyPairRequest generateDataKeyPairRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyPairRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateDataKeyPairRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKeyPair");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GenerateDataKeyPairResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, GenerateDataKeyPairResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GenerateDataKeyPairResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GenerateDataKeyPairRequest, GenerateDataKeyPairResponse>()
+                            .withOperationName("GenerateDataKeyPair").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GenerateDataKeyPairRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(generateDataKeyPairRequest));
+            CompletableFuture<GenerateDataKeyPairResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key
+     * and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike
+     * <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private key. The bytes in the keys are
+     * random; they are not related to the caller or to the KMS key that is used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns to encrypt data or
+     * verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to
+     * decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each request. The bytes in
+     * the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a
+     * DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairWithoutPlaintextRequest
+     * @return A Java Future containing the result of the GenerateDataKeyPairWithoutPlaintext operation returned by the
+     *         service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyPairWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPairWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GenerateDataKeyPairWithoutPlaintextResponse> generateDataKeyPairWithoutPlaintext(
+            GenerateDataKeyPairWithoutPlaintextRequest generateDataKeyPairWithoutPlaintextRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyPairWithoutPlaintextRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration,
+                generateDataKeyPairWithoutPlaintextRequest.overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKeyPairWithoutPlaintext");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GenerateDataKeyPairWithoutPlaintextResponse> responseHandler = protocolFactory
+                    .createResponseHandler(operationMetadata, GenerateDataKeyPairWithoutPlaintextResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GenerateDataKeyPairWithoutPlaintextResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GenerateDataKeyPairWithoutPlaintextRequest, GenerateDataKeyPairWithoutPlaintextResponse>()
+                            .withOperationName("GenerateDataKeyPairWithoutPlaintext").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GenerateDataKeyPairWithoutPlaintextRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(generateDataKeyPairWithoutPlaintextRequest));
+            CompletableFuture<GenerateDataKeyPairWithoutPlaintextResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted
+     * under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to
+     * the caller or to the KMS key.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that it
+     * does not return a plaintext copy of the data key.
+     * </p>
+     * <p>
+     * This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need
+     * to encrypt the data, you call the <a>Decrypt</a> operation on the encrypted copy of the key.
+     * </p>
+     * <p>
+     * It's also useful in distributed systems with different levels of trust. For example, you might store encrypted
+     * data in containers. One component of your system creates new containers and stores an encrypted data key with
+     * each container. Then, a different component puts the data into the containers. That component first decrypts the
+     * data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then
+     * destroys the plaintext data key. In this system, the component that creates the containers never sees the
+     * plaintext data key.
+     * </p>
+     * <p>
+     * To request an asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or
+     * <a>GenerateDataKeyPairWithoutPlaintext</a> operations.
+     * </p>
+     * <p>
+     * To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key.
+     * You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate an SM4 data key (China Regions only), specify a <code>KeySpec</code> value of <code>AES_128</code> or
+     * <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used in China Regions to
+     * encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * If the operation succeeds, you will find the encrypted copy of the data key in the <code>CiphertextBlob</code>
+     * field.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyWithoutPlaintextRequest
+     * @return A Java Future containing the result of the GenerateDataKeyWithoutPlaintext operation returned by the
+     *         service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GenerateDataKeyWithoutPlaintextResponse> generateDataKeyWithoutPlaintext(
+            GenerateDataKeyWithoutPlaintextRequest generateDataKeyWithoutPlaintextRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyWithoutPlaintextRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration,
+                generateDataKeyWithoutPlaintextRequest.overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKeyWithoutPlaintext");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GenerateDataKeyWithoutPlaintextResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, GenerateDataKeyWithoutPlaintextResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GenerateDataKeyWithoutPlaintextResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GenerateDataKeyWithoutPlaintextRequest, GenerateDataKeyWithoutPlaintextResponse>()
+                            .withOperationName("GenerateDataKeyWithoutPlaintext").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GenerateDataKeyWithoutPlaintextRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(generateDataKeyWithoutPlaintextRequest));
+            CompletableFuture<GenerateDataKeyWithoutPlaintextResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm
+     * that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined
+     * in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * You can use value that GenerateMac returns in the <a>VerifyMac</a> operation to demonstrate that the original
+     * message has not changed. Also, because a secret key is used to create the hash, you can verify that the party
+     * that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based
+     * algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For
+     * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is
+     * effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long
+     * after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the
+     * token or message to help you detect when its time to refresh the HMAC.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateMac</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>VerifyMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateMacRequest
+     * @return A Java Future containing the result of the GenerateMac operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GenerateMacResponse> generateMac(GenerateMacRequest generateMacRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateMacRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateMacRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateMac");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GenerateMacResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    GenerateMacResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GenerateMacResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GenerateMacRequest, GenerateMacResponse>()
+                            .withOperationName("GenerateMac").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GenerateMacRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(generateMacRequest));
+            CompletableFuture<GenerateMacResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateRandomRequest
+     * @return A Java Future containing the result of the GenerateRandom operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GenerateRandomResponse> generateRandom(GenerateRandomRequest generateRandomRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateRandomRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateRandomRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateRandom");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GenerateRandomResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, GenerateRandomResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GenerateRandomResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GenerateRandomRequest, GenerateRandomResponse>()
+                            .withOperationName("GenerateRandom").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GenerateRandomRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(generateRandomRequest));
+            CompletableFuture<GenerateRandomResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a key policy attached to the specified KMS key.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyPolicyRequest
+     * @return A Java Future containing the result of the GetKeyPolicy operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GetKeyPolicyResponse> getKeyPolicy(GetKeyPolicyRequest getKeyPolicyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getKeyPolicyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getKeyPolicyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetKeyPolicy");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GetKeyPolicyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    GetKeyPolicyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GetKeyPolicyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GetKeyPolicyRequest, GetKeyPolicyResponse>()
+                            .withOperationName("GetKeyPolicy").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GetKeyPolicyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(getKeyPolicyRequest));
+            CompletableFuture<GetKeyPolicyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a Boolean value that indicates whether <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of the key
+     * material</a> is enabled for the specified KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key..
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation (<a>DisableKeyRotation</a>) of the key
+     * material in customer managed KMS keys. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS
+     * keys every year. The key rotation status for Amazon Web Services managed KMS keys is always <code>true</code>.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is
+     * disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key
+     * material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year
+     * thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS
+     * key resumes its prior rotation schedule.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Pending deletion: While a KMS key is pending deletion, its key rotation status is <code>false</code> and KMS does
+     * not rotate the key material. If you cancel the deletion, the original key rotation status returns to
+     * <code>true</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyRotationStatus</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyRotationStatusRequest
+     * @return A Java Future containing the result of the GetKeyRotationStatus operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetKeyRotationStatus
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GetKeyRotationStatusResponse> getKeyRotationStatus(
+            GetKeyRotationStatusRequest getKeyRotationStatusRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getKeyRotationStatusRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getKeyRotationStatusRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetKeyRotationStatus");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GetKeyRotationStatusResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, GetKeyRotationStatusResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GetKeyRotationStatusResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GetKeyRotationStatusRequest, GetKeyRotationStatusResponse>()
+                            .withOperationName("GetKeyRotationStatus").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GetKeyRotationStatusRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(getKeyRotationStatusRequest));
+            CompletableFuture<GetKeyRotationStatusResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns the public key and an import token you need to import or reimport key material for a KMS key.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Before calling <code>GetParametersForImport</code>, use the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code> to create a KMS key with no key material. You can import key
+     * material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing
+     * KMS key. You can also import key material into a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a>
+     * of any supported type. However, you can't import key material into a KMS key in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * You can also use <code>GetParametersForImport</code> to get a public key and import token to <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the original key material</a> into a KMS key whose key material expired or was deleted.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> returns the items that you need to import your key material.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The public key (or "wrapping key") of an RSA key pair that KMS generates.
+     * </p>
+     * <p>
+     * You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The public key and its import token are permanently linked and must be used together. Each public key and import
+     * token set is valid for 24 hours. The expiration date and time appear in the <code>ParametersValidTo</code> field
+     * in the <code>GetParametersForImport</code> response. You cannot use an expired public key or import token in an
+     * <a>ImportKeyMaterial</a> request. If your key and token expire, send another <code>GetParametersForImport</code>
+     * request.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> requires the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID of the KMS key for which you are importing the key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The wrapping algorithm that you will use with the public key to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the
+     * same key material.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetParametersForImport</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getParametersForImportRequest
+     * @return A Java Future containing the result of the GetParametersForImport operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetParametersForImport
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GetParametersForImportResponse> getParametersForImport(
+            GetParametersForImportRequest getParametersForImportRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getParametersForImportRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getParametersForImportRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetParametersForImport");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GetParametersForImportResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, GetParametersForImportResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GetParametersForImportResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GetParametersForImportRequest, GetParametersForImportResponse>()
+                            .withOperationName("GetParametersForImport").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GetParametersForImportRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(getParametersForImportRequest));
+            CompletableFuture<GetParametersForImportResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never
+     * leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission can download the public key of an
+     * asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures
+     * outside of KMS. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You do not need to download the public key. Instead, you can use the public key within KMS by calling the
+     * <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When
+     * you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part
+     * of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are
+     * not effective outside of KMS.
+     * </p>
+     * <p>
+     * To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns important information
+     * about the public key in the response, including:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec"
+     * >KeySpec</a>: The type of key material in the public key, such as <code>RSA_4096</code> or
+     * <code>ECC_NIST_P521</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage"
+     * >KeyUsage</a>: Whether the key is used for encryption or signing.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms"
+     * >EncryptionAlgorithms</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms"
+     * >SigningAlgorithms</a>: A list of the encryption algorithms or the signing algorithms for the key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this
+     * information to prevent the public key from being used improperly. For example, you can prevent a public signing
+     * key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is
+     * not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification
+     * operation.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetPublicKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>CreateKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getPublicKeyRequest
+     * @return A Java Future containing the result of the GetPublicKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetPublicKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetPublicKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<GetPublicKeyResponse> getPublicKey(GetPublicKeyRequest getPublicKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getPublicKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getPublicKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetPublicKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<GetPublicKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    GetPublicKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<GetPublicKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<GetPublicKeyRequest, GetPublicKeyResponse>()
+                            .withOperationName("GetPublicKey").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new GetPublicKeyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(getPublicKeyRequest));
+            CompletableFuture<GetPublicKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Imports or reimports key material into an existing KMS key that was created without key material.
+     * <code>ImportKeyMaterial</code> also sets the expiration model and expiration date of the imported key material.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * After you successfully import key material into a KMS key, you can <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the same key material</a> into that KMS key, but you cannot import different key material. You might reimport key
+     * material to replace key material that expired or key material that you deleted. You might also reimport key
+     * material to change the expiration model or expiration date of the key material. Before reimporting key material,
+     * if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material.
+     * </p>
+     * <p>
+     * Each time you import key material into KMS, you can determine whether (<code>ExpirationModel</code>) and when (
+     * <code>ValidTo</code>) the key material expires. To change the expiration of your key material, you must import it
+     * again, either by calling <code>ImportKeyMaterial</code> or using the <a href=
+     * "kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-import-key-material-console"
+     * >import features</a> of the KMS console.
+     * </p>
+     * <p>
+     * Before calling <code>ImportKeyMaterial</code>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Create or identify a KMS key with no key material. The KMS key must have an <code>Origin</code> value of
+     * <code>EXTERNAL</code>, which indicates that the KMS key is designed for imported key material.
+     * </p>
+     * <p>
+     * To create an new KMS key for imported key material, call the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code>. You can create a symmetric encryption KMS key, HMAC KMS key,
+     * asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a <a
+     * href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported type.
+     * However, you can't import key material into a KMS key in a <a
+     * href="kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <a>DescribeKey</a> operation to verify that the <code>KeyState</code> of the KMS key is
+     * <code>PendingImport</code>, which indicates that the KMS key has no key material.
+     * </p>
+     * <p>
+     * If you are reimporting the same key material into an existing KMS key, you might need to call the
+     * <a>DeleteImportedKeyMaterial</a> to delete its existing key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Call the <a>GetParametersForImport</a> operation to get a public key and import token set for importing key
+     * material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the public key in the <a>GetParametersForImport</a> response to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key material and import token. When
+     * calling this operation, you must specify the following values:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID or key ARN of the KMS key to associate with the imported key material. Its <code>Origin</code> must be
+     * <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. You cannot perform this
+     * operation on a KMS key in a <a href="kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a>, or on a KMS key in a different Amazon Web Services account. To get the <code>Origin</code> and
+     * <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The encrypted key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The import token that <a>GetParametersForImport</a> returned. You must use a public key and token from the same
+     * <code>GetParametersForImport</code> response.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether the key material expires (<code>ExpirationModel</code>) and, if so, when (<code>ValidTo</code>). For help
+     * with this choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the
+     * KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material.
+     * However, you can delete and reimport the key material at any time, including before the key material expires.
+     * Each time you reimport, you can eliminate or reset the expiration time.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When this operation is successful, the key state of the KMS key changes from <code>PendingImport</code> to
+     * <code>Enabled</code>, and you can use the KMS key in cryptographic operations.
+     * </p>
+     * <p>
+     * If this operation fails, use the exception to help determine the problem. If the error is related to the key
+     * material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import
+     * token for the KMS key and repeat the import procedure. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To
+     * Import Key Material</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ImportKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param importKeyMaterialRequest
+     * @return A Java Future containing the result of the ImportKeyMaterial operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>IncorrectKeyMaterialException The request was rejected because the key material in the request is,
+     *         expired, invalid, or is not the same key material that was previously imported into this KMS key.</li>
+     *         <li>ExpiredImportTokenException The request was rejected because the specified import token is expired.
+     *         Use <a>GetParametersForImport</a> to get a new import token and public key, use the new public key to
+     *         encrypt the key material, and then try the request again.</li>
+     *         <li>InvalidImportTokenException The request was rejected because the provided import token is invalid or
+     *         is associated with a different KMS key.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ImportKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ImportKeyMaterialResponse> importKeyMaterial(ImportKeyMaterialRequest importKeyMaterialRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(importKeyMaterialRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, importKeyMaterialRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ImportKeyMaterial");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ImportKeyMaterialResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, ImportKeyMaterialResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ImportKeyMaterialResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ImportKeyMaterialRequest, ImportKeyMaterialResponse>()
+                            .withOperationName("ImportKeyMaterial").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ImportKeyMaterialRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(importKeyMaterialRequest));
+            CompletableFuture<ImportKeyMaterialResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listAliasesRequest
+     * @return A Java Future containing the result of the ListAliases operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ListAliasesResponse> listAliases(ListAliasesRequest listAliasesRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listAliasesRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listAliasesRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListAliases");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ListAliasesResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    ListAliasesResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ListAliasesResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ListAliasesRequest, ListAliasesResponse>()
+                            .withOperationName("ListAliases").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ListAliasesRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(listAliasesRequest));
+            CompletableFuture<ListAliasesResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a list of all grants for the specified KMS key.
+     * </p>
+     * <p>
+     * You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <note>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListGrants</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listGrantsRequest
+     * @return A Java Future containing the result of the ListGrants operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ListGrantsResponse> listGrants(ListGrantsRequest listGrantsRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listGrantsRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listGrantsRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListGrants");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ListGrantsResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    ListGrantsResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ListGrantsResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ListGrantsRequest, ListGrantsResponse>().withOperationName("ListGrants")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ListGrantsRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(listGrantsRequest));
+            CompletableFuture<ListGrantsResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names
+     * that you can use in a <a>GetKeyPolicy</a> operation. However, the only valid policy name is <code>default</code>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListKeyPolicies</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     * @return A Java Future containing the result of the ListKeyPolicies operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ListKeyPoliciesResponse> listKeyPolicies(ListKeyPoliciesRequest listKeyPoliciesRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listKeyPoliciesRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listKeyPoliciesRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListKeyPolicies");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ListKeyPoliciesResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, ListKeyPoliciesResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ListKeyPoliciesResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ListKeyPoliciesRequest, ListKeyPoliciesResponse>()
+                            .withOperationName("ListKeyPolicies").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ListKeyPoliciesRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(listKeyPoliciesRequest));
+            CompletableFuture<ListKeyPoliciesResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeysRequest
+     * @return A Java Future containing the result of the ListKeys operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ListKeysResponse> listKeys(ListKeysRequest listKeysRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listKeysRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listKeysRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListKeys");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ListKeysResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    ListKeysResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ListKeysResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ListKeysRequest, ListKeysResponse>().withOperationName("ListKeys")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ListKeysRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler)
+                            .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                            .withMetricCollector(apiCallMetricCollector).withInput(listKeysRequest));
+            CompletableFuture<ListKeysResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns all tags on the specified KMS key.
+     * </p>
+     * <p>
+     * For general information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>. For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListResourceTags</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     * @return A Java Future containing the result of the ListResourceTags operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ListResourceTagsResponse> listResourceTags(ListResourceTagsRequest listResourceTagsRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listResourceTagsRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listResourceTagsRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListResourceTags");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ListResourceTagsResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, ListResourceTagsResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ListResourceTagsResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ListResourceTagsRequest, ListResourceTagsResponse>()
+                            .withOperationName("ListResourceTags").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ListResourceTagsRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(listResourceTagsRequest));
+            CompletableFuture<ListResourceTagsResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Returns information about all grants in the Amazon Web Services account and Region that have the specified
+     * retiring principal.
+     * </p>
+     * <p>
+     * You can specify any principal in your Amazon Web Services account. The grants that are returned include grants
+     * for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
+     * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: You must specify a principal in your Amazon Web Services account. This operation
+     * returns a list of grants where the retiring principal specified in the <code>ListRetirableGrants</code> request
+     * is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web
+     * Services accounts, but you do not need <code>kms:ListRetirableGrants</code> permission (or any other additional
+     * permission) in any Amazon Web Services account other than your own.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.
+     * </p>
+     * <note>
+     * <p>
+     * KMS authorizes <code>ListRetirableGrants</code> requests by evaluating the caller account's
+     * kms:ListRetirableGrants permissions. The authorized resource in <code>ListRetirableGrants</code> calls is the
+     * retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their
+     * access to any KMS keys or grants that might be returned by the <code>ListRetirableGrants</code> call.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     * @return A Java Future containing the result of the ListRetirableGrants operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ListRetirableGrantsResponse> listRetirableGrants(
+            ListRetirableGrantsRequest listRetirableGrantsRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listRetirableGrantsRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listRetirableGrantsRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListRetirableGrants");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ListRetirableGrantsResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, ListRetirableGrantsResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ListRetirableGrantsResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ListRetirableGrantsRequest, ListRetirableGrantsResponse>()
+                            .withOperationName("ListRetirableGrants").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ListRetirableGrantsRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(listRetirableGrantsRequest));
+            CompletableFuture<ListRetirableGrantsResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Attaches a key policy to the specified KMS key.
+     * </p>
+     * <p>
+     * For more information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key
+     * Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple
+     * programming languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a
+     * key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:PutKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GetKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param putKeyPolicyRequest
+     * @return A Java Future containing the result of the PutKeyPolicy operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.PutKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<PutKeyPolicyResponse> putKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(putKeyPolicyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, putKeyPolicyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "PutKeyPolicy");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<PutKeyPolicyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    PutKeyPolicyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<PutKeyPolicyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<PutKeyPolicyRequest, PutKeyPolicyResponse>()
+                            .withOperationName("PutKeyPolicy").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new PutKeyPolicyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(putKeyPolicyRequest));
+            CompletableFuture<PutKeyPolicyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key
+     * under which data is encrypted, such as when you <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
+     * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt
+     * ciphertext under the same KMS key, such as to change the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>
+     * of a ciphertext.
+     * </p>
+     * <p>
+     * The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS
+     * operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by
+     * using the public key of an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
+     * KMS key</a> outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>
+     * or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * When you use the <code>ReEncrypt</code> operation, you need to provide information for the decrypt operation and
+     * the subsequent encrypt operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under an asymmetric KMS key, you must use the <code>SourceKeyId</code> parameter
+     * to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was
+     * used. This information is required to decrypt the data.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under a symmetric encryption KMS key, the <code>SourceKeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always
+     * recommended as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key, KMS
+     * uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the
+     * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter to specify the KMS key that
+     * re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also
+     * provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important></li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services
+     * accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a
+     * different account, you must use its key ARN or alias ARN.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:
+     * ReEncryptFrom</a> permission on the source KMS key (key policy)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo
+     * </a> permission on the destination KMS key (key policy)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code> permission in your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
+     * automatically included in the key policy when you use the console to create a KMS key. But you must include it
+     * manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a
+     * key policy.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param reEncryptRequest
+     * @return A Java Future containing the result of the ReEncrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>IncorrectKeyException The request was rejected because the specified KMS key cannot decrypt the data.
+     *         The <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a>
+     *         request must identify the same KMS key that was used to encrypt the ciphertext.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ReEncrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ReEncryptResponse> reEncrypt(ReEncryptRequest reEncryptRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(reEncryptRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, reEncryptRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ReEncrypt");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ReEncryptResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    ReEncryptResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ReEncryptResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ReEncryptRequest, ReEncryptResponse>().withOperationName("ReEncrypt")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ReEncryptRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler)
+                            .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                            .withMetricCollector(apiCallMetricCollector).withInput(reEncryptRequest));
+            CompletableFuture<ReEncryptResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based
+     * on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create
+     * multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key,
+     * use the <a>CreateKey</a> operation.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * A <i>replica key</i> is a fully-functional KMS key that can be used independently of its primary and peer replica
+     * keys. A primary key and its replica keys share properties that make them interoperable. They have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key
+     * material. They also have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation
+     * status</a>. KMS automatically synchronizes these shared properties among related multi-Region keys. All other
+     * properties of a replica key can differ, including its <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. KMS
+     * pricing and quotas for KMS keys apply to each primary key and replica key.
+     * </p>
+     * <p>
+     * When this operation completes, the new replica key has a transient key state of <code>Creating</code>. This key
+     * state changes to <code>Enabled</code> (or <code>PendingImport</code>) after a few seconds when the process of
+     * creating the new replica key is complete. While the key state is <code>Creating</code>, you can manage key, but
+     * you cannot yet use it in cryptographic operations. If you are creating and using the replica key
+     * programmatically, retry on <code>KMSInvalidStateException</code> or call <code>DescribeKey</code> to check its
+     * <code>KeyState</code> value before using it. For details about the <code>Creating</code> key state, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica
+     * of the key you're trying to replicate, <code>ReplicateKey</code> returns an <code>AlreadyExistsException</code>
+     * error. If the key state of the existing replica is <code>PendingDeletion</code>, you can cancel the scheduled key
+     * deletion (<a>CancelKeyDeletion</a>) or wait for the key to be deleted. The new replica key you create will have
+     * the same <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties"
+     * >shared properties</a> as the original replica key.
+     * </p>
+     * <p>
+     * The CloudTrail log of a <code>ReplicateKey</code> operation records a <code>ReplicateKey</code> operation in the
+     * primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.
+     * </p>
+     * <p>
+     * If you replicate a multi-Region primary key with imported key material, the replica key is created with no key
+     * material. You must import the same key material that you imported into the primary key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html">Importing key material
+     * into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <note>
+     * <p>
+     * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and <code>Tags</code>
+     * parameters than those used in the KMS console. For details, see the parameter descriptions.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a replica key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this permission in the
+     * primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:CreateKey</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To use the <code>Tags</code> parameter, <code>kms:TagResource</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdatePrimaryRegion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param replicateKeyRequest
+     * @return A Java Future containing the result of the ReplicateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>AlreadyExistsException The request was rejected because it attempted to create a resource that
+     *         already exists.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ReplicateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReplicateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ReplicateKeyResponse> replicateKey(ReplicateKeyRequest replicateKeyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(replicateKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, replicateKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ReplicateKey");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ReplicateKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    ReplicateKeyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ReplicateKeyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ReplicateKeyRequest, ReplicateKeyResponse>()
+                            .withOperationName("ReplicateKey").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ReplicateKeyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(replicateKeyRequest));
+            CompletableFuture<ReplicateKeyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param retireGrantRequest
+     * @return A Java Future containing the result of the RetireGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<RetireGrantResponse> retireGrant(RetireGrantRequest retireGrantRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(retireGrantRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, retireGrantRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "RetireGrant");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<RetireGrantResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    RetireGrantResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<RetireGrantResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<RetireGrantRequest, RetireGrantResponse>()
+                            .withOperationName("RetireGrant").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new RetireGrantRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(retireGrantRequest));
+            CompletableFuture<RetireGrantResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more
+     * information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:RevokeGrant</a> (key policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param revokeGrantRequest
+     * @return A Java Future containing the result of the RevokeGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RevokeGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<RevokeGrantResponse> revokeGrant(RevokeGrantRequest revokeGrantRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(revokeGrantRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, revokeGrantRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "RevokeGrant");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<RevokeGrantResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    RevokeGrantResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<RevokeGrantResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<RevokeGrantRequest, RevokeGrantResponse>()
+                            .withOperationName("RevokeGrant").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new RevokeGrantRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(revokeGrantRequest));
+            CompletableFuture<RevokeGrantResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a
+     * waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to
+     * <code>PendingDeletion</code> and the key can't be used in any cryptographic operations. It remains in this state
+     * for the duration of the waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
+     * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and
+     * all KMS data associated with it, including all aliases that refer to it.
+     * </p>
+     * <important>
+     * <p>
+     * Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that
+     * was encrypted under the KMS key is unrecoverable. (The only exception is a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">multi-Region replica
+     * key</a>, or an <a href="kms/latest/developerguide/importing-keys-managing.html#import-delete-key">asymmetric or
+     * HMAC KMS key with imported key material</a>.) To prevent the use of a KMS key without deleting it, use
+     * <a>DisableKey</a>.
+     * </p>
+     * </important>
+     * <p>
+     * You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will
+     * not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key
+     * with replicas, its key state changes to <code>PendingReplicaDeletion</code> and it cannot be replicated or used
+     * in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted
+     * (not just scheduled), the key state of the primary key changes to <code>PendingDeletion</code> and its waiting
+     * period (<code>PendingWindowInDays</code>) begins. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region
+     * keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-cmk-keystore.html">deletes a KMS
+     * key from an CloudHSM key store</a>, it makes a best effort to delete the associated key material from the
+     * associated CloudHSM cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-xks-key.html">Deleting a KMS key from an
+     * external key store</a> has no effect on the associated external key. However, for both types of custom key
+     * stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS
+     * key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external
+     * key store by creating a new KMS key with the same key material.
+     * </p>
+     * <p>
+     * For more information about scheduling a KMS key for deletion, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CancelKeyDeletion</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisableKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param scheduleKeyDeletionRequest
+     * @return A Java Future containing the result of the ScheduleKeyDeletion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ScheduleKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<ScheduleKeyDeletionResponse> scheduleKeyDeletion(
+            ScheduleKeyDeletionRequest scheduleKeyDeletionRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(scheduleKeyDeletionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, scheduleKeyDeletionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ScheduleKeyDeletion");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<ScheduleKeyDeletionResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, ScheduleKeyDeletionResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<ScheduleKeyDeletionResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<ScheduleKeyDeletionRequest, ScheduleKeyDeletionResponse>()
+                            .withOperationName("ScheduleKeyDeletion").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new ScheduleKeyDeletionRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(scheduleKeyDeletionRequest));
+            CompletableFuture<ScheduleKeyDeletionResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signature</a> for a message or
+     * message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the
+     * <a>Verify</a> operation, or use the public key in the same asymmetric KMS key outside of KMS. For information
+     * about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is
+     * represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a
+     * message. Anyone with the public key can verify that the message was signed with that particular private key and
+     * that the message hasn't changed since it was signed.
+     * </p>
+     * <p>
+     * To use the <code>Sign</code> operation, provide the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a <code>KeyUsage</code> value of
+     * <code>SIGN_VERIFY</code>. To get the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
+     * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <code>Message</code> parameter to specify the message or message digest to sign. You can submit messages
+     * of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash
+     * digest in the <code>Message</code> parameter. To indicate whether the message is a full message or a digest, use
+     * the <code>MessageType</code> parameter.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Choose a signing algorithm that is compatible with the KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <important>
+     * <p>
+     * When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to
+     * verify the signature.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signature is effective. This deters an attack
+     * where the actor uses a signed message to establish validity repeatedly or long after the message is superseded.
+     * Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect
+     * when its time to refresh the signature.
+     * </p>
+     * </note>
+     * <p>
+     * To verify the signature that this operation generates, use the <a>Verify</a> operation. Or use the
+     * <a>GetPublicKey</a> operation to download the public key and then use the public key to verify the signature
+     * outside of KMS.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key
+     * policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Verify</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param signRequest
+     * @return A Java Future containing the result of the Sign operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Sign
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Sign" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<SignResponse> sign(SignRequest signRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(signRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, signRequest.overrideConfiguration()
+                .orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Sign");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<SignResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    SignResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<SignResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<SignRequest, SignResponse>().withOperationName("Sign")
+                            .withProtocolMetadata(protocolMetadata).withMarshaller(new SignRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(signRequest));
+            CompletableFuture<SignResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Adds or edits tags on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an
+     * empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
+     * key and a new tag value.
+     * </p>
+     * <p>
+     * You can use this operation to tag a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>,
+     * but you cannot tag an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>, an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned key</a>, a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>,
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.
+     * </p>
+     * <p>
+     * You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param tagResourceRequest
+     * @return A Java Future containing the result of the TagResource operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.TagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(tagResourceRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, tagResourceRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "TagResource");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<TagResourceResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    TagResourceResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<TagResourceResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<TagResourceRequest, TagResourceResponse>()
+                            .withOperationName("TagResource").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new TagResourceRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(tagResourceRequest));
+            CompletableFuture<TagResourceResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes tags from a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * To delete a tag, specify the tag key and the KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * When it succeeds, the <code>UntagResource</code> operation doesn't return any output. Also, if the specified tag
+     * key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation
+     * worked, use the <a>ListResourceTags</a> operation.
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UntagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param untagResourceRequest
+     * @return A Java Future containing the result of the UntagResource operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UntagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(untagResourceRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, untagResourceRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UntagResource");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<UntagResourceResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    UntagResourceResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<UntagResourceResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<UntagResourceRequest, UntagResourceResponse>()
+                            .withOperationName("UntagResource").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new UntagResourceRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(untagResourceRequest));
+            CompletableFuture<UntagResourceResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a
+     * time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web
+     * Services account and Region.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must
+     * have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias
+     * to a different type of KMS key, use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to create a
+     * new alias.
+     * </p>
+     * <p>
+     * You cannot use <code>UpdateAlias</code> to change an alias name. To change an alias name, use <a>DeleteAlias</a>
+     * to delete the old alias and <a>CreateAlias</a> to create a new alias.
+     * </p>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key
+     * without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation.
+     * To get the aliases of all KMS keys in the account, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the current KMS key (key policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the new KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateAliasRequest
+     * @return A Java Future containing the result of the UpdateAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<UpdateAliasResponse> updateAlias(UpdateAliasRequest updateAliasRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updateAliasRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updateAliasRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateAlias");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<UpdateAliasResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    UpdateAliasResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<UpdateAliasResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<UpdateAliasRequest, UpdateAliasResponse>()
+                            .withOperationName("UpdateAlias").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new UpdateAliasRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(updateAliasRequest));
+            CompletableFuture<UpdateAliasResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM
+     * key store or an external key store.
+     * </p>
+     * <p>
+     * Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store. Use the remaining
+     * optional parameters to change its properties. This operation does not return any property values. To verify the
+     * updated property values, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <important>
+     * <p>
+     * When updating the properties of an external key store, verify that the updated settings connect your key store,
+     * via the external key store proxy, to the same external key manager as the previous settings, or to a backup or
+     * snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail,
+     * you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if
+     * KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.
+     * </p>
+     * </important> <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for updating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot upload the proxy configuration file to the <code>UpdateCustomKeyStore</code>
+     * operation. However, you can use the file to help you determine the correct values for the
+     * <code>UpdateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * For an CloudHSM key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), to tell KMS about a change to the <code>kmsuser</code> crypto user password
+     * (<code>KeyStorePassword</code>), or to associate the custom key store with a different, but related, CloudHSM
+     * cluster (<code>CloudHsmClusterId</code>). To update any property of an CloudHSM key store, the
+     * <code>ConnectionState</code> of the CloudHSM key store must be <code>DISCONNECTED</code>.
+     * </p>
+     * <p>
+     * For an external key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), or to tell KMS about a change to the external key store proxy authentication
+     * credentials (<code>XksProxyAuthenticationCredential</code>), connection method (<code>XksProxyConnectivity</code>
+     * ), external proxy endpoint (<code>XksProxyUriEndpoint</code>) and path (<code>XksProxyUriPath</code>). For
+     * external key stores with an <code>XksProxyConnectivity</code> of <code>VPC_ENDPOINT_SERVICE</code>, you can also
+     * update the Amazon VPC endpoint service name (<code>XksProxyVpcEndpointServiceName</code>). To update most
+     * properties of an external key store, the <code>ConnectionState</code> of the external key store must be
+     * <code>DISCONNECTED</code>. However, you can update the <code>CustomKeyStoreName</code>,
+     * <code>XksProxyAuthenticationCredential</code>, and <code>XksProxyUriPath</code> of an external key store when it
+     * is in the CONNECTED or DISCONNECTED state.
+     * </p>
+     * <p>
+     * If your update requires a <code>DISCONNECTED</code> state, before using <code>UpdateCustomKeyStore</code>, use
+     * the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store. After the
+     * <code>UpdateCustomKeyStore</code> operation completes, use the <a>ConnectCustomKeyStore</a> to reconnect the
+     * custom key store. To find the <code>ConnectionState</code> of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * </p>
+     * <p>
+     * Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its
+     * backing key store. For example, before you change the <code>XksProxyUriPath</code> value, verify that the
+     * external key store proxy is reachable at the new path.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateCustomKeyStoreRequest
+     * @return A Java Future containing the result of the UpdateCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreNameInUseException The request was rejected because the specified custom key store name
+     *         is already assigned to another custom key store in the account. Try again with a custom key store name
+     *         that is unique in the account.</li>
+     *         <li>CloudHsmClusterNotFoundException The request was rejected because KMS cannot find the CloudHSM
+     *         cluster with the specified cluster ID. Retry the request with a different cluster ID.</li>
+     *         <li>CloudHsmClusterNotRelatedException The request was rejected because the specified CloudHSM cluster
+     *         has a different cluster certificate than the original cluster. You cannot use the operation to specify an
+     *         unrelated cluster for an CloudHSM key store.</p>
+     *         <p>
+     *         Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes
+     *         clusters that were created from a backup of the current cluster, and clusters that were created from the
+     *         same backup that produced the current cluster.
+     *         </p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksProxyUriInUseException The request was rejected because the concatenation of the
+     *         <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. Each external key store in a Region must use a
+     *         unique external key store proxy API address.</li>
+     *         <li>XksProxyUriEndpointInUseException The request was rejected because the
+     *         <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. To identify the cause, see the error message that accompanies the exception.</li>
+     *         <li>XksProxyUriUnreachableException KMS was unable to reach the specified <code>XksProxyUriPath</code>.
+     *         The path must be reachable before you create the external key store or update its settings.</p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</li>
+     *         <li>XksProxyIncorrectAuthenticationCredentialException The request was rejected because the proxy
+     *         credentials failed to authenticate to the specified external key store proxy. The specified external key
+     *         store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in
+     *         the credentials or in the identification of the external key store proxy.</li>
+     *         <li>XksProxyVpcEndpointServiceInUseException The request was rejected because the specified Amazon VPC
+     *         endpoint service is already associated with another external key store in this Amazon Web Services
+     *         Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</li>
+     *         <li>XksProxyVpcEndpointServiceNotFoundException The request was rejected because KMS could not find the
+     *         specified VPC endpoint service. Use <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service
+     *         name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC
+     *         endpoint service includes the KMS service principal for the Region, such as
+     *         <code>cks.kms.us-east-1.amazonaws.com</code>.</li>
+     *         <li>XksProxyVpcEndpointServiceInvalidConfigurationException The request was rejected because the Amazon
+     *         VPC endpoint service configuration does not fulfill the requirements for an external key store. To
+     *         identify the cause, see the error message that accompanies the exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</li>
+     *         <li>XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.</li>
+     *         <li>XksProxyInvalidConfigurationException The request was rejected because the external key store proxy
+     *         is not configured correctly. To identify the cause, see the error message that accompanies the exception.
+     *         </li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<UpdateCustomKeyStoreResponse> updateCustomKeyStore(
+            UpdateCustomKeyStoreRequest updateCustomKeyStoreRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updateCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updateCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateCustomKeyStore");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<UpdateCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, UpdateCustomKeyStoreResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<UpdateCustomKeyStoreResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<UpdateCustomKeyStoreRequest, UpdateCustomKeyStoreResponse>()
+                            .withOperationName("UpdateCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new UpdateCustomKeyStoreRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(updateCustomKeyStoreRequest));
+            CompletableFuture<UpdateCustomKeyStoreResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateKeyDescription</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateKeyDescriptionRequest
+     * @return A Java Future containing the result of the UpdateKeyDescription operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateKeyDescription
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<UpdateKeyDescriptionResponse> updateKeyDescription(
+            UpdateKeyDescriptionRequest updateKeyDescriptionRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updateKeyDescriptionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updateKeyDescriptionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateKeyDescription");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<UpdateKeyDescriptionResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, UpdateKeyDescriptionResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<UpdateKeyDescriptionResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<UpdateKeyDescriptionRequest, UpdateKeyDescriptionResponse>()
+                            .withOperationName("UpdateKeyDescription").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new UpdateKeyDescriptionRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(updateKeyDescriptionRequest));
+            CompletableFuture<UpdateKeyDescriptionResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Changes the primary key of a multi-Region key.
+     * </p>
+     * <p>
+     * This operation changes the replica key in the specified Region to a primary key and changes the former primary
+     * key to a replica key. For example, suppose you have a primary key in <code>us-east-1</code> and a replica key in
+     * <code>eu-west-2</code>. If you run <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
+     * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the key in
+     * <code>us-east-1</code> becomes a replica key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update"
+     * >Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <i>primary key</i> of a multi-Region key is the source for properties that are always shared by primary and
+     * replica keys, including the key material, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation</a>.
+     * It's the only key that can be replicated. You cannot <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
+     * key</a> until all replica keys are deleted.
+     * </p>
+     * <p>
+     * The key ID and primary Region that you specify uniquely identify the replica key that will become the primary
+     * key. The primary Region must already have a replica key. This operation does not create a KMS key in the
+     * specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any
+     * replica key. To create a replica key, use the <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation
+     * should not delay, interrupt, or cause failures in cryptographic operations.
+     * </p>
+     * <p>
+     * Even after this operation completes, the process of updating the primary Region might still be in progress for a
+     * few more seconds. Operations such as <code>DescribeKey</code> might display both the old and new primary keys as
+     * replicas. The old and new primary keys have a transient key state of <code>Updating</code>. The original key
+     * state is restored when the update is complete. While the key state is <code>Updating</code>, you can use the keys
+     * in cryptographic operations, but you cannot replicate the new primary key or perform certain management
+     * operations, such as enabling or disabling these keys. For details about the <code>Updating</code> key state, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return any output. To verify that primary key is changed, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's Region). Include this
+     * permission primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's Region). Include this
+     * permission in the replica key's key policy.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updatePrimaryRegionRequest
+     * @return A Java Future containing the result of the UpdatePrimaryRegion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdatePrimaryRegion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdatePrimaryRegion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<UpdatePrimaryRegionResponse> updatePrimaryRegion(
+            UpdatePrimaryRegionRequest updatePrimaryRegionRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updatePrimaryRegionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updatePrimaryRegionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdatePrimaryRegion");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<UpdatePrimaryRegionResponse> responseHandler = protocolFactory.createResponseHandler(
+                    operationMetadata, UpdatePrimaryRegionResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<UpdatePrimaryRegionResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<UpdatePrimaryRegionRequest, UpdatePrimaryRegionResponse>()
+                            .withOperationName("UpdatePrimaryRegion").withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new UpdatePrimaryRegionRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(updatePrimaryRegionRequest));
+            CompletableFuture<UpdatePrimaryRegionResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Verifies a digital signature that was generated by the <a>Sign</a> operation.
+     * </p>
+     * <p/>
+     * <p>
+     * Verification confirms that an authorized user signed the message with the specified KMS key and signing
+     * algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the
+     * <code>SignatureValid</code> field in the response is <code>True</code>. If the signature verification fails, the
+     * <code>Verify</code> operation fails with an <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * <p>
+     * A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by
+     * using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To use the <code>Verify</code> operation, specify the same asymmetric KMS key, message, and signing algorithm
+     * that were used to produce the signature. The message type does not need to be the same as the one used for
+     * signing, but it must indicate whether the value of the <code>Message</code> parameter should be hashed as part of
+     * the verification process.
+     * </p>
+     * <p>
+     * You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the
+     * <a>GetPublicKey</a> operation to download the public key in the asymmetric KMS key and then use the public key to
+     * verify the signature outside of KMS. The advantage of using the <code>Verify</code> operation is that it is
+     * performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is
+     * logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key
+     * to verify signatures.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Sign</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyRequest
+     * @return A Java Future containing the result of the Verify operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInvalidSignatureException The request was rejected because the signature verification failed.
+     *         Signature verification fails when it cannot confirm that signature was produced by signing the specified
+     *         message with the specified KMS key and signing algorithm.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Verify
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Verify" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<VerifyResponse> verify(VerifyRequest verifyRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(verifyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, verifyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Verify");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<VerifyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    VerifyResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<VerifyResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<VerifyRequest, VerifyResponse>().withOperationName("Verify")
+                            .withProtocolMetadata(protocolMetadata).withMarshaller(new VerifyRequestMarshaller(protocolFactory))
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withMetricCollector(apiCallMetricCollector)
+                            .withInput(verifyRequest));
+            CompletableFuture<VerifyResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    /**
+     * <p>
+     * Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC
+     * algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using the message, HMAC KMS key, and MAC
+     * algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are
+     * identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed
+     * since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.
+     * </p>
+     * <p>
+     * HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in <a
+     * href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * This operation is part of KMS support for HMAC KMS keys. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GenerateMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyMacRequest
+     * @return A Java Future containing the result of the VerifyMac operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidMacException The request was rejected because the HMAC verification failed. HMAC
+     *         verification fails when the HMAC computed by using the specified message, HMAC KMS key, and MAC algorithm
+     *         does not match the HMAC specified in the request.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.VerifyMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CompletableFuture<VerifyMacResponse> verifyMac(VerifyMacRequest verifyMacRequest) {
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(verifyMacRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, verifyMacRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "VerifyMac");
+            JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                    .isPayloadJson(true).build();
+
+            HttpResponseHandler<VerifyMacResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                    VerifyMacResponse::builder);
+
+            HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                    operationMetadata);
+
+            CompletableFuture<VerifyMacResponse> executeFuture = clientHandler
+                    .execute(new ClientExecutionParams<VerifyMacRequest, VerifyMacResponse>().withOperationName("VerifyMac")
+                            .withProtocolMetadata(protocolMetadata)
+                            .withMarshaller(new VerifyMacRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler)
+                            .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                            .withMetricCollector(apiCallMetricCollector).withInput(verifyMacRequest));
+            CompletableFuture<VerifyMacResponse> whenCompleted = executeFuture.whenComplete((r, e) -> {
+                metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            });
+            executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture);
+            return executeFuture;
+        } catch (Throwable t) {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+            return CompletableFutureUtils.failedFuture(t);
+        }
+    }
+
+    @Override
+    public final KmsServiceClientConfiguration serviceClientConfiguration() {
+        return new KmsServiceClientConfigurationBuilder(this.clientConfiguration.toBuilder()).build();
+    }
+
+    @Override
+    public final String serviceName() {
+        return SERVICE_NAME;
+    }
+
+    private <T extends BaseAwsJsonProtocolFactory.Builder<T>> T init(T builder) {
+        return builder
+                .clientConfiguration(clientConfiguration)
+                .defaultServiceExceptionSupplier(KmsException::builder)
+                .protocol(AwsJsonProtocol.AWS_JSON)
+                .protocolVersion("1.1")
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterNotFoundException")
+                                .exceptionBuilderSupplier(CloudHsmClusterNotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyInvalidConfigurationException")
+                                .exceptionBuilderSupplier(XksProxyInvalidConfigurationException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("ExpiredImportTokenException")
+                                .exceptionBuilderSupplier(ExpiredImportTokenException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreNotFoundException")
+                                .exceptionBuilderSupplier(CustomKeyStoreNotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyVpcEndpointServiceInvalidConfigurationException")
+                                .exceptionBuilderSupplier(XksProxyVpcEndpointServiceInvalidConfigurationException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyIncorrectAuthenticationCredentialException")
+                                .exceptionBuilderSupplier(XksProxyIncorrectAuthenticationCredentialException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("MalformedPolicyDocumentException")
+                                .exceptionBuilderSupplier(MalformedPolicyDocumentException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyUriUnreachableException")
+                                .exceptionBuilderSupplier(XksProxyUriUnreachableException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("IncorrectKeyMaterialException")
+                                .exceptionBuilderSupplier(IncorrectKeyMaterialException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidImportTokenException")
+                                .exceptionBuilderSupplier(InvalidImportTokenException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInvalidStateException")
+                                .exceptionBuilderSupplier(KmsInvalidStateException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyUriInUseException")
+                                .exceptionBuilderSupplier(XksProxyUriInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidArnException")
+                                .exceptionBuilderSupplier(InvalidArnException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterNotRelatedException")
+                                .exceptionBuilderSupplier(CloudHsmClusterNotRelatedException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreInvalidStateException")
+                                .exceptionBuilderSupplier(CustomKeyStoreInvalidStateException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("IncorrectTrustAnchorException")
+                                .exceptionBuilderSupplier(IncorrectTrustAnchorException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("DisabledException")
+                                .exceptionBuilderSupplier(DisabledException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("NotFoundException")
+                                .exceptionBuilderSupplier(NotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KeyUnavailableException")
+                                .exceptionBuilderSupplier(KeyUnavailableException::builder).httpStatusCode(500).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInvalidSignatureException")
+                                .exceptionBuilderSupplier(KmsInvalidSignatureException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInternalException")
+                                .exceptionBuilderSupplier(KmsInternalException::builder).httpStatusCode(500).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("LimitExceededException")
+                                .exceptionBuilderSupplier(LimitExceededException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterInUseException")
+                                .exceptionBuilderSupplier(CloudHsmClusterInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidCiphertextException")
+                                .exceptionBuilderSupplier(InvalidCiphertextException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyInvalidResponseException")
+                                .exceptionBuilderSupplier(XksProxyInvalidResponseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidGrantIdException")
+                                .exceptionBuilderSupplier(InvalidGrantIdException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyUriEndpointInUseException")
+                                .exceptionBuilderSupplier(XksProxyUriEndpointInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreHasCMKsException")
+                                .exceptionBuilderSupplier(CustomKeyStoreHasCmKsException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("IncorrectKeyException")
+                                .exceptionBuilderSupplier(IncorrectKeyException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidGrantTokenException")
+                                .exceptionBuilderSupplier(InvalidGrantTokenException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksKeyInvalidConfigurationException")
+                                .exceptionBuilderSupplier(XksKeyInvalidConfigurationException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("UnsupportedOperationException")
+                                .exceptionBuilderSupplier(UnsupportedOperationException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreNameInUseException")
+                                .exceptionBuilderSupplier(CustomKeyStoreNameInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("AlreadyExistsException")
+                                .exceptionBuilderSupplier(AlreadyExistsException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInvalidMacException")
+                                .exceptionBuilderSupplier(KmsInvalidMacException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("TagException").exceptionBuilderSupplier(TagException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksKeyAlreadyInUseException")
+                                .exceptionBuilderSupplier(XksKeyAlreadyInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidKeyUsageException")
+                                .exceptionBuilderSupplier(InvalidKeyUsageException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyVpcEndpointServiceInUseException")
+                                .exceptionBuilderSupplier(XksProxyVpcEndpointServiceInUseException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterInvalidConfigurationException")
+                                .exceptionBuilderSupplier(CloudHsmClusterInvalidConfigurationException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidMarkerException")
+                                .exceptionBuilderSupplier(InvalidMarkerException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidAliasNameException")
+                                .exceptionBuilderSupplier(InvalidAliasNameException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksKeyNotFoundException")
+                                .exceptionBuilderSupplier(XksKeyNotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyVpcEndpointServiceNotFoundException")
+                                .exceptionBuilderSupplier(XksProxyVpcEndpointServiceNotFoundException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("DependencyTimeoutException")
+                                .exceptionBuilderSupplier(DependencyTimeoutException::builder).httpStatusCode(500).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterNotActiveException")
+                                .exceptionBuilderSupplier(CloudHsmClusterNotActiveException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("DryRunOperationException")
+                                .exceptionBuilderSupplier(DryRunOperationException::builder).httpStatusCode(400).build());
+    }
+
+    private static List<MetricPublisher> resolveMetricPublishers(SdkClientConfiguration clientConfiguration,
+            RequestOverrideConfiguration requestOverrideConfiguration) {
+        List<MetricPublisher> publishers = null;
+        if (requestOverrideConfiguration != null) {
+            publishers = requestOverrideConfiguration.metricPublishers();
+        }
+        if (publishers == null || publishers.isEmpty()) {
+            publishers = clientConfiguration.option(SdkClientOption.METRIC_PUBLISHERS);
+        }
+        if (publishers == null) {
+            publishers = Collections.emptyList();
+        }
+        return publishers;
+    }
+
+    private SdkClientConfiguration updateSdkClientConfiguration(SdkRequest request, SdkClientConfiguration clientConfiguration) {
+        List<SdkPlugin> plugins = request.overrideConfiguration().map(c -> c.plugins()).orElse(Collections.emptyList());
+        SdkClientConfiguration.Builder configuration = clientConfiguration.toBuilder();
+        if (plugins.isEmpty()) {
+            return configuration.build();
+        }
+        KmsServiceClientConfigurationBuilder serviceConfigBuilder = new KmsServiceClientConfigurationBuilder(configuration);
+        for (SdkPlugin plugin : plugins) {
+            plugin.configureClient(serviceConfigBuilder);
+        }
+        return configuration.build();
+    }
+
+    private HttpResponseHandler<AwsServiceException> createErrorResponseHandler(BaseAwsJsonProtocolFactory protocolFactory,
+            JsonOperationMetadata operationMetadata) {
+        return protocolFactory.createErrorResponseHandler(operationMetadata);
+    }
+
+    @Override
+    public void close() {
+        clientHandler.close();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsAsyncClientBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsAsyncClientBuilder.java
new file mode 100644
index 0000000..4f65217
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsAsyncClientBuilder.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientOption;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointProvider;
+
+/**
+ * Internal implementation of {@link KmsAsyncClientBuilder}.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+final class DefaultKmsAsyncClientBuilder extends DefaultKmsBaseClientBuilder<KmsAsyncClientBuilder, KmsAsyncClient> implements
+        KmsAsyncClientBuilder {
+    @Override
+    public DefaultKmsAsyncClientBuilder endpointProvider(KmsEndpointProvider endpointProvider) {
+        clientConfiguration.option(SdkClientOption.ENDPOINT_PROVIDER, endpointProvider);
+        return this;
+    }
+
+    @Override
+    protected final KmsAsyncClient buildClient() {
+        SdkClientConfiguration clientConfiguration = super.asyncClientConfiguration();
+        this.validateClientOptions(clientConfiguration);
+        KmsAsyncClient client = new DefaultKmsAsyncClient(clientConfiguration);
+        return client;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsBaseClientBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsBaseClientBuilder.java
new file mode 100644
index 0000000..17c69f7
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsBaseClientBuilder.java
@@ -0,0 +1,151 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.client.builder.AwsDefaultClientBuilder;
+import software.amazon.awssdk.awscore.client.config.AwsClientOption;
+import software.amazon.awssdk.core.SdkPlugin;
+import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientOption;
+import software.amazon.awssdk.core.interceptor.ClasspathInterceptorChainFactory;
+import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
+import software.amazon.awssdk.http.auth.aws.scheme.AwsV4AuthScheme;
+import software.amazon.awssdk.http.auth.scheme.NoAuthAuthScheme;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthScheme;
+import software.amazon.awssdk.identity.spi.IdentityProvider;
+import software.amazon.awssdk.identity.spi.IdentityProviders;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeProvider;
+import software.amazon.awssdk.services.kms.auth.scheme.internal.KmsAuthSchemeInterceptor;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointProvider;
+import software.amazon.awssdk.services.kms.endpoints.internal.KmsRequestSetEndpointInterceptor;
+import software.amazon.awssdk.services.kms.endpoints.internal.KmsResolveEndpointInterceptor;
+import software.amazon.awssdk.services.kms.internal.KmsServiceClientConfigurationBuilder;
+import software.amazon.awssdk.utils.CollectionUtils;
+
+/**
+ * Internal base class for {@link DefaultKmsClientBuilder} and {@link DefaultKmsAsyncClientBuilder}.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+abstract class DefaultKmsBaseClientBuilder<B extends KmsBaseClientBuilder<B, C>, C> extends AwsDefaultClientBuilder<B, C> {
+    private final Map<String, AuthScheme<?>> additionalAuthSchemes = new HashMap<>();
+
+    @Override
+    protected final String serviceEndpointPrefix() {
+        return "kms";
+    }
+
+    @Override
+    protected final String serviceName() {
+        return "Kms";
+    }
+
+    @Override
+    protected final SdkClientConfiguration mergeServiceDefaults(SdkClientConfiguration config) {
+        return config.merge(c -> c.option(SdkClientOption.ENDPOINT_PROVIDER, defaultEndpointProvider())
+                .option(SdkClientOption.AUTH_SCHEME_PROVIDER, defaultAuthSchemeProvider())
+                .option(SdkClientOption.AUTH_SCHEMES, authSchemes())
+                .option(SdkClientOption.CRC32_FROM_COMPRESSED_DATA_ENABLED, false));
+    }
+
+    @Override
+    protected final SdkClientConfiguration finalizeServiceConfiguration(SdkClientConfiguration config) {
+        List<ExecutionInterceptor> endpointInterceptors = new ArrayList<>();
+        endpointInterceptors.add(new KmsAuthSchemeInterceptor());
+        endpointInterceptors.add(new KmsResolveEndpointInterceptor());
+        endpointInterceptors.add(new KmsRequestSetEndpointInterceptor());
+        ClasspathInterceptorChainFactory interceptorFactory = new ClasspathInterceptorChainFactory();
+        List<ExecutionInterceptor> interceptors = interceptorFactory
+                .getInterceptors("software/amazon/awssdk/services/kms/execution.interceptors");
+        List<ExecutionInterceptor> additionalInterceptors = new ArrayList<>();
+        interceptors = CollectionUtils.mergeLists(endpointInterceptors, interceptors);
+        interceptors = CollectionUtils.mergeLists(interceptors, additionalInterceptors);
+        interceptors = CollectionUtils.mergeLists(interceptors, config.option(SdkClientOption.EXECUTION_INTERCEPTORS));
+        SdkClientConfiguration.Builder builder = config.toBuilder();
+        builder.lazyOption(SdkClientOption.IDENTITY_PROVIDERS, c -> {
+            IdentityProviders.Builder result = IdentityProviders.builder();
+            IdentityProvider<?> credentialsIdentityProvider = c.get(AwsClientOption.CREDENTIALS_IDENTITY_PROVIDER);
+            if (credentialsIdentityProvider != null) {
+                result.putIdentityProvider(credentialsIdentityProvider);
+            }
+            return result.build();
+        });
+        builder.option(SdkClientOption.EXECUTION_INTERCEPTORS, interceptors);
+        return builder.build();
+    }
+
+    @Override
+    protected final String signingName() {
+        return "kms";
+    }
+
+    private KmsEndpointProvider defaultEndpointProvider() {
+        return KmsEndpointProvider.defaultProvider();
+    }
+
+    public B authSchemeProvider(KmsAuthSchemeProvider authSchemeProvider) {
+        clientConfiguration.option(SdkClientOption.AUTH_SCHEME_PROVIDER, authSchemeProvider);
+        return thisBuilder();
+    }
+
+    private KmsAuthSchemeProvider defaultAuthSchemeProvider() {
+        return KmsAuthSchemeProvider.defaultProvider();
+    }
+
+    @Override
+    public B putAuthScheme(AuthScheme<?> authScheme) {
+        additionalAuthSchemes.put(authScheme.schemeId(), authScheme);
+        return thisBuilder();
+    }
+
+    private Map<String, AuthScheme<?>> authSchemes() {
+        Map<String, AuthScheme<?>> schemes = new HashMap<>(2 + this.additionalAuthSchemes.size());
+        AwsV4AuthScheme awsV4AuthScheme = AwsV4AuthScheme.create();
+        schemes.put(awsV4AuthScheme.schemeId(), awsV4AuthScheme);
+        NoAuthAuthScheme noAuthAuthScheme = NoAuthAuthScheme.create();
+        schemes.put(noAuthAuthScheme.schemeId(), noAuthAuthScheme);
+        schemes.putAll(this.additionalAuthSchemes);
+        return schemes;
+    }
+
+    @Override
+    protected SdkClientConfiguration invokePlugins(SdkClientConfiguration config) {
+        List<SdkPlugin> internalPlugins = internalPlugins(config);
+        List<SdkPlugin> externalPlugins = plugins();
+        if (internalPlugins.isEmpty() && externalPlugins.isEmpty()) {
+            return config;
+        }
+        List<SdkPlugin> plugins = CollectionUtils.mergeLists(internalPlugins, externalPlugins);
+        SdkClientConfiguration.Builder configuration = config.toBuilder();
+        KmsServiceClientConfigurationBuilder serviceConfigBuilder = new KmsServiceClientConfigurationBuilder(configuration);
+        for (SdkPlugin plugin : plugins) {
+            plugin.configureClient(serviceConfigBuilder);
+        }
+        return configuration.build();
+    }
+
+    private List<SdkPlugin> internalPlugins(SdkClientConfiguration config) {
+        return Collections.emptyList();
+    }
+
+    protected static void validateClientOptions(SdkClientConfiguration c) {
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsClient.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsClient.java
new file mode 100644
index 0000000..1e68b33
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsClient.java
@@ -0,0 +1,9337 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler;
+import software.amazon.awssdk.awscore.exception.AwsServiceException;
+import software.amazon.awssdk.awscore.internal.AwsProtocolMetadata;
+import software.amazon.awssdk.awscore.internal.AwsServiceProtocol;
+import software.amazon.awssdk.core.RequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkPlugin;
+import software.amazon.awssdk.core.SdkRequest;
+import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientOption;
+import software.amazon.awssdk.core.client.handler.ClientExecutionParams;
+import software.amazon.awssdk.core.client.handler.SyncClientHandler;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.http.HttpResponseHandler;
+import software.amazon.awssdk.core.metrics.CoreMetric;
+import software.amazon.awssdk.metrics.MetricCollector;
+import software.amazon.awssdk.metrics.MetricPublisher;
+import software.amazon.awssdk.metrics.NoOpMetricCollector;
+import software.amazon.awssdk.protocols.core.ExceptionMetadata;
+import software.amazon.awssdk.protocols.json.AwsJsonProtocol;
+import software.amazon.awssdk.protocols.json.AwsJsonProtocolFactory;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.protocols.json.JsonOperationMetadata;
+import software.amazon.awssdk.services.kms.internal.KmsServiceClientConfigurationBuilder;
+import software.amazon.awssdk.services.kms.model.AlreadyExistsException;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterInUseException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotActiveException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotFoundException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotRelatedException;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateAliasRequest;
+import software.amazon.awssdk.services.kms.model.CreateAliasResponse;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateGrantRequest;
+import software.amazon.awssdk.services.kms.model.CreateGrantResponse;
+import software.amazon.awssdk.services.kms.model.CreateKeyRequest;
+import software.amazon.awssdk.services.kms.model.CreateKeyResponse;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreHasCmKsException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreInvalidStateException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreNameInUseException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreNotFoundException;
+import software.amazon.awssdk.services.kms.model.DecryptRequest;
+import software.amazon.awssdk.services.kms.model.DecryptResponse;
+import software.amazon.awssdk.services.kms.model.DeleteAliasRequest;
+import software.amazon.awssdk.services.kms.model.DeleteAliasResponse;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.DependencyTimeoutException;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse;
+import software.amazon.awssdk.services.kms.model.DescribeKeyRequest;
+import software.amazon.awssdk.services.kms.model.DescribeKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.DisabledException;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DryRunOperationException;
+import software.amazon.awssdk.services.kms.model.EnableKeyRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyResponse;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.EncryptRequest;
+import software.amazon.awssdk.services.kms.model.EncryptResponse;
+import software.amazon.awssdk.services.kms.model.ExpiredImportTokenException;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateMacRequest;
+import software.amazon.awssdk.services.kms.model.GenerateMacResponse;
+import software.amazon.awssdk.services.kms.model.GenerateRandomRequest;
+import software.amazon.awssdk.services.kms.model.GenerateRandomResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusResponse;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportRequest;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportResponse;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyRequest;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyResponse;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.IncorrectKeyException;
+import software.amazon.awssdk.services.kms.model.IncorrectKeyMaterialException;
+import software.amazon.awssdk.services.kms.model.IncorrectTrustAnchorException;
+import software.amazon.awssdk.services.kms.model.InvalidAliasNameException;
+import software.amazon.awssdk.services.kms.model.InvalidArnException;
+import software.amazon.awssdk.services.kms.model.InvalidCiphertextException;
+import software.amazon.awssdk.services.kms.model.InvalidGrantIdException;
+import software.amazon.awssdk.services.kms.model.InvalidGrantTokenException;
+import software.amazon.awssdk.services.kms.model.InvalidImportTokenException;
+import software.amazon.awssdk.services.kms.model.InvalidKeyUsageException;
+import software.amazon.awssdk.services.kms.model.InvalidMarkerException;
+import software.amazon.awssdk.services.kms.model.KeyUnavailableException;
+import software.amazon.awssdk.services.kms.model.KmsException;
+import software.amazon.awssdk.services.kms.model.KmsInternalException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidMacException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidSignatureException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidStateException;
+import software.amazon.awssdk.services.kms.model.LimitExceededException;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListGrantsResponse;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.services.kms.model.ListKeysResponse;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse;
+import software.amazon.awssdk.services.kms.model.MalformedPolicyDocumentException;
+import software.amazon.awssdk.services.kms.model.NotFoundException;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.ReEncryptRequest;
+import software.amazon.awssdk.services.kms.model.ReEncryptResponse;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyRequest;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyResponse;
+import software.amazon.awssdk.services.kms.model.RetireGrantRequest;
+import software.amazon.awssdk.services.kms.model.RetireGrantResponse;
+import software.amazon.awssdk.services.kms.model.RevokeGrantRequest;
+import software.amazon.awssdk.services.kms.model.RevokeGrantResponse;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.SignRequest;
+import software.amazon.awssdk.services.kms.model.SignResponse;
+import software.amazon.awssdk.services.kms.model.TagException;
+import software.amazon.awssdk.services.kms.model.TagResourceRequest;
+import software.amazon.awssdk.services.kms.model.TagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UnsupportedOperationException;
+import software.amazon.awssdk.services.kms.model.UntagResourceRequest;
+import software.amazon.awssdk.services.kms.model.UntagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UpdateAliasRequest;
+import software.amazon.awssdk.services.kms.model.UpdateAliasResponse;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionResponse;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionResponse;
+import software.amazon.awssdk.services.kms.model.VerifyMacRequest;
+import software.amazon.awssdk.services.kms.model.VerifyMacResponse;
+import software.amazon.awssdk.services.kms.model.VerifyRequest;
+import software.amazon.awssdk.services.kms.model.VerifyResponse;
+import software.amazon.awssdk.services.kms.model.XksKeyAlreadyInUseException;
+import software.amazon.awssdk.services.kms.model.XksKeyInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksKeyNotFoundException;
+import software.amazon.awssdk.services.kms.model.XksProxyIncorrectAuthenticationCredentialException;
+import software.amazon.awssdk.services.kms.model.XksProxyInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksProxyInvalidResponseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriEndpointInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriUnreachableException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceNotFoundException;
+import software.amazon.awssdk.services.kms.transform.CancelKeyDeletionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ConnectCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateAliasRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateGrantRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.CreateKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DecryptRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DeleteAliasRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DeleteCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DeleteImportedKeyMaterialRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DescribeCustomKeyStoresRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DescribeKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DisableKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DisableKeyRotationRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.DisconnectCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.EnableKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.EnableKeyRotationRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.EncryptRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyPairRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyPairWithoutPlaintextRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateDataKeyWithoutPlaintextRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateMacRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GenerateRandomRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetKeyPolicyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetKeyRotationStatusRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetParametersForImportRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.GetPublicKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ImportKeyMaterialRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListAliasesRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListGrantsRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListKeyPoliciesRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListKeysRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListResourceTagsRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ListRetirableGrantsRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.PutKeyPolicyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ReEncryptRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ReplicateKeyRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.RetireGrantRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.RevokeGrantRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.ScheduleKeyDeletionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.SignRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.TagResourceRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UntagResourceRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdateAliasRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdateCustomKeyStoreRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdateKeyDescriptionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.UpdatePrimaryRegionRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.VerifyMacRequestMarshaller;
+import software.amazon.awssdk.services.kms.transform.VerifyRequestMarshaller;
+import software.amazon.awssdk.utils.Logger;
+
+/**
+ * Internal implementation of {@link KmsClient}.
+ *
+ * @see KmsClient#builder()
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+final class DefaultKmsClient implements KmsClient {
+    private static final Logger log = Logger.loggerFor(DefaultKmsClient.class);
+
+    private static final AwsProtocolMetadata protocolMetadata = AwsProtocolMetadata.builder()
+            .serviceProtocol(AwsServiceProtocol.AWS_JSON).build();
+
+    private final SyncClientHandler clientHandler;
+
+    private final AwsJsonProtocolFactory protocolFactory;
+
+    private final SdkClientConfiguration clientConfiguration;
+
+    protected DefaultKmsClient(SdkClientConfiguration clientConfiguration) {
+        this.clientHandler = new AwsSyncClientHandler(clientConfiguration);
+        this.clientConfiguration = clientConfiguration.toBuilder().option(SdkClientOption.SDK_CLIENT, this).build();
+        this.protocolFactory = init(AwsJsonProtocolFactory.builder()).build();
+    }
+
+    /**
+     * <p>
+     * Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is
+     * <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>.
+     * </p>
+     * <p>
+     * For more information about scheduling and canceling deletion of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CancelKeyDeletion</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param cancelKeyDeletionRequest
+     * @return Result of the CancelKeyDeletion operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CancelKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CancelKeyDeletionResponse cancelKeyDeletion(CancelKeyDeletionRequest cancelKeyDeletionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<CancelKeyDeletionResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                CancelKeyDeletionResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(cancelKeyDeletionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, cancelKeyDeletionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CancelKeyDeletion");
+
+            return clientHandler.execute(new ClientExecutionParams<CancelKeyDeletionRequest, CancelKeyDeletionResponse>()
+                    .withOperationName("CancelKeyDeletion").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(cancelKeyDeletionRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new CancelKeyDeletionRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Connects or reconnects a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * to its backing key store. For an CloudHSM key store, <code>ConnectCustomKeyStore</code> connects the key store to
+     * its associated CloudHSM cluster. For an external key store, <code>ConnectCustomKeyStore</code> connects the key
+     * store to the external key store proxy that communicates with your external key manager.
+     * </p>
+     * <p>
+     * The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it
+     * contains. You can disconnect and reconnect a custom key store at any time.
+     * </p>
+     * <p>
+     * The connection process for a custom key store can take an extended amount of time to complete. This operation
+     * starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly
+     * returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that
+     * the custom key store is connected. To get the connection state of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The <code>ConnectCustomKeyStore</code> operation might fail for various reasons. To find the reason, use the
+     * <a>DescribeCustomKeyStores</a> operation and see the <code>ConnectionErrorCode</code> in the response. For help
+     * interpreting the <code>ConnectionErrorCode</code>, see <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * To fix the failure, use the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store, correct
+     * the error, use the <a>UpdateCustomKeyStore</a> operation if necessary, and then use
+     * <code>ConnectCustomKeyStore</code> again.
+     * </p>
+     * <p>
+     * <b>CloudHSM key store</b>
+     * </p>
+     * <p>
+     * During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with
+     * the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM
+     * client as the <code>kmsuser</code> CU, and rotates its password.
+     * </p>
+     * <p>
+     * To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the
+     * number of active HSMs in a cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation. To add HSMs to the cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation. Also,
+     * the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user</a> (CU) must not be logged into the cluster. This prevents KMS from using this
+     * account to log in.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting a CloudHSM key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>External key store</b>
+     * </p>
+     * <p>
+     * When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to
+     * communicate with your external key manager by sending a request via the external key store proxy.
+     * </p>
+     * <p>
+     * When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the
+     * networking elements that it needs to communicate with your external key manager via the external key store proxy.
+     * This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic
+     * between KMS and the VPC endpoint service.
+     * </p>
+     * <p>
+     * To connect an external key store, KMS must be able to connect to the external key store proxy, the external key
+     * store proxy must be able to communicate with your external key manager, and the external key manager must be
+     * available for cryptographic operations.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting an external key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ConnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param connectCustomKeyStoreRequest
+     * @return Result of the ConnectCustomKeyStore operation returned by the service.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ConnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ConnectCustomKeyStoreResponse connectCustomKeyStore(ConnectCustomKeyStoreRequest connectCustomKeyStoreRequest)
+            throws CloudHsmClusterNotActiveException, CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException,
+            KmsInternalException, CloudHsmClusterInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ConnectCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, ConnectCustomKeyStoreResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(connectCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, connectCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ConnectCustomKeyStore");
+
+            return clientHandler.execute(new ClientExecutionParams<ConnectCustomKeyStoreRequest, ConnectCustomKeyStoreResponse>()
+                    .withOperationName("ConnectCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(connectCustomKeyStoreRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ConnectCustomKeyStoreRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a friendly name for a KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * You can use an alias to identify a KMS key in the KMS console, in the <a>DescribeKey</a> operation and in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>, such as <a>Encrypt</a> and <a>GenerateDataKey</a>. You can also change the KMS key that's
+     * associated with the alias (<a>UpdateAlias</a>) or delete the alias (<a>DeleteAlias</a>) at any time. These
+     * operations don't affect the underlying KMS key.
+     * </p>
+     * <p>
+     * You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is
+     * associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required.
+     * You can't create an alias without a KMS key.
+     * </p>
+     * <p>
+     * The alias must be unique in the account and Region, but you can have aliases with the same name in different
+     * Regions. For detailed information about aliases, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">Using aliases</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return a response. To get the alias that you created, use the <a>ListAliases</a>
+     * operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createAliasRequest
+     * @return Result of the CreateAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws AlreadyExistsException
+     *         The request was rejected because it attempted to create a resource that already exists.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidAliasNameException
+     *         The request was rejected because the specified alias name is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CreateAliasResponse createAlias(CreateAliasRequest createAliasRequest) throws DependencyTimeoutException,
+            AlreadyExistsException, NotFoundException, InvalidAliasNameException, KmsInternalException, LimitExceededException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<CreateAliasResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                CreateAliasResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createAliasRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createAliasRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateAlias");
+
+            return clientHandler.execute(new ClientExecutionParams<CreateAliasRequest, CreateAliasResponse>()
+                    .withOperationName("CreateAlias").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(createAliasRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new CreateAliasRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a> backed by a key store that you own and manage. When you use a KMS key in a custom key store for a
+     * cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS
+     * supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM
+     * cluster</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external
+     * key stores</a> backed by an external key store proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * Before you create the custom key store, the required elements must be in place and operational. We recommend that
+     * you use the test tools that KMS provides to verify the configuration your external key store proxy. For details
+     * about the required elements and verification tests, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+     * prerequisites (for CloudHSM key stores)</a> or <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">Assemble
+     * the prerequisites (for external key stores)</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To create a custom key store, use the following parameters.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * To create an CloudHSM key store, specify the <code>CustomKeyStoreName</code>, <code>CloudHsmClusterId</code>,
+     * <code>KeyStorePassword</code>, and <code>TrustAnchorCertificate</code>. The <code>CustomKeyStoreType</code>
+     * parameter is optional for CloudHSM key stores. If you include it, set it to the default value,
+     * <code>AWS_CLOUDHSM</code>. For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To create an external key store, specify the <code>CustomKeyStoreName</code> and a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>. Also, specify values for
+     * <code>XksProxyConnectivity</code>, <code>XksProxyAuthenticationCredential</code>,
+     * <code>XksProxyUriEndpoint</code>, and <code>XksProxyUriPath</code>. If your <code>XksProxyConnectivity</code>
+     * value is <code>VPC_ENDPOINT_SERVICE</code>, specify the <code>XksProxyVpcEndpointServiceName</code> parameter.
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for creating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot use a proxy configuration with the <code>CreateCustomKeyStore</code> operation.
+     * However, you can use the values in the file to help you determine the correct values for the
+     * <code>CreateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your
+     * new custom key store, you need to use the <a>ConnectCustomKeyStore</a> operation to connect a new CloudHSM key
+     * store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your
+     * external key manager. Even if you are not going to use your custom key store immediately, you might want to
+     * connect it to verify that all settings are correct and then disconnect it until you are ready to use it.
+     * </p>
+     * <p>
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateCustomKeyStore</a> (IAM policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createCustomKeyStoreRequest
+     * @return Result of the CreateCustomKeyStore operation returned by the service.
+     * @throws CloudHsmClusterInUseException
+     *         The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM
+     *         key store in the account, or it shares a backup history with an CloudHSM key store in the account. Each
+     *         CloudHSM key store in the account must be associated with a different CloudHSM cluster.</p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     * @throws CustomKeyStoreNameInUseException
+     *         The request was rejected because the specified custom key store name is already assigned to another
+     *         custom key store in the account. Try again with a custom key store name that is unique in the account.
+     * @throws CloudHsmClusterNotFoundException
+     *         The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         Retry the request with a different cluster ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws IncorrectTrustAnchorException
+     *         The request was rejected because the trust anchor certificate in the request to create an CloudHSM key
+     *         store is not the trust anchor certificate for the specified CloudHSM cluster.
+     *         </p>
+     *         <p>
+     *         When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the
+     *         <code>customerCA.crt</code> file.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws XksProxyUriInUseException
+     *         The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+     *         <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. Each external key store in a Region must use a unique external key store proxy API
+     *         address.
+     * @throws XksProxyUriEndpointInUseException
+     *         The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. To identify the cause, see the error message that
+     *         accompanies the exception.
+     * @throws XksProxyUriUnreachableException
+     *         KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you
+     *         create the external key store or update its settings.
+     *         </p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.
+     * @throws XksProxyIncorrectAuthenticationCredentialException
+     *         The request was rejected because the proxy credentials failed to authenticate to the specified external
+     *         key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid
+     *         credentials. This can indicate an error in the credentials or in the identification of the external key
+     *         store proxy.
+     * @throws XksProxyVpcEndpointServiceInUseException
+     *         The request was rejected because the specified Amazon VPC endpoint service is already associated with
+     *         another external key store in this Amazon Web Services Region. Each external key store in a Region must
+     *         use a different Amazon VPC endpoint service.
+     * @throws XksProxyVpcEndpointServiceNotFoundException
+     *         The request was rejected because KMS could not find the specified VPC endpoint service. Use
+     *         <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also,
+     *         confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service
+     *         principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * @throws XksProxyVpcEndpointServiceInvalidConfigurationException
+     *         The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the
+     *         requirements for an external key store. To identify the cause, see the error message that accompanies the
+     *         exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+     * @throws XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.
+     * @throws XksProxyInvalidConfigurationException
+     *         The request was rejected because the external key store proxy is not configured correctly. To identify
+     *         the cause, see the error message that accompanies the exception.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CreateCustomKeyStoreResponse createCustomKeyStore(CreateCustomKeyStoreRequest createCustomKeyStoreRequest)
+            throws CloudHsmClusterInUseException, CustomKeyStoreNameInUseException, CloudHsmClusterNotFoundException,
+            KmsInternalException, CloudHsmClusterNotActiveException, IncorrectTrustAnchorException,
+            CloudHsmClusterInvalidConfigurationException, LimitExceededException, XksProxyUriInUseException,
+            XksProxyUriEndpointInUseException, XksProxyUriUnreachableException,
+            XksProxyIncorrectAuthenticationCredentialException, XksProxyVpcEndpointServiceInUseException,
+            XksProxyVpcEndpointServiceNotFoundException, XksProxyVpcEndpointServiceInvalidConfigurationException,
+            XksProxyInvalidResponseException, XksProxyInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<CreateCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, CreateCustomKeyStoreResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateCustomKeyStore");
+
+            return clientHandler.execute(new ClientExecutionParams<CreateCustomKeyStoreRequest, CreateCustomKeyStoreResponse>()
+                    .withOperationName("CreateCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(createCustomKeyStoreRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new CreateCustomKeyStoreRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Adds a grant to a KMS key.
+     * </p>
+     * <p>
+     * A <i>grant</i> is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic
+     * operations. It also can allow them to view a KMS key (<a>DescribeKey</a>) and create and manage grants. When
+     * authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often
+     * used for temporary permissions because you can create one, use its permissions, and delete it without changing
+     * your key policies or IAM policies.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * The <code>CreateGrant</code> operation returns a <code>GrantToken</code> and a <code>GrantId</code>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. Once the grant has
+     * achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the
+     * grant.
+     * </p>
+     * <p>
+     * However, to use the permissions in the grant immediately, use the <code>GrantToken</code> that
+     * <code>CreateGrant</code> returns. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>CreateGrant</code> operation also returns a <code>GrantId</code>. You can use the <code>GrantId</code>
+     * and a key identifier to identify the grant in the <a>RetireGrant</a> and <a>RevokeGrant</a> operations. To find
+     * the grant ID, use the <a>ListGrants</a> or <a>ListRetirableGrants</a> operations.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateGrant</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createGrantRequest
+     * @return Result of the CreateGrant operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CreateGrantResponse createGrant(CreateGrantRequest createGrantRequest) throws NotFoundException, DisabledException,
+            DependencyTimeoutException, InvalidArnException, KmsInternalException, InvalidGrantTokenException,
+            LimitExceededException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<CreateGrantResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                CreateGrantResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createGrantRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createGrantRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateGrant");
+
+            return clientHandler.execute(new ClientExecutionParams<CreateGrantRequest, CreateGrantResponse>()
+                    .withOperationName("CreateGrant").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(createGrantRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new CreateGrantRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createKeyRequest
+     * @return Result of the CreateKey operation returned by the service.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksKeyInvalidConfigurationException
+     *         The request was rejected because the external key specified by the <code>XksKeyId</code> parameter did
+     *         not meet the configuration requirements for an external key store.
+     *         </p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     * @throws XksKeyAlreadyInUseException
+     *         The request was rejected because the (<code>XksKeyId</code>) is already associated with another KMS key
+     *         in this external key store. Each KMS key in an external key store must be associated with a different
+     *         external key.
+     * @throws XksKeyNotFoundException
+     *         The request was rejected because the external key store proxy could not find the external key. This
+     *         exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't identify a key in the
+     *         external key manager associated with the external key proxy.
+     *         </p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public CreateKeyResponse createKey(CreateKeyRequest createKeyRequest) throws MalformedPolicyDocumentException,
+            DependencyTimeoutException, InvalidArnException, UnsupportedOperationException, KmsInternalException,
+            LimitExceededException, TagException, CustomKeyStoreNotFoundException, CustomKeyStoreInvalidStateException,
+            CloudHsmClusterInvalidConfigurationException, XksKeyInvalidConfigurationException, XksKeyAlreadyInUseException,
+            XksKeyNotFoundException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<CreateKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                CreateKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(createKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, createKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateKey");
+
+            return clientHandler.execute(new ClientExecutionParams<CreateKeyRequest, CreateKeyResponse>()
+                    .withOperationName("CreateKey").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(createKeyRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new CreateKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an
+     * asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
+     * algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <code>Decrypt</code> operation also decrypts ciphertext that was encrypted outside of KMS by the public key
+     * in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such
+     * as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services
+     * Encryption SDK</a> or <a
+     * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * If the ciphertext was encrypted under a symmetric encryption KMS key, the <code>KeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as
+     * a best practice. When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key
+     * you specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code> operation fails.
+     * This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * <p>
+     * Whenever possible, use key policies to give users permission to call the <code>Decrypt</code> operation on a
+     * particular KMS key, instead of using &amp;IAM; policies. Otherwise, you might create an &amp;IAM; policy that
+     * gives the user <code>Decrypt</code> permission on all KMS keys. This user could decrypt ciphertext that was
+     * encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must
+     * use an IAM policy for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular
+     * trusted accounts. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best
+     * practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>Decrypt</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>Decrypt</code> for a
+     * Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data
+     * encrypted with the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. If you use the <code>KeyId</code> parameter to identify a KMS key in a different
+     * Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReEncrypt</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param decryptRequest
+     * @return Result of the Decrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws IncorrectKeyException
+     *         The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in
+     *         a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the
+     *         same KMS key that was used to encrypt the ciphertext.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Decrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public DecryptResponse decrypt(DecryptRequest decryptRequest) throws NotFoundException, DisabledException,
+            InvalidCiphertextException, KeyUnavailableException, IncorrectKeyException, InvalidKeyUsageException,
+            DependencyTimeoutException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DecryptResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                DecryptResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(decryptRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, decryptRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Decrypt");
+
+            return clientHandler.execute(new ClientExecutionParams<DecryptRequest, DecryptResponse>()
+                    .withOperationName("Decrypt").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(decryptRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new DecryptRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes the specified alias.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without
+     * affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get
+     * the aliases of all KMS keys, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the
+     * current alias and <a>CreateAlias</a> to create a new alias. To associate an existing alias with a different KMS
+     * key, call <a>UpdateAlias</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteAliasRequest
+     * @return Result of the DeleteAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public DeleteAliasResponse deleteAlias(DeleteAliasRequest deleteAliasRequest) throws DependencyTimeoutException,
+            NotFoundException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DeleteAliasResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                DeleteAliasResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(deleteAliasRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, deleteAliasRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteAlias");
+
+            return clientHandler.execute(new ClientExecutionParams<DeleteAliasRequest, DeleteAliasResponse>()
+                    .withOperationName("DeleteAlias").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(deleteAliasRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new DeleteAliasRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a>. This operation does not affect any backing elements of the custom key store. It does not delete
+     * the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster.
+     * For an external key store, it does not affect the external key store proxy, external key manager, or any external
+     * keys.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The custom key store that you delete cannot contain any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before deleting
+     * the key store, verify that you will never need to use any of the KMS keys in the key store for any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the KMS keys from the key store. After the
+     * required waiting period expires and all KMS keys are deleted from the custom key store, use
+     * <a>DisconnectCustomKeyStore</a> to disconnect the key store from KMS. Then, you can delete the custom key store.
+     * </p>
+     * <p>
+     * For keys in an CloudHSM key store, the <code>ScheduleKeyDeletion</code> operation makes a best effort to delete
+     * the key material from the associated cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. KMS never creates, manages, or deletes
+     * cryptographic keys in the external key manager associated with an external key store. You must manage them using
+     * your external key manager tools.
+     * </p>
+     * <p>
+     * Instead of deleting the custom key store, consider using the <a>DisconnectCustomKeyStore</a> operation to
+     * disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot
+     * create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a
+     * disconnected custom key store at any time.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteCustomKeyStoreRequest
+     * @return Result of the DeleteCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreHasCmKsException
+     *         The request was rejected because the custom key store contains KMS keys. After verifying that you do not
+     *         need to use the KMS keys, use the <a>ScheduleKeyDeletion</a> operation to delete the KMS keys. After they
+     *         are deleted, you can delete the custom key store.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public DeleteCustomKeyStoreResponse deleteCustomKeyStore(DeleteCustomKeyStoreRequest deleteCustomKeyStoreRequest)
+            throws CustomKeyStoreHasCmKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException,
+            KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DeleteCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, DeleteCustomKeyStoreResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(deleteCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, deleteCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteCustomKeyStore");
+
+            return clientHandler.execute(new ClientExecutionParams<DeleteCustomKeyStoreRequest, DeleteCustomKeyStoreResponse>()
+                    .withOperationName("DeleteCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(deleteCustomKeyStoreRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new DeleteCustomKeyStoreRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily
+     * unusable. To restore the usability of the KMS key, reimport the same key material. For more information about
+     * importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does not change the KMS
+     * key's state. Otherwise, it changes the KMS key's state to <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteImportedKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteImportedKeyMaterialRequest
+     * @return Result of the DeleteImportedKeyMaterial operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteImportedKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public DeleteImportedKeyMaterialResponse deleteImportedKeyMaterial(
+            DeleteImportedKeyMaterialRequest deleteImportedKeyMaterialRequest) throws InvalidArnException,
+            UnsupportedOperationException, DependencyTimeoutException, NotFoundException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DeleteImportedKeyMaterialResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, DeleteImportedKeyMaterialResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(deleteImportedKeyMaterialRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, deleteImportedKeyMaterialRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteImportedKeyMaterial");
+
+            return clientHandler
+                    .execute(new ClientExecutionParams<DeleteImportedKeyMaterialRequest, DeleteImportedKeyMaterialResponse>()
+                            .withOperationName("DeleteImportedKeyMaterial").withProtocolMetadata(protocolMetadata)
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withInput(deleteImportedKeyMaterialRequest)
+                            .withMetricCollector(apiCallMetricCollector)
+                            .withMarshaller(new DeleteImportedKeyMaterialRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     * @return Result of the DescribeCustomKeyStores operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public DescribeCustomKeyStoresResponse describeCustomKeyStores(DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest)
+            throws CustomKeyStoreNotFoundException, InvalidMarkerException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DescribeCustomKeyStoresResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, DescribeCustomKeyStoresResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(describeCustomKeyStoresRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, describeCustomKeyStoresRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeCustomKeyStores");
+
+            return clientHandler
+                    .execute(new ClientExecutionParams<DescribeCustomKeyStoresRequest, DescribeCustomKeyStoresResponse>()
+                            .withOperationName("DescribeCustomKeyStores").withProtocolMetadata(protocolMetadata)
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withInput(describeCustomKeyStoresRequest)
+                            .withMetricCollector(apiCallMetricCollector)
+                            .withMarshaller(new DescribeCustomKeyStoresRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Provides detailed information about a KMS key. You can run <code>DescribeKey</code> on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     * Services managed key</a>.
+     * </p>
+     * <p>
+     * This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state,
+     * and the origin and expiration date (if any) of the key material. It includes fields, like <code>KeySpec</code>,
+     * that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or
+     * generating and verifying MACs) and the algorithms that the KMS key supports.
+     * </p>
+     * <p>
+     * For <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * keys</a>, <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it
+     * includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>,
+     * it includes the custom key store ID and the ID of the external key.
+     * </p>
+     * <p>
+     * <code>DescribeKey</code> does not return the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether automatic key rotation is enabled on the KMS key. To get this information, use
+     * <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being automatically rotated. For
+     * details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How
+     * Automatic Key Rotation Works</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * In general, <code>DescribeKey</code> is a non-mutating operation. It returns data about KMS keys, but doesn't
+     * change them. However, Amazon Web Services services use <code>DescribeKey</code> to create <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a> from a <i>predefined Amazon Web Services alias</i> with no key ID.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeKeyRequest
+     * @return Result of the DescribeKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public DescribeKeyResponse describeKey(DescribeKeyRequest describeKeyRequest) throws NotFoundException, InvalidArnException,
+            DependencyTimeoutException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DescribeKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                DescribeKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(describeKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, describeKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeKey");
+
+            return clientHandler.execute(new ClientExecutionParams<DescribeKeyRequest, DescribeKeyResponse>()
+                    .withOperationName("DescribeKey").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(describeKeyRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new DescribeKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+     * <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>EnableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRequest
+     * @return Result of the DisableKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public DisableKeyResponse disableKey(DisableKeyRequest disableKeyRequest) throws NotFoundException, InvalidArnException,
+            DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DisableKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                DisableKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(disableKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, disableKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DisableKey");
+
+            return clientHandler.execute(new ClientExecutionParams<DisableKeyRequest, DisableKeyResponse>()
+                    .withOperationName("DisableKey").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(disableKeyRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new DisableKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation
+     * of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+     * with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation of the key material in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material for every year. Rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRotationRequest
+     * @return Result of the DisableKeyRotation operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public DisableKeyRotationResponse disableKeyRotation(DisableKeyRotationRequest disableKeyRotationRequest)
+            throws NotFoundException, DisabledException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, UnsupportedOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DisableKeyRotationResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, DisableKeyRotationResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(disableKeyRotationRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, disableKeyRotationRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DisableKeyRotation");
+
+            return clientHandler.execute(new ClientExecutionParams<DisableKeyRotationRequest, DisableKeyRotationResponse>()
+                    .withOperationName("DisableKeyRotation").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(disableKeyRotationRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new DisableKeyRotationRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Disconnects the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster
+     * or disconnects an external key store from the external key store proxy that communicates with your external key
+     * manager.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot
+     * create or use its KMS keys. You can reconnect the custom key store at any time.
+     * </p>
+     * <note>
+     * <p>
+     * While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use
+     * existing KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> will fail. This action can prevent users from storing and accessing sensitive data.
+     * </p>
+     * </note>
+     * <p>
+     * When you disconnect a custom key store, its <code>ConnectionState</code> changes to <code>Disconnected</code>. To
+     * find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a
+     * custom key store, use the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisconnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disconnectCustomKeyStoreRequest
+     * @return Result of the DisconnectCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisconnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public DisconnectCustomKeyStoreResponse disconnectCustomKeyStore(
+            DisconnectCustomKeyStoreRequest disconnectCustomKeyStoreRequest) throws CustomKeyStoreInvalidStateException,
+            CustomKeyStoreNotFoundException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<DisconnectCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, DisconnectCustomKeyStoreResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(disconnectCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, disconnectCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DisconnectCustomKeyStore");
+
+            return clientHandler
+                    .execute(new ClientExecutionParams<DisconnectCustomKeyStoreRequest, DisconnectCustomKeyStoreResponse>()
+                            .withOperationName("DisconnectCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withInput(disconnectCustomKeyStoreRequest)
+                            .withMetricCollector(apiCallMetricCollector)
+                            .withMarshaller(new DisconnectCustomKeyStoreRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>DisableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRequest
+     * @return Result of the EnableKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.EnableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public EnableKeyResponse enableKey(EnableKeyRequest enableKeyRequest) throws NotFoundException, InvalidArnException,
+            DependencyTimeoutException, KmsInternalException, LimitExceededException, KmsInvalidStateException,
+            AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<EnableKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                EnableKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(enableKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, enableKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "EnableKey");
+
+            return clientHandler.execute(new ClientExecutionParams<EnableKeyRequest, EnableKeyResponse>()
+                    .withOperationName("EnableKey").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(enableKeyRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new EnableKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation of a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * key</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the
+     * <a>DisableKeyRotation</a> operation.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You cannot enable or disable automatic rotation <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a>. KMS always rotates the key material of Amazon Web Services managed keys every year.
+     * Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
+     * Web Services owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years
+     * (approximately 1,095 days) to every year (approximately 365 days).
+     * </p>
+     * <p>
+     * New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately
+     * every year thereafter.
+     * </p>
+     * <p>
+     * Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation,
+     * and every year thereafter.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:EnableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRotationRequest
+     * @return Result of the EnableKeyRotation operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.EnableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public EnableKeyRotationResponse enableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest)
+            throws NotFoundException, DisabledException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, UnsupportedOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<EnableKeyRotationResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                EnableKeyRotationResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(enableKeyRotationRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, enableKeyRotationRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "EnableKeyRotation");
+
+            return clientHandler.execute(new ClientExecutionParams<EnableKeyRotationRequest, EnableKeyRotationResponse>()
+                    .withOperationName("EnableKeyRotation").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(enableKeyRotationRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new EnableKeyRotationRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a
+     * <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database
+     * password, or other sensitive information. You don't need to use the <code>Encrypt</code> operation to encrypt a
+     * data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a plaintext data key and an
+     * encrypted copy of that data key.
+     * </p>
+     * <p>
+     * If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your
+     * encryption operation. If you specify an <code>EncryptionContext</code> when encrypting data, you must specify the
+     * same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to
+     * decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be
+     * compatible with the KMS key spec.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important>
+     * <p>
+     * The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm
+     * that you choose.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption KMS keys
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>: 4096 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 214 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 190 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 342 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 318 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 470 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 446 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SM2PKE</code>: 1024 bytes (China Regions only)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param encryptRequest
+     * @return Result of the Encrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Encrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public EncryptResponse encrypt(EncryptRequest encryptRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<EncryptResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                EncryptResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(encryptRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, encryptRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Encrypt");
+
+            return clientHandler.execute(new ClientExecutionParams<EncryptRequest, EncryptResponse>()
+                    .withOperationName("Encrypt").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(encryptRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new EncryptRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data
+     * key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the
+     * plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to
+     * encrypt your data outside of KMS and store the encrypted data key with the encrypted data.
+     * </p>
+     * <p>
+     * To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You
+     * cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate a 128-bit SM4 data key (China Regions only), specify a <code>KeySpec</code> value of
+     * <code>AES_128</code> or a <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used
+     * in China Regions to encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an
+     * asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * operation. To get a cryptographically secure random byte string, use <a>GenerateRandom</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKey</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateDataKey</code>
+     * for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKey</code> returns a copy of the data key encrypted under
+     * the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of
+     * the data key encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>How to use your data key</b>
+     * </p>
+     * <p>
+     * We recommend that you use the following pattern to encrypt data locally in your application. You can write your
+     * own code or use a client-side encryption library, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>,
+     * the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption
+     * Client</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
+     * client-side encryption</a> to do these tasks for you.
+     * </p>
+     * <p>
+     * To encrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <code>GenerateDataKey</code> operation to get a data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key (in the <code>Plaintext</code> field of the response) to encrypt your data outside of
+     * KMS. Then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Store the encrypted data key (in the <code>CiphertextBlob</code> field of the response) with the encrypted data.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * To decrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The operation returns a plaintext copy of the
+     * data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyRequest
+     * @return Result of the GenerateDataKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GenerateDataKeyResponse generateDataKey(GenerateDataKeyRequest generateDataKeyRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException,
+            InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GenerateDataKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                GenerateDataKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateDataKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKey");
+
+            return clientHandler.execute(new ClientExecutionParams<GenerateDataKeyRequest, GenerateDataKeyResponse>()
+                    .withOperationName("GenerateDataKey").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(generateDataKeyRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GenerateDataKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key,
+     * a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key
+     * you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures
+     * outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is
+     * used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data or verify a signature
+     * outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a
+     * message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a
+     * private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an encrypted private key, but
+     * omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need
+     * to decrypt the data or sign a message, use the <a>Decrypt</a> operation to decrypt the encrypted private key in
+     * the data key pair.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The bytes in the keys are
+     * random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key
+     * is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a
+     * href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call
+     * <code>GenerateDataKeyPair</code> for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKeyPair</code> returns the public data key and a copy of
+     * the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the
+     * private data key (<code>PrivateKeyPlaintext</code>), the response includes a copy of the private data key
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPair</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairRequest
+     * @return Result of the GenerateDataKeyPair operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyPair
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GenerateDataKeyPairResponse generateDataKeyPair(GenerateDataKeyPairRequest generateDataKeyPairRequest)
+            throws NotFoundException, DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            UnsupportedOperationException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GenerateDataKeyPairResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, GenerateDataKeyPairResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyPairRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateDataKeyPairRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKeyPair");
+
+            return clientHandler.execute(new ClientExecutionParams<GenerateDataKeyPairRequest, GenerateDataKeyPairResponse>()
+                    .withOperationName("GenerateDataKeyPair").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(generateDataKeyPairRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GenerateDataKeyPairRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key
+     * and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike
+     * <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private key. The bytes in the keys are
+     * random; they are not related to the caller or to the KMS key that is used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns to encrypt data or
+     * verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to
+     * decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each request. The bytes in
+     * the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a
+     * DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairWithoutPlaintextRequest
+     * @return Result of the GenerateDataKeyPairWithoutPlaintext operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyPairWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPairWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    @Override
+    public GenerateDataKeyPairWithoutPlaintextResponse generateDataKeyPairWithoutPlaintext(
+            GenerateDataKeyPairWithoutPlaintextRequest generateDataKeyPairWithoutPlaintextRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException,
+            InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException, UnsupportedOperationException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GenerateDataKeyPairWithoutPlaintextResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, GenerateDataKeyPairWithoutPlaintextResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyPairWithoutPlaintextRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration,
+                generateDataKeyPairWithoutPlaintextRequest.overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKeyPairWithoutPlaintext");
+
+            return clientHandler
+                    .execute(new ClientExecutionParams<GenerateDataKeyPairWithoutPlaintextRequest, GenerateDataKeyPairWithoutPlaintextResponse>()
+                            .withOperationName("GenerateDataKeyPairWithoutPlaintext").withProtocolMetadata(protocolMetadata)
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withInput(generateDataKeyPairWithoutPlaintextRequest)
+                            .withMetricCollector(apiCallMetricCollector)
+                            .withMarshaller(new GenerateDataKeyPairWithoutPlaintextRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted
+     * under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to
+     * the caller or to the KMS key.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that it
+     * does not return a plaintext copy of the data key.
+     * </p>
+     * <p>
+     * This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need
+     * to encrypt the data, you call the <a>Decrypt</a> operation on the encrypted copy of the key.
+     * </p>
+     * <p>
+     * It's also useful in distributed systems with different levels of trust. For example, you might store encrypted
+     * data in containers. One component of your system creates new containers and stores an encrypted data key with
+     * each container. Then, a different component puts the data into the containers. That component first decrypts the
+     * data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then
+     * destroys the plaintext data key. In this system, the component that creates the containers never sees the
+     * plaintext data key.
+     * </p>
+     * <p>
+     * To request an asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or
+     * <a>GenerateDataKeyPairWithoutPlaintext</a> operations.
+     * </p>
+     * <p>
+     * To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key.
+     * You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate an SM4 data key (China Regions only), specify a <code>KeySpec</code> value of <code>AES_128</code> or
+     * <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used in China Regions to
+     * encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * If the operation succeeds, you will find the encrypted copy of the data key in the <code>CiphertextBlob</code>
+     * field.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyWithoutPlaintextRequest
+     * @return Result of the GenerateDataKeyWithoutPlaintext operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    @Override
+    public GenerateDataKeyWithoutPlaintextResponse generateDataKeyWithoutPlaintext(
+            GenerateDataKeyWithoutPlaintextRequest generateDataKeyWithoutPlaintextRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException,
+            InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GenerateDataKeyWithoutPlaintextResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, GenerateDataKeyWithoutPlaintextResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateDataKeyWithoutPlaintextRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration,
+                generateDataKeyWithoutPlaintextRequest.overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateDataKeyWithoutPlaintext");
+
+            return clientHandler
+                    .execute(new ClientExecutionParams<GenerateDataKeyWithoutPlaintextRequest, GenerateDataKeyWithoutPlaintextResponse>()
+                            .withOperationName("GenerateDataKeyWithoutPlaintext").withProtocolMetadata(protocolMetadata)
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withInput(generateDataKeyWithoutPlaintextRequest)
+                            .withMetricCollector(apiCallMetricCollector)
+                            .withMarshaller(new GenerateDataKeyWithoutPlaintextRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm
+     * that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined
+     * in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * You can use value that GenerateMac returns in the <a>VerifyMac</a> operation to demonstrate that the original
+     * message has not changed. Also, because a secret key is used to create the hash, you can verify that the party
+     * that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based
+     * algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For
+     * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is
+     * effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long
+     * after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the
+     * token or message to help you detect when its time to refresh the HMAC.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateMac</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>VerifyMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateMacRequest
+     * @return Result of the GenerateMac operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GenerateMacResponse generateMac(GenerateMacRequest generateMacRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GenerateMacResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                GenerateMacResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateMacRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateMacRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateMac");
+
+            return clientHandler.execute(new ClientExecutionParams<GenerateMacRequest, GenerateMacResponse>()
+                    .withOperationName("GenerateMac").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(generateMacRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GenerateMacRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateRandomRequest
+     * @return Result of the GenerateRandom operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GenerateRandomResponse generateRandom(GenerateRandomRequest generateRandomRequest) throws DependencyTimeoutException,
+            KmsInternalException, UnsupportedOperationException, CustomKeyStoreNotFoundException,
+            CustomKeyStoreInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GenerateRandomResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                GenerateRandomResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(generateRandomRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, generateRandomRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GenerateRandom");
+
+            return clientHandler.execute(new ClientExecutionParams<GenerateRandomRequest, GenerateRandomResponse>()
+                    .withOperationName("GenerateRandom").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(generateRandomRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GenerateRandomRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a key policy attached to the specified KMS key.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyPolicyRequest
+     * @return Result of the GetKeyPolicy operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GetKeyPolicyResponse getKeyPolicy(GetKeyPolicyRequest getKeyPolicyRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GetKeyPolicyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                GetKeyPolicyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getKeyPolicyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getKeyPolicyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetKeyPolicy");
+
+            return clientHandler.execute(new ClientExecutionParams<GetKeyPolicyRequest, GetKeyPolicyResponse>()
+                    .withOperationName("GetKeyPolicy").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(getKeyPolicyRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GetKeyPolicyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a Boolean value that indicates whether <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of the key
+     * material</a> is enabled for the specified KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key..
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation (<a>DisableKeyRotation</a>) of the key
+     * material in customer managed KMS keys. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS
+     * keys every year. The key rotation status for Amazon Web Services managed KMS keys is always <code>true</code>.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is
+     * disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key
+     * material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year
+     * thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS
+     * key resumes its prior rotation schedule.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Pending deletion: While a KMS key is pending deletion, its key rotation status is <code>false</code> and KMS does
+     * not rotate the key material. If you cancel the deletion, the original key rotation status returns to
+     * <code>true</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyRotationStatus</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyRotationStatusRequest
+     * @return Result of the GetKeyRotationStatus operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetKeyRotationStatus
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GetKeyRotationStatusResponse getKeyRotationStatus(GetKeyRotationStatusRequest getKeyRotationStatusRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, UnsupportedOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GetKeyRotationStatusResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, GetKeyRotationStatusResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getKeyRotationStatusRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getKeyRotationStatusRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetKeyRotationStatus");
+
+            return clientHandler.execute(new ClientExecutionParams<GetKeyRotationStatusRequest, GetKeyRotationStatusResponse>()
+                    .withOperationName("GetKeyRotationStatus").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(getKeyRotationStatusRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GetKeyRotationStatusRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns the public key and an import token you need to import or reimport key material for a KMS key.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Before calling <code>GetParametersForImport</code>, use the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code> to create a KMS key with no key material. You can import key
+     * material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing
+     * KMS key. You can also import key material into a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a>
+     * of any supported type. However, you can't import key material into a KMS key in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * You can also use <code>GetParametersForImport</code> to get a public key and import token to <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the original key material</a> into a KMS key whose key material expired or was deleted.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> returns the items that you need to import your key material.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The public key (or "wrapping key") of an RSA key pair that KMS generates.
+     * </p>
+     * <p>
+     * You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The public key and its import token are permanently linked and must be used together. Each public key and import
+     * token set is valid for 24 hours. The expiration date and time appear in the <code>ParametersValidTo</code> field
+     * in the <code>GetParametersForImport</code> response. You cannot use an expired public key or import token in an
+     * <a>ImportKeyMaterial</a> request. If your key and token expire, send another <code>GetParametersForImport</code>
+     * request.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> requires the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID of the KMS key for which you are importing the key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The wrapping algorithm that you will use with the public key to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the
+     * same key material.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetParametersForImport</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getParametersForImportRequest
+     * @return Result of the GetParametersForImport operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetParametersForImport
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport" target="_top">AWS
+     *      API Documentation</a>
+     */
+    @Override
+    public GetParametersForImportResponse getParametersForImport(GetParametersForImportRequest getParametersForImportRequest)
+            throws InvalidArnException, UnsupportedOperationException, DependencyTimeoutException, NotFoundException,
+            KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GetParametersForImportResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, GetParametersForImportResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getParametersForImportRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getParametersForImportRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetParametersForImport");
+
+            return clientHandler
+                    .execute(new ClientExecutionParams<GetParametersForImportRequest, GetParametersForImportResponse>()
+                            .withOperationName("GetParametersForImport").withProtocolMetadata(protocolMetadata)
+                            .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                            .withRequestConfiguration(clientConfiguration).withInput(getParametersForImportRequest)
+                            .withMetricCollector(apiCallMetricCollector)
+                            .withMarshaller(new GetParametersForImportRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never
+     * leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission can download the public key of an
+     * asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures
+     * outside of KMS. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You do not need to download the public key. Instead, you can use the public key within KMS by calling the
+     * <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When
+     * you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part
+     * of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are
+     * not effective outside of KMS.
+     * </p>
+     * <p>
+     * To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns important information
+     * about the public key in the response, including:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec"
+     * >KeySpec</a>: The type of key material in the public key, such as <code>RSA_4096</code> or
+     * <code>ECC_NIST_P521</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage"
+     * >KeyUsage</a>: Whether the key is used for encryption or signing.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms"
+     * >EncryptionAlgorithms</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms"
+     * >SigningAlgorithms</a>: A list of the encryption algorithms or the signing algorithms for the key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this
+     * information to prevent the public key from being used improperly. For example, you can prevent a public signing
+     * key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is
+     * not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification
+     * operation.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetPublicKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>CreateKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getPublicKeyRequest
+     * @return Result of the GetPublicKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetPublicKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetPublicKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public GetPublicKeyResponse getPublicKey(GetPublicKeyRequest getPublicKeyRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, UnsupportedOperationException,
+            InvalidArnException, InvalidGrantTokenException, InvalidKeyUsageException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<GetPublicKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                GetPublicKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(getPublicKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, getPublicKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetPublicKey");
+
+            return clientHandler.execute(new ClientExecutionParams<GetPublicKeyRequest, GetPublicKeyResponse>()
+                    .withOperationName("GetPublicKey").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(getPublicKeyRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new GetPublicKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Imports or reimports key material into an existing KMS key that was created without key material.
+     * <code>ImportKeyMaterial</code> also sets the expiration model and expiration date of the imported key material.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * After you successfully import key material into a KMS key, you can <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the same key material</a> into that KMS key, but you cannot import different key material. You might reimport key
+     * material to replace key material that expired or key material that you deleted. You might also reimport key
+     * material to change the expiration model or expiration date of the key material. Before reimporting key material,
+     * if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material.
+     * </p>
+     * <p>
+     * Each time you import key material into KMS, you can determine whether (<code>ExpirationModel</code>) and when (
+     * <code>ValidTo</code>) the key material expires. To change the expiration of your key material, you must import it
+     * again, either by calling <code>ImportKeyMaterial</code> or using the <a href=
+     * "kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-import-key-material-console"
+     * >import features</a> of the KMS console.
+     * </p>
+     * <p>
+     * Before calling <code>ImportKeyMaterial</code>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Create or identify a KMS key with no key material. The KMS key must have an <code>Origin</code> value of
+     * <code>EXTERNAL</code>, which indicates that the KMS key is designed for imported key material.
+     * </p>
+     * <p>
+     * To create an new KMS key for imported key material, call the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code>. You can create a symmetric encryption KMS key, HMAC KMS key,
+     * asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a <a
+     * href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported type.
+     * However, you can't import key material into a KMS key in a <a
+     * href="kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <a>DescribeKey</a> operation to verify that the <code>KeyState</code> of the KMS key is
+     * <code>PendingImport</code>, which indicates that the KMS key has no key material.
+     * </p>
+     * <p>
+     * If you are reimporting the same key material into an existing KMS key, you might need to call the
+     * <a>DeleteImportedKeyMaterial</a> to delete its existing key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Call the <a>GetParametersForImport</a> operation to get a public key and import token set for importing key
+     * material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the public key in the <a>GetParametersForImport</a> response to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key material and import token. When
+     * calling this operation, you must specify the following values:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID or key ARN of the KMS key to associate with the imported key material. Its <code>Origin</code> must be
+     * <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. You cannot perform this
+     * operation on a KMS key in a <a href="kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a>, or on a KMS key in a different Amazon Web Services account. To get the <code>Origin</code> and
+     * <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The encrypted key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The import token that <a>GetParametersForImport</a> returned. You must use a public key and token from the same
+     * <code>GetParametersForImport</code> response.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether the key material expires (<code>ExpirationModel</code>) and, if so, when (<code>ValidTo</code>). For help
+     * with this choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the
+     * KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material.
+     * However, you can delete and reimport the key material at any time, including before the key material expires.
+     * Each time you reimport, you can eliminate or reset the expiration time.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When this operation is successful, the key state of the KMS key changes from <code>PendingImport</code> to
+     * <code>Enabled</code>, and you can use the KMS key in cryptographic operations.
+     * </p>
+     * <p>
+     * If this operation fails, use the exception to help determine the problem. If the error is related to the key
+     * material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import
+     * token for the KMS key and repeat the import procedure. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To
+     * Import Key Material</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ImportKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param importKeyMaterialRequest
+     * @return Result of the ImportKeyMaterial operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws IncorrectKeyMaterialException
+     *         The request was rejected because the key material in the request is, expired, invalid, or is not the same
+     *         key material that was previously imported into this KMS key.
+     * @throws ExpiredImportTokenException
+     *         The request was rejected because the specified import token is expired. Use <a>GetParametersForImport</a>
+     *         to get a new import token and public key, use the new public key to encrypt the key material, and then
+     *         try the request again.
+     * @throws InvalidImportTokenException
+     *         The request was rejected because the provided import token is invalid or is associated with a different
+     *         KMS key.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ImportKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ImportKeyMaterialResponse importKeyMaterial(ImportKeyMaterialRequest importKeyMaterialRequest)
+            throws InvalidArnException, UnsupportedOperationException, DependencyTimeoutException, NotFoundException,
+            KmsInternalException, KmsInvalidStateException, InvalidCiphertextException, IncorrectKeyMaterialException,
+            ExpiredImportTokenException, InvalidImportTokenException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ImportKeyMaterialResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ImportKeyMaterialResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(importKeyMaterialRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, importKeyMaterialRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ImportKeyMaterial");
+
+            return clientHandler.execute(new ClientExecutionParams<ImportKeyMaterialRequest, ImportKeyMaterialResponse>()
+                    .withOperationName("ImportKeyMaterial").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(importKeyMaterialRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ImportKeyMaterialRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listAliasesRequest
+     * @return Result of the ListAliases operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ListAliasesResponse listAliases(ListAliasesRequest listAliasesRequest) throws DependencyTimeoutException,
+            InvalidMarkerException, KmsInternalException, InvalidArnException, NotFoundException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ListAliasesResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ListAliasesResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listAliasesRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listAliasesRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListAliases");
+
+            return clientHandler.execute(new ClientExecutionParams<ListAliasesRequest, ListAliasesResponse>()
+                    .withOperationName("ListAliases").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(listAliasesRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ListAliasesRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a list of all grants for the specified KMS key.
+     * </p>
+     * <p>
+     * You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <note>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListGrants</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listGrantsRequest
+     * @return Result of the ListGrants operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ListGrantsResponse listGrants(ListGrantsRequest listGrantsRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidMarkerException, InvalidGrantIdException, InvalidArnException,
+            KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ListGrantsResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ListGrantsResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listGrantsRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listGrantsRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListGrants");
+
+            return clientHandler.execute(new ClientExecutionParams<ListGrantsRequest, ListGrantsResponse>()
+                    .withOperationName("ListGrants").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(listGrantsRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ListGrantsRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names
+     * that you can use in a <a>GetKeyPolicy</a> operation. However, the only valid policy name is <code>default</code>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListKeyPolicies</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     * @return Result of the ListKeyPolicies operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ListKeyPoliciesResponse listKeyPolicies(ListKeyPoliciesRequest listKeyPoliciesRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ListKeyPoliciesResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ListKeyPoliciesResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listKeyPoliciesRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listKeyPoliciesRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListKeyPolicies");
+
+            return clientHandler.execute(new ClientExecutionParams<ListKeyPoliciesRequest, ListKeyPoliciesResponse>()
+                    .withOperationName("ListKeyPolicies").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(listKeyPoliciesRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ListKeyPoliciesRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeysRequest
+     * @return Result of the ListKeys operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ListKeysResponse listKeys(ListKeysRequest listKeysRequest) throws DependencyTimeoutException, KmsInternalException,
+            InvalidMarkerException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ListKeysResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ListKeysResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listKeysRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listKeysRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListKeys");
+
+            return clientHandler.execute(new ClientExecutionParams<ListKeysRequest, ListKeysResponse>()
+                    .withOperationName("ListKeys").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(listKeysRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ListKeysRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns all tags on the specified KMS key.
+     * </p>
+     * <p>
+     * For general information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>. For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListResourceTags</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     * @return Result of the ListResourceTags operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ListResourceTagsResponse listResourceTags(ListResourceTagsRequest listResourceTagsRequest)
+            throws KmsInternalException, NotFoundException, InvalidArnException, InvalidMarkerException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ListResourceTagsResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ListResourceTagsResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listResourceTagsRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listResourceTagsRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListResourceTags");
+
+            return clientHandler.execute(new ClientExecutionParams<ListResourceTagsRequest, ListResourceTagsResponse>()
+                    .withOperationName("ListResourceTags").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(listResourceTagsRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ListResourceTagsRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Returns information about all grants in the Amazon Web Services account and Region that have the specified
+     * retiring principal.
+     * </p>
+     * <p>
+     * You can specify any principal in your Amazon Web Services account. The grants that are returned include grants
+     * for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
+     * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: You must specify a principal in your Amazon Web Services account. This operation
+     * returns a list of grants where the retiring principal specified in the <code>ListRetirableGrants</code> request
+     * is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web
+     * Services accounts, but you do not need <code>kms:ListRetirableGrants</code> permission (or any other additional
+     * permission) in any Amazon Web Services account other than your own.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.
+     * </p>
+     * <note>
+     * <p>
+     * KMS authorizes <code>ListRetirableGrants</code> requests by evaluating the caller account's
+     * kms:ListRetirableGrants permissions. The authorized resource in <code>ListRetirableGrants</code> calls is the
+     * retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their
+     * access to any KMS keys or grants that might be returned by the <code>ListRetirableGrants</code> call.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     * @return Result of the ListRetirableGrants operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ListRetirableGrantsResponse listRetirableGrants(ListRetirableGrantsRequest listRetirableGrantsRequest)
+            throws DependencyTimeoutException, InvalidMarkerException, InvalidArnException, NotFoundException,
+            KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ListRetirableGrantsResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, ListRetirableGrantsResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(listRetirableGrantsRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, listRetirableGrantsRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListRetirableGrants");
+
+            return clientHandler.execute(new ClientExecutionParams<ListRetirableGrantsRequest, ListRetirableGrantsResponse>()
+                    .withOperationName("ListRetirableGrants").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(listRetirableGrantsRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ListRetirableGrantsRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Attaches a key policy to the specified KMS key.
+     * </p>
+     * <p>
+     * For more information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key
+     * Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple
+     * programming languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a
+     * key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:PutKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GetKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param putKeyPolicyRequest
+     * @return Result of the PutKeyPolicy operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.PutKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public PutKeyPolicyResponse putKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest) throws NotFoundException,
+            InvalidArnException, MalformedPolicyDocumentException, DependencyTimeoutException, UnsupportedOperationException,
+            KmsInternalException, LimitExceededException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<PutKeyPolicyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                PutKeyPolicyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(putKeyPolicyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, putKeyPolicyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "PutKeyPolicy");
+
+            return clientHandler.execute(new ClientExecutionParams<PutKeyPolicyRequest, PutKeyPolicyResponse>()
+                    .withOperationName("PutKeyPolicy").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(putKeyPolicyRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new PutKeyPolicyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key
+     * under which data is encrypted, such as when you <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
+     * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt
+     * ciphertext under the same KMS key, such as to change the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>
+     * of a ciphertext.
+     * </p>
+     * <p>
+     * The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS
+     * operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by
+     * using the public key of an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
+     * KMS key</a> outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>
+     * or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * When you use the <code>ReEncrypt</code> operation, you need to provide information for the decrypt operation and
+     * the subsequent encrypt operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under an asymmetric KMS key, you must use the <code>SourceKeyId</code> parameter
+     * to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was
+     * used. This information is required to decrypt the data.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under a symmetric encryption KMS key, the <code>SourceKeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always
+     * recommended as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key, KMS
+     * uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the
+     * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter to specify the KMS key that
+     * re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also
+     * provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important></li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services
+     * accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a
+     * different account, you must use its key ARN or alias ARN.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:
+     * ReEncryptFrom</a> permission on the source KMS key (key policy)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo
+     * </a> permission on the destination KMS key (key policy)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code> permission in your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
+     * automatically included in the key policy when you use the console to create a KMS key. But you must include it
+     * manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a
+     * key policy.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param reEncryptRequest
+     * @return Result of the ReEncrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws IncorrectKeyException
+     *         The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in
+     *         a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the
+     *         same KMS key that was used to encrypt the ciphertext.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ReEncrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ReEncryptResponse reEncrypt(ReEncryptRequest reEncryptRequest) throws NotFoundException, DisabledException,
+            InvalidCiphertextException, KeyUnavailableException, IncorrectKeyException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ReEncryptResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ReEncryptResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(reEncryptRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, reEncryptRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ReEncrypt");
+
+            return clientHandler.execute(new ClientExecutionParams<ReEncryptRequest, ReEncryptResponse>()
+                    .withOperationName("ReEncrypt").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(reEncryptRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ReEncryptRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based
+     * on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create
+     * multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key,
+     * use the <a>CreateKey</a> operation.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * A <i>replica key</i> is a fully-functional KMS key that can be used independently of its primary and peer replica
+     * keys. A primary key and its replica keys share properties that make them interoperable. They have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key
+     * material. They also have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation
+     * status</a>. KMS automatically synchronizes these shared properties among related multi-Region keys. All other
+     * properties of a replica key can differ, including its <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. KMS
+     * pricing and quotas for KMS keys apply to each primary key and replica key.
+     * </p>
+     * <p>
+     * When this operation completes, the new replica key has a transient key state of <code>Creating</code>. This key
+     * state changes to <code>Enabled</code> (or <code>PendingImport</code>) after a few seconds when the process of
+     * creating the new replica key is complete. While the key state is <code>Creating</code>, you can manage key, but
+     * you cannot yet use it in cryptographic operations. If you are creating and using the replica key
+     * programmatically, retry on <code>KMSInvalidStateException</code> or call <code>DescribeKey</code> to check its
+     * <code>KeyState</code> value before using it. For details about the <code>Creating</code> key state, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica
+     * of the key you're trying to replicate, <code>ReplicateKey</code> returns an <code>AlreadyExistsException</code>
+     * error. If the key state of the existing replica is <code>PendingDeletion</code>, you can cancel the scheduled key
+     * deletion (<a>CancelKeyDeletion</a>) or wait for the key to be deleted. The new replica key you create will have
+     * the same <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties"
+     * >shared properties</a> as the original replica key.
+     * </p>
+     * <p>
+     * The CloudTrail log of a <code>ReplicateKey</code> operation records a <code>ReplicateKey</code> operation in the
+     * primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.
+     * </p>
+     * <p>
+     * If you replicate a multi-Region primary key with imported key material, the replica key is created with no key
+     * material. You must import the same key material that you imported into the primary key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html">Importing key material
+     * into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <note>
+     * <p>
+     * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and <code>Tags</code>
+     * parameters than those used in the KMS console. For details, see the parameter descriptions.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a replica key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this permission in the
+     * primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:CreateKey</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To use the <code>Tags</code> parameter, <code>kms:TagResource</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdatePrimaryRegion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param replicateKeyRequest
+     * @return Result of the ReplicateKey operation returned by the service.
+     * @throws AlreadyExistsException
+     *         The request was rejected because it attempted to create a resource that already exists.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ReplicateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReplicateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ReplicateKeyResponse replicateKey(ReplicateKeyRequest replicateKeyRequest) throws AlreadyExistsException,
+            DisabledException, InvalidArnException, KmsInvalidStateException, KmsInternalException, LimitExceededException,
+            MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ReplicateKeyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                ReplicateKeyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(replicateKeyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, replicateKeyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ReplicateKey");
+
+            return clientHandler.execute(new ClientExecutionParams<ReplicateKeyRequest, ReplicateKeyResponse>()
+                    .withOperationName("ReplicateKey").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(replicateKeyRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ReplicateKeyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param retireGrantRequest
+     * @return Result of the RetireGrant operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public RetireGrantResponse retireGrant(RetireGrantRequest retireGrantRequest) throws InvalidArnException,
+            InvalidGrantTokenException, InvalidGrantIdException, NotFoundException, DependencyTimeoutException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<RetireGrantResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                RetireGrantResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(retireGrantRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, retireGrantRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "RetireGrant");
+
+            return clientHandler.execute(new ClientExecutionParams<RetireGrantRequest, RetireGrantResponse>()
+                    .withOperationName("RetireGrant").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(retireGrantRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new RetireGrantRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more
+     * information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:RevokeGrant</a> (key policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param revokeGrantRequest
+     * @return Result of the RevokeGrant operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RevokeGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public RevokeGrantResponse revokeGrant(RevokeGrantRequest revokeGrantRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidArnException, InvalidGrantIdException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<RevokeGrantResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                RevokeGrantResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(revokeGrantRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, revokeGrantRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "RevokeGrant");
+
+            return clientHandler.execute(new ClientExecutionParams<RevokeGrantRequest, RevokeGrantResponse>()
+                    .withOperationName("RevokeGrant").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(revokeGrantRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new RevokeGrantRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a
+     * waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to
+     * <code>PendingDeletion</code> and the key can't be used in any cryptographic operations. It remains in this state
+     * for the duration of the waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
+     * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and
+     * all KMS data associated with it, including all aliases that refer to it.
+     * </p>
+     * <important>
+     * <p>
+     * Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that
+     * was encrypted under the KMS key is unrecoverable. (The only exception is a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">multi-Region replica
+     * key</a>, or an <a href="kms/latest/developerguide/importing-keys-managing.html#import-delete-key">asymmetric or
+     * HMAC KMS key with imported key material</a>.) To prevent the use of a KMS key without deleting it, use
+     * <a>DisableKey</a>.
+     * </p>
+     * </important>
+     * <p>
+     * You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will
+     * not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key
+     * with replicas, its key state changes to <code>PendingReplicaDeletion</code> and it cannot be replicated or used
+     * in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted
+     * (not just scheduled), the key state of the primary key changes to <code>PendingDeletion</code> and its waiting
+     * period (<code>PendingWindowInDays</code>) begins. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region
+     * keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-cmk-keystore.html">deletes a KMS
+     * key from an CloudHSM key store</a>, it makes a best effort to delete the associated key material from the
+     * associated CloudHSM cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-xks-key.html">Deleting a KMS key from an
+     * external key store</a> has no effect on the associated external key. However, for both types of custom key
+     * stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS
+     * key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external
+     * key store by creating a new KMS key with the same key material.
+     * </p>
+     * <p>
+     * For more information about scheduling a KMS key for deletion, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CancelKeyDeletion</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisableKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param scheduleKeyDeletionRequest
+     * @return Result of the ScheduleKeyDeletion operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ScheduleKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public ScheduleKeyDeletionResponse scheduleKeyDeletion(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<ScheduleKeyDeletionResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, ScheduleKeyDeletionResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(scheduleKeyDeletionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, scheduleKeyDeletionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ScheduleKeyDeletion");
+
+            return clientHandler.execute(new ClientExecutionParams<ScheduleKeyDeletionRequest, ScheduleKeyDeletionResponse>()
+                    .withOperationName("ScheduleKeyDeletion").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(scheduleKeyDeletionRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new ScheduleKeyDeletionRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signature</a> for a message or
+     * message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the
+     * <a>Verify</a> operation, or use the public key in the same asymmetric KMS key outside of KMS. For information
+     * about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is
+     * represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a
+     * message. Anyone with the public key can verify that the message was signed with that particular private key and
+     * that the message hasn't changed since it was signed.
+     * </p>
+     * <p>
+     * To use the <code>Sign</code> operation, provide the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a <code>KeyUsage</code> value of
+     * <code>SIGN_VERIFY</code>. To get the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
+     * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <code>Message</code> parameter to specify the message or message digest to sign. You can submit messages
+     * of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash
+     * digest in the <code>Message</code> parameter. To indicate whether the message is a full message or a digest, use
+     * the <code>MessageType</code> parameter.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Choose a signing algorithm that is compatible with the KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <important>
+     * <p>
+     * When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to
+     * verify the signature.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signature is effective. This deters an attack
+     * where the actor uses a signed message to establish validity repeatedly or long after the message is superseded.
+     * Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect
+     * when its time to refresh the signature.
+     * </p>
+     * </note>
+     * <p>
+     * To verify the signature that this operation generates, use the <a>Verify</a> operation. Or use the
+     * <a>GetPublicKey</a> operation to download the public key and then use the public key to verify the signature
+     * outside of KMS.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key
+     * policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Verify</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param signRequest
+     * @return Result of the Sign operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Sign
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Sign" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public SignResponse sign(SignRequest signRequest) throws NotFoundException, DisabledException, KeyUnavailableException,
+            DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<SignResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                SignResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(signRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, signRequest.overrideConfiguration()
+                .orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Sign");
+
+            return clientHandler.execute(new ClientExecutionParams<SignRequest, SignResponse>().withOperationName("Sign")
+                    .withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(signRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new SignRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Adds or edits tags on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an
+     * empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
+     * key and a new tag value.
+     * </p>
+     * <p>
+     * You can use this operation to tag a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>,
+     * but you cannot tag an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>, an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned key</a>, a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>,
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.
+     * </p>
+     * <p>
+     * You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param tagResourceRequest
+     * @return Result of the TagResource operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.TagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws KmsInternalException, NotFoundException,
+            InvalidArnException, KmsInvalidStateException, LimitExceededException, TagException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<TagResourceResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                TagResourceResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(tagResourceRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, tagResourceRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "TagResource");
+
+            return clientHandler.execute(new ClientExecutionParams<TagResourceRequest, TagResourceResponse>()
+                    .withOperationName("TagResource").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(tagResourceRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new TagResourceRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Deletes tags from a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * To delete a tag, specify the tag key and the KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * When it succeeds, the <code>UntagResource</code> operation doesn't return any output. Also, if the specified tag
+     * key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation
+     * worked, use the <a>ListResourceTags</a> operation.
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UntagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param untagResourceRequest
+     * @return Result of the UntagResource operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UntagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws KmsInternalException,
+            NotFoundException, InvalidArnException, KmsInvalidStateException, TagException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<UntagResourceResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                UntagResourceResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(untagResourceRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, untagResourceRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UntagResource");
+
+            return clientHandler.execute(new ClientExecutionParams<UntagResourceRequest, UntagResourceResponse>()
+                    .withOperationName("UntagResource").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(untagResourceRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new UntagResourceRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a
+     * time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web
+     * Services account and Region.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must
+     * have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias
+     * to a different type of KMS key, use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to create a
+     * new alias.
+     * </p>
+     * <p>
+     * You cannot use <code>UpdateAlias</code> to change an alias name. To change an alias name, use <a>DeleteAlias</a>
+     * to delete the old alias and <a>CreateAlias</a> to create a new alias.
+     * </p>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key
+     * without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation.
+     * To get the aliases of all KMS keys in the account, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the current KMS key (key policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the new KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateAliasRequest
+     * @return Result of the UpdateAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public UpdateAliasResponse updateAlias(UpdateAliasRequest updateAliasRequest) throws DependencyTimeoutException,
+            NotFoundException, KmsInternalException, LimitExceededException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<UpdateAliasResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                UpdateAliasResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updateAliasRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updateAliasRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateAlias");
+
+            return clientHandler.execute(new ClientExecutionParams<UpdateAliasRequest, UpdateAliasResponse>()
+                    .withOperationName("UpdateAlias").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(updateAliasRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new UpdateAliasRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM
+     * key store or an external key store.
+     * </p>
+     * <p>
+     * Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store. Use the remaining
+     * optional parameters to change its properties. This operation does not return any property values. To verify the
+     * updated property values, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <important>
+     * <p>
+     * When updating the properties of an external key store, verify that the updated settings connect your key store,
+     * via the external key store proxy, to the same external key manager as the previous settings, or to a backup or
+     * snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail,
+     * you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if
+     * KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.
+     * </p>
+     * </important> <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for updating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot upload the proxy configuration file to the <code>UpdateCustomKeyStore</code>
+     * operation. However, you can use the file to help you determine the correct values for the
+     * <code>UpdateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * For an CloudHSM key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), to tell KMS about a change to the <code>kmsuser</code> crypto user password
+     * (<code>KeyStorePassword</code>), or to associate the custom key store with a different, but related, CloudHSM
+     * cluster (<code>CloudHsmClusterId</code>). To update any property of an CloudHSM key store, the
+     * <code>ConnectionState</code> of the CloudHSM key store must be <code>DISCONNECTED</code>.
+     * </p>
+     * <p>
+     * For an external key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), or to tell KMS about a change to the external key store proxy authentication
+     * credentials (<code>XksProxyAuthenticationCredential</code>), connection method (<code>XksProxyConnectivity</code>
+     * ), external proxy endpoint (<code>XksProxyUriEndpoint</code>) and path (<code>XksProxyUriPath</code>). For
+     * external key stores with an <code>XksProxyConnectivity</code> of <code>VPC_ENDPOINT_SERVICE</code>, you can also
+     * update the Amazon VPC endpoint service name (<code>XksProxyVpcEndpointServiceName</code>). To update most
+     * properties of an external key store, the <code>ConnectionState</code> of the external key store must be
+     * <code>DISCONNECTED</code>. However, you can update the <code>CustomKeyStoreName</code>,
+     * <code>XksProxyAuthenticationCredential</code>, and <code>XksProxyUriPath</code> of an external key store when it
+     * is in the CONNECTED or DISCONNECTED state.
+     * </p>
+     * <p>
+     * If your update requires a <code>DISCONNECTED</code> state, before using <code>UpdateCustomKeyStore</code>, use
+     * the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store. After the
+     * <code>UpdateCustomKeyStore</code> operation completes, use the <a>ConnectCustomKeyStore</a> to reconnect the
+     * custom key store. To find the <code>ConnectionState</code> of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * </p>
+     * <p>
+     * Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its
+     * backing key store. For example, before you change the <code>XksProxyUriPath</code> value, verify that the
+     * external key store proxy is reachable at the new path.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateCustomKeyStoreRequest
+     * @return Result of the UpdateCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreNameInUseException
+     *         The request was rejected because the specified custom key store name is already assigned to another
+     *         custom key store in the account. Try again with a custom key store name that is unique in the account.
+     * @throws CloudHsmClusterNotFoundException
+     *         The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         Retry the request with a different cluster ID.
+     * @throws CloudHsmClusterNotRelatedException
+     *         The request was rejected because the specified CloudHSM cluster has a different cluster certificate than
+     *         the original cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key
+     *         store.</p>
+     *         <p>
+     *         Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes
+     *         clusters that were created from a backup of the current cluster, and clusters that were created from the
+     *         same backup that produced the current cluster.
+     *         </p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+     *         </p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksProxyUriInUseException
+     *         The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+     *         <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. Each external key store in a Region must use a unique external key store proxy API
+     *         address.
+     * @throws XksProxyUriEndpointInUseException
+     *         The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. To identify the cause, see the error message that
+     *         accompanies the exception.
+     * @throws XksProxyUriUnreachableException
+     *         KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you
+     *         create the external key store or update its settings.
+     *         </p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.
+     * @throws XksProxyIncorrectAuthenticationCredentialException
+     *         The request was rejected because the proxy credentials failed to authenticate to the specified external
+     *         key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid
+     *         credentials. This can indicate an error in the credentials or in the identification of the external key
+     *         store proxy.
+     * @throws XksProxyVpcEndpointServiceInUseException
+     *         The request was rejected because the specified Amazon VPC endpoint service is already associated with
+     *         another external key store in this Amazon Web Services Region. Each external key store in a Region must
+     *         use a different Amazon VPC endpoint service.
+     * @throws XksProxyVpcEndpointServiceNotFoundException
+     *         The request was rejected because KMS could not find the specified VPC endpoint service. Use
+     *         <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also,
+     *         confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service
+     *         principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * @throws XksProxyVpcEndpointServiceInvalidConfigurationException
+     *         The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the
+     *         requirements for an external key store. To identify the cause, see the error message that accompanies the
+     *         exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+     * @throws XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.
+     * @throws XksProxyInvalidConfigurationException
+     *         The request was rejected because the external key store proxy is not configured correctly. To identify
+     *         the cause, see the error message that accompanies the exception.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public UpdateCustomKeyStoreResponse updateCustomKeyStore(UpdateCustomKeyStoreRequest updateCustomKeyStoreRequest)
+            throws CustomKeyStoreNotFoundException, CustomKeyStoreNameInUseException, CloudHsmClusterNotFoundException,
+            CloudHsmClusterNotRelatedException, CustomKeyStoreInvalidStateException, KmsInternalException,
+            CloudHsmClusterNotActiveException, CloudHsmClusterInvalidConfigurationException, XksProxyUriInUseException,
+            XksProxyUriEndpointInUseException, XksProxyUriUnreachableException,
+            XksProxyIncorrectAuthenticationCredentialException, XksProxyVpcEndpointServiceInUseException,
+            XksProxyVpcEndpointServiceNotFoundException, XksProxyVpcEndpointServiceInvalidConfigurationException,
+            XksProxyInvalidResponseException, XksProxyInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<UpdateCustomKeyStoreResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, UpdateCustomKeyStoreResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updateCustomKeyStoreRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updateCustomKeyStoreRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateCustomKeyStore");
+
+            return clientHandler.execute(new ClientExecutionParams<UpdateCustomKeyStoreRequest, UpdateCustomKeyStoreResponse>()
+                    .withOperationName("UpdateCustomKeyStore").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(updateCustomKeyStoreRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new UpdateCustomKeyStoreRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateKeyDescription</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateKeyDescriptionRequest
+     * @return Result of the UpdateKeyDescription operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateKeyDescription
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public UpdateKeyDescriptionResponse updateKeyDescription(UpdateKeyDescriptionRequest updateKeyDescriptionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<UpdateKeyDescriptionResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, UpdateKeyDescriptionResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updateKeyDescriptionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updateKeyDescriptionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateKeyDescription");
+
+            return clientHandler.execute(new ClientExecutionParams<UpdateKeyDescriptionRequest, UpdateKeyDescriptionResponse>()
+                    .withOperationName("UpdateKeyDescription").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(updateKeyDescriptionRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new UpdateKeyDescriptionRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Changes the primary key of a multi-Region key.
+     * </p>
+     * <p>
+     * This operation changes the replica key in the specified Region to a primary key and changes the former primary
+     * key to a replica key. For example, suppose you have a primary key in <code>us-east-1</code> and a replica key in
+     * <code>eu-west-2</code>. If you run <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
+     * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the key in
+     * <code>us-east-1</code> becomes a replica key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update"
+     * >Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <i>primary key</i> of a multi-Region key is the source for properties that are always shared by primary and
+     * replica keys, including the key material, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation</a>.
+     * It's the only key that can be replicated. You cannot <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
+     * key</a> until all replica keys are deleted.
+     * </p>
+     * <p>
+     * The key ID and primary Region that you specify uniquely identify the replica key that will become the primary
+     * key. The primary Region must already have a replica key. This operation does not create a KMS key in the
+     * specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any
+     * replica key. To create a replica key, use the <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation
+     * should not delay, interrupt, or cause failures in cryptographic operations.
+     * </p>
+     * <p>
+     * Even after this operation completes, the process of updating the primary Region might still be in progress for a
+     * few more seconds. Operations such as <code>DescribeKey</code> might display both the old and new primary keys as
+     * replicas. The old and new primary keys have a transient key state of <code>Updating</code>. The original key
+     * state is restored when the update is complete. While the key state is <code>Updating</code>, you can use the keys
+     * in cryptographic operations, but you cannot replicate the new primary key or perform certain management
+     * operations, such as enabling or disabling these keys. For details about the <code>Updating</code> key state, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return any output. To verify that primary key is changed, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's Region). Include this
+     * permission primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's Region). Include this
+     * permission in the replica key's key policy.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updatePrimaryRegionRequest
+     * @return Result of the UpdatePrimaryRegion operation returned by the service.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdatePrimaryRegion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdatePrimaryRegion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public UpdatePrimaryRegionResponse updatePrimaryRegion(UpdatePrimaryRegionRequest updatePrimaryRegionRequest)
+            throws DisabledException, InvalidArnException, KmsInvalidStateException, KmsInternalException, NotFoundException,
+            UnsupportedOperationException, AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<UpdatePrimaryRegionResponse> responseHandler = protocolFactory.createResponseHandler(
+                operationMetadata, UpdatePrimaryRegionResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(updatePrimaryRegionRequest,
+                this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, updatePrimaryRegionRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdatePrimaryRegion");
+
+            return clientHandler.execute(new ClientExecutionParams<UpdatePrimaryRegionRequest, UpdatePrimaryRegionResponse>()
+                    .withOperationName("UpdatePrimaryRegion").withProtocolMetadata(protocolMetadata)
+                    .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler)
+                    .withRequestConfiguration(clientConfiguration).withInput(updatePrimaryRegionRequest)
+                    .withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new UpdatePrimaryRegionRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Verifies a digital signature that was generated by the <a>Sign</a> operation.
+     * </p>
+     * <p/>
+     * <p>
+     * Verification confirms that an authorized user signed the message with the specified KMS key and signing
+     * algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the
+     * <code>SignatureValid</code> field in the response is <code>True</code>. If the signature verification fails, the
+     * <code>Verify</code> operation fails with an <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * <p>
+     * A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by
+     * using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To use the <code>Verify</code> operation, specify the same asymmetric KMS key, message, and signing algorithm
+     * that were used to produce the signature. The message type does not need to be the same as the one used for
+     * signing, but it must indicate whether the value of the <code>Message</code> parameter should be hashed as part of
+     * the verification process.
+     * </p>
+     * <p>
+     * You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the
+     * <a>GetPublicKey</a> operation to download the public key in the asymmetric KMS key and then use the public key to
+     * verify the signature outside of KMS. The advantage of using the <code>Verify</code> operation is that it is
+     * performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is
+     * logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key
+     * to verify signatures.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Sign</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyRequest
+     * @return Result of the Verify operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInvalidSignatureException
+     *         The request was rejected because the signature verification failed. Signature verification fails when it
+     *         cannot confirm that signature was produced by signing the specified message with the specified KMS key
+     *         and signing algorithm.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Verify
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Verify" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public VerifyResponse verify(VerifyRequest verifyRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, KmsInvalidSignatureException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<VerifyResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                VerifyResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(verifyRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, verifyRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "Verify");
+
+            return clientHandler.execute(new ClientExecutionParams<VerifyRequest, VerifyResponse>().withOperationName("Verify")
+                    .withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(verifyRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new VerifyRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    /**
+     * <p>
+     * Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC
+     * algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using the message, HMAC KMS key, and MAC
+     * algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are
+     * identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed
+     * since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.
+     * </p>
+     * <p>
+     * HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in <a
+     * href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * This operation is part of KMS support for HMAC KMS keys. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GenerateMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyMacRequest
+     * @return Result of the VerifyMac operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidMacException
+     *         The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC
+     *         computed by using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC
+     *         specified in the request.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.VerifyMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    @Override
+    public VerifyMacResponse verifyMac(VerifyMacRequest verifyMacRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidMacException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false)
+                .isPayloadJson(true).build();
+
+        HttpResponseHandler<VerifyMacResponse> responseHandler = protocolFactory.createResponseHandler(operationMetadata,
+                VerifyMacResponse::builder);
+
+        HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
+                operationMetadata);
+        SdkClientConfiguration clientConfiguration = updateSdkClientConfiguration(verifyMacRequest, this.clientConfiguration);
+        List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, verifyMacRequest
+                .overrideConfiguration().orElse(null));
+        MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector
+                .create("ApiCall");
+        try {
+            apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "KMS");
+            apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "VerifyMac");
+
+            return clientHandler.execute(new ClientExecutionParams<VerifyMacRequest, VerifyMacResponse>()
+                    .withOperationName("VerifyMac").withProtocolMetadata(protocolMetadata).withResponseHandler(responseHandler)
+                    .withErrorResponseHandler(errorResponseHandler).withRequestConfiguration(clientConfiguration)
+                    .withInput(verifyMacRequest).withMetricCollector(apiCallMetricCollector)
+                    .withMarshaller(new VerifyMacRequestMarshaller(protocolFactory)));
+        } finally {
+            metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect()));
+        }
+    }
+
+    @Override
+    public final String serviceName() {
+        return SERVICE_NAME;
+    }
+
+    private static List<MetricPublisher> resolveMetricPublishers(SdkClientConfiguration clientConfiguration,
+            RequestOverrideConfiguration requestOverrideConfiguration) {
+        List<MetricPublisher> publishers = null;
+        if (requestOverrideConfiguration != null) {
+            publishers = requestOverrideConfiguration.metricPublishers();
+        }
+        if (publishers == null || publishers.isEmpty()) {
+            publishers = clientConfiguration.option(SdkClientOption.METRIC_PUBLISHERS);
+        }
+        if (publishers == null) {
+            publishers = Collections.emptyList();
+        }
+        return publishers;
+    }
+
+    private HttpResponseHandler<AwsServiceException> createErrorResponseHandler(BaseAwsJsonProtocolFactory protocolFactory,
+            JsonOperationMetadata operationMetadata) {
+        return protocolFactory.createErrorResponseHandler(operationMetadata);
+    }
+
+    private SdkClientConfiguration updateSdkClientConfiguration(SdkRequest request, SdkClientConfiguration clientConfiguration) {
+        List<SdkPlugin> plugins = request.overrideConfiguration().map(c -> c.plugins()).orElse(Collections.emptyList());
+        SdkClientConfiguration.Builder configuration = clientConfiguration.toBuilder();
+        if (plugins.isEmpty()) {
+            return configuration.build();
+        }
+        KmsServiceClientConfigurationBuilder serviceConfigBuilder = new KmsServiceClientConfigurationBuilder(configuration);
+        for (SdkPlugin plugin : plugins) {
+            plugin.configureClient(serviceConfigBuilder);
+        }
+        return configuration.build();
+    }
+
+    private <T extends BaseAwsJsonProtocolFactory.Builder<T>> T init(T builder) {
+        return builder
+                .clientConfiguration(clientConfiguration)
+                .defaultServiceExceptionSupplier(KmsException::builder)
+                .protocol(AwsJsonProtocol.AWS_JSON)
+                .protocolVersion("1.1")
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterNotFoundException")
+                                .exceptionBuilderSupplier(CloudHsmClusterNotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyInvalidConfigurationException")
+                                .exceptionBuilderSupplier(XksProxyInvalidConfigurationException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("ExpiredImportTokenException")
+                                .exceptionBuilderSupplier(ExpiredImportTokenException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreNotFoundException")
+                                .exceptionBuilderSupplier(CustomKeyStoreNotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyVpcEndpointServiceInvalidConfigurationException")
+                                .exceptionBuilderSupplier(XksProxyVpcEndpointServiceInvalidConfigurationException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyIncorrectAuthenticationCredentialException")
+                                .exceptionBuilderSupplier(XksProxyIncorrectAuthenticationCredentialException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("MalformedPolicyDocumentException")
+                                .exceptionBuilderSupplier(MalformedPolicyDocumentException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyUriUnreachableException")
+                                .exceptionBuilderSupplier(XksProxyUriUnreachableException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("IncorrectKeyMaterialException")
+                                .exceptionBuilderSupplier(IncorrectKeyMaterialException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidImportTokenException")
+                                .exceptionBuilderSupplier(InvalidImportTokenException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInvalidStateException")
+                                .exceptionBuilderSupplier(KmsInvalidStateException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyUriInUseException")
+                                .exceptionBuilderSupplier(XksProxyUriInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidArnException")
+                                .exceptionBuilderSupplier(InvalidArnException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterNotRelatedException")
+                                .exceptionBuilderSupplier(CloudHsmClusterNotRelatedException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreInvalidStateException")
+                                .exceptionBuilderSupplier(CustomKeyStoreInvalidStateException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("IncorrectTrustAnchorException")
+                                .exceptionBuilderSupplier(IncorrectTrustAnchorException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("DisabledException")
+                                .exceptionBuilderSupplier(DisabledException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("NotFoundException")
+                                .exceptionBuilderSupplier(NotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KeyUnavailableException")
+                                .exceptionBuilderSupplier(KeyUnavailableException::builder).httpStatusCode(500).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInvalidSignatureException")
+                                .exceptionBuilderSupplier(KmsInvalidSignatureException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInternalException")
+                                .exceptionBuilderSupplier(KmsInternalException::builder).httpStatusCode(500).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("LimitExceededException")
+                                .exceptionBuilderSupplier(LimitExceededException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterInUseException")
+                                .exceptionBuilderSupplier(CloudHsmClusterInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidCiphertextException")
+                                .exceptionBuilderSupplier(InvalidCiphertextException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyInvalidResponseException")
+                                .exceptionBuilderSupplier(XksProxyInvalidResponseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidGrantIdException")
+                                .exceptionBuilderSupplier(InvalidGrantIdException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyUriEndpointInUseException")
+                                .exceptionBuilderSupplier(XksProxyUriEndpointInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreHasCMKsException")
+                                .exceptionBuilderSupplier(CustomKeyStoreHasCmKsException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("IncorrectKeyException")
+                                .exceptionBuilderSupplier(IncorrectKeyException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidGrantTokenException")
+                                .exceptionBuilderSupplier(InvalidGrantTokenException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksKeyInvalidConfigurationException")
+                                .exceptionBuilderSupplier(XksKeyInvalidConfigurationException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("UnsupportedOperationException")
+                                .exceptionBuilderSupplier(UnsupportedOperationException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CustomKeyStoreNameInUseException")
+                                .exceptionBuilderSupplier(CustomKeyStoreNameInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("AlreadyExistsException")
+                                .exceptionBuilderSupplier(AlreadyExistsException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("KMSInvalidMacException")
+                                .exceptionBuilderSupplier(KmsInvalidMacException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("TagException").exceptionBuilderSupplier(TagException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksKeyAlreadyInUseException")
+                                .exceptionBuilderSupplier(XksKeyAlreadyInUseException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidKeyUsageException")
+                                .exceptionBuilderSupplier(InvalidKeyUsageException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyVpcEndpointServiceInUseException")
+                                .exceptionBuilderSupplier(XksProxyVpcEndpointServiceInUseException::builder).httpStatusCode(400)
+                                .build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterInvalidConfigurationException")
+                                .exceptionBuilderSupplier(CloudHsmClusterInvalidConfigurationException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidMarkerException")
+                                .exceptionBuilderSupplier(InvalidMarkerException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("InvalidAliasNameException")
+                                .exceptionBuilderSupplier(InvalidAliasNameException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksKeyNotFoundException")
+                                .exceptionBuilderSupplier(XksKeyNotFoundException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("XksProxyVpcEndpointServiceNotFoundException")
+                                .exceptionBuilderSupplier(XksProxyVpcEndpointServiceNotFoundException::builder)
+                                .httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("DependencyTimeoutException")
+                                .exceptionBuilderSupplier(DependencyTimeoutException::builder).httpStatusCode(500).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("CloudHsmClusterNotActiveException")
+                                .exceptionBuilderSupplier(CloudHsmClusterNotActiveException::builder).httpStatusCode(400).build())
+                .registerModeledException(
+                        ExceptionMetadata.builder().errorCode("DryRunOperationException")
+                                .exceptionBuilderSupplier(DryRunOperationException::builder).httpStatusCode(400).build());
+    }
+
+    @Override
+    public final KmsServiceClientConfiguration serviceClientConfiguration() {
+        return new KmsServiceClientConfigurationBuilder(this.clientConfiguration.toBuilder()).build();
+    }
+
+    @Override
+    public void close() {
+        clientHandler.close();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsClientBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsClientBuilder.java
new file mode 100644
index 0000000..2c56fd7
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/DefaultKmsClientBuilder.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientOption;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointProvider;
+
+/**
+ * Internal implementation of {@link KmsClientBuilder}.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+final class DefaultKmsClientBuilder extends DefaultKmsBaseClientBuilder<KmsClientBuilder, KmsClient> implements KmsClientBuilder {
+    @Override
+    public DefaultKmsClientBuilder endpointProvider(KmsEndpointProvider endpointProvider) {
+        clientConfiguration.option(SdkClientOption.ENDPOINT_PROVIDER, endpointProvider);
+        return this;
+    }
+
+    @Override
+    protected final KmsClient buildClient() {
+        SdkClientConfiguration clientConfiguration = super.syncClientConfiguration();
+        this.validateClientOptions(clientConfiguration);
+        KmsClient client = new DefaultKmsClient(clientConfiguration);
+        return client;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsAsyncClient.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsAsyncClient.java
new file mode 100644
index 0000000..7f9cc4d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsAsyncClient.java
@@ -0,0 +1,17942 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Consumer;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.annotations.ThreadSafe;
+import software.amazon.awssdk.awscore.AwsClient;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateAliasRequest;
+import software.amazon.awssdk.services.kms.model.CreateAliasResponse;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateGrantRequest;
+import software.amazon.awssdk.services.kms.model.CreateGrantResponse;
+import software.amazon.awssdk.services.kms.model.CreateKeyRequest;
+import software.amazon.awssdk.services.kms.model.CreateKeyResponse;
+import software.amazon.awssdk.services.kms.model.DecryptRequest;
+import software.amazon.awssdk.services.kms.model.DecryptResponse;
+import software.amazon.awssdk.services.kms.model.DeleteAliasRequest;
+import software.amazon.awssdk.services.kms.model.DeleteAliasResponse;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse;
+import software.amazon.awssdk.services.kms.model.DescribeKeyRequest;
+import software.amazon.awssdk.services.kms.model.DescribeKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.EnableKeyRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyResponse;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.EncryptRequest;
+import software.amazon.awssdk.services.kms.model.EncryptResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateMacRequest;
+import software.amazon.awssdk.services.kms.model.GenerateMacResponse;
+import software.amazon.awssdk.services.kms.model.GenerateRandomRequest;
+import software.amazon.awssdk.services.kms.model.GenerateRandomResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusResponse;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportRequest;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportResponse;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyRequest;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyResponse;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListGrantsResponse;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.services.kms.model.ListKeysResponse;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.ReEncryptRequest;
+import software.amazon.awssdk.services.kms.model.ReEncryptResponse;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyRequest;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyResponse;
+import software.amazon.awssdk.services.kms.model.RetireGrantRequest;
+import software.amazon.awssdk.services.kms.model.RetireGrantResponse;
+import software.amazon.awssdk.services.kms.model.RevokeGrantRequest;
+import software.amazon.awssdk.services.kms.model.RevokeGrantResponse;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.SignRequest;
+import software.amazon.awssdk.services.kms.model.SignResponse;
+import software.amazon.awssdk.services.kms.model.TagResourceRequest;
+import software.amazon.awssdk.services.kms.model.TagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UntagResourceRequest;
+import software.amazon.awssdk.services.kms.model.UntagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UpdateAliasRequest;
+import software.amazon.awssdk.services.kms.model.UpdateAliasResponse;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionResponse;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionResponse;
+import software.amazon.awssdk.services.kms.model.VerifyMacRequest;
+import software.amazon.awssdk.services.kms.model.VerifyMacResponse;
+import software.amazon.awssdk.services.kms.model.VerifyRequest;
+import software.amazon.awssdk.services.kms.model.VerifyResponse;
+import software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher;
+import software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher;
+import software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher;
+import software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher;
+import software.amazon.awssdk.services.kms.paginators.ListKeysPublisher;
+import software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher;
+import software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher;
+
+/**
+ * Service client for accessing KMS asynchronously. This can be created using the static {@link #builder()} method.
+ *
+ * <fullname>Key Management Service</fullname>
+ * <p>
+ * Key Management Service (KMS) is an encryption and key management web service. This guide describes the KMS operations
+ * that you can call programmatically. For general information about KMS, see the <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/"> <i>Key Management Service Developer Guide</i> </a>.
+ * </p>
+ * <note>
+ * <p>
+ * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept has
+ * not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+ * </p>
+ * <p>
+ * Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and
+ * platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a convenient way to create programmatic access
+ * to KMS and other Amazon Web Services services. For example, the SDKs take care of tasks such as signing requests (see
+ * below), managing errors, and retrying requests automatically. For more information about the Amazon Web Services
+ * SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web
+ * Services</a>.
+ * </p>
+ * </note>
+ * <p>
+ * We recommend that you use the Amazon Web Services SDKs to make programmatic API calls to KMS.
+ * </p>
+ * <p>
+ * If you need to use FIPS 140-2 validated cryptographic modules when communicating with Amazon Web Services, use the
+ * FIPS endpoint in your preferred Amazon Web Services Region. For more information about the available FIPS endpoints,
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">Service endpoints</a> in the Key
+ * Management Service topic of the <i>Amazon Web Services General Reference</i>.
+ * </p>
+ * <p>
+ * All KMS API calls must be signed and be transmitted using Transport Layer Security (TLS). KMS recommends you always
+ * use the latest supported TLS version. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such
+ * as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as
+ * Java 7 and later support these modes.
+ * </p>
+ * <p>
+ * <b>Signing Requests</b>
+ * </p>
+ * <p>
+ * Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use
+ * your Amazon Web Services account root access key ID and secret access key for everyday work. You can use the access
+ * key ID and secret access key for an IAM user or you can use the Security Token Service (STS) to generate temporary
+ * security credentials and use those to sign requests.
+ * </p>
+ * <p>
+ * All KMS requests must be signed with <a
+ * href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4</a>.
+ * </p>
+ * <p>
+ * <b>Logging API Requests</b>
+ * </p>
+ * <p>
+ * KMS supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web
+ * Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by
+ * CloudTrail, you can determine what requests were made to KMS, who made the request, when it was made, and so on. To
+ * learn more about CloudTrail, including how to turn it on and find your log files, see the <a
+ * href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.
+ * </p>
+ * <p>
+ * <b>Additional Resources</b>
+ * </p>
+ * <p>
+ * For more information about credentials and request signing, see the following:
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html">Amazon Web Services Security
+ * Credentials</a> - This topic provides general information about the types of credentials used to access Amazon Web
+ * Services.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security
+ * Credentials</a> - This section of the <i>IAM User Guide</i> describes how to create and use temporary security
+ * credentials.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 Signing
+ * Process</a> - This set of topics walks you through the process of signing a request using an access key ID and a
+ * secret access key.
+ * </p>
+ * </li>
+ * </ul>
+ * <p>
+ * <b>Commonly Used API Operations</b>
+ * </p>
+ * <p>
+ * Of the API operations discussed in this guide, the following will prove the most useful for most applications. You
+ * will likely perform operations other than these, such as creating keys and assigning policies, by using the console.
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * <a>Encrypt</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>Decrypt</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>GenerateDataKey</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>GenerateDataKeyWithoutPlaintext</a>
+ * </p>
+ * </li>
+ * </ul>
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+@ThreadSafe
+public interface KmsAsyncClient extends AwsClient {
+    String SERVICE_NAME = "kms";
+
+    /**
+     * Value for looking up the service's metadata from the
+     * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
+     */
+    String SERVICE_METADATA_ID = "kms";
+
+    /**
+     * <p>
+     * Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is
+     * <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>.
+     * </p>
+     * <p>
+     * For more information about scheduling and canceling deletion of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CancelKeyDeletion</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param cancelKeyDeletionRequest
+     * @return A Java Future containing the result of the CancelKeyDeletion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CancelKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CancelKeyDeletionResponse> cancelKeyDeletion(CancelKeyDeletionRequest cancelKeyDeletionRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is
+     * <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>.
+     * </p>
+     * <p>
+     * For more information about scheduling and canceling deletion of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CancelKeyDeletion</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CancelKeyDeletionRequest.Builder} avoiding the need
+     * to create one manually via {@link CancelKeyDeletionRequest#builder()}
+     * </p>
+     *
+     * @param cancelKeyDeletionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the CancelKeyDeletion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CancelKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CancelKeyDeletionResponse> cancelKeyDeletion(
+            Consumer<CancelKeyDeletionRequest.Builder> cancelKeyDeletionRequest) {
+        return cancelKeyDeletion(CancelKeyDeletionRequest.builder().applyMutation(cancelKeyDeletionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Connects or reconnects a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * to its backing key store. For an CloudHSM key store, <code>ConnectCustomKeyStore</code> connects the key store to
+     * its associated CloudHSM cluster. For an external key store, <code>ConnectCustomKeyStore</code> connects the key
+     * store to the external key store proxy that communicates with your external key manager.
+     * </p>
+     * <p>
+     * The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it
+     * contains. You can disconnect and reconnect a custom key store at any time.
+     * </p>
+     * <p>
+     * The connection process for a custom key store can take an extended amount of time to complete. This operation
+     * starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly
+     * returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that
+     * the custom key store is connected. To get the connection state of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The <code>ConnectCustomKeyStore</code> operation might fail for various reasons. To find the reason, use the
+     * <a>DescribeCustomKeyStores</a> operation and see the <code>ConnectionErrorCode</code> in the response. For help
+     * interpreting the <code>ConnectionErrorCode</code>, see <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * To fix the failure, use the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store, correct
+     * the error, use the <a>UpdateCustomKeyStore</a> operation if necessary, and then use
+     * <code>ConnectCustomKeyStore</code> again.
+     * </p>
+     * <p>
+     * <b>CloudHSM key store</b>
+     * </p>
+     * <p>
+     * During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with
+     * the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM
+     * client as the <code>kmsuser</code> CU, and rotates its password.
+     * </p>
+     * <p>
+     * To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the
+     * number of active HSMs in a cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation. To add HSMs to the cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation. Also,
+     * the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user</a> (CU) must not be logged into the cluster. This prevents KMS from using this
+     * account to log in.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting a CloudHSM key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>External key store</b>
+     * </p>
+     * <p>
+     * When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to
+     * communicate with your external key manager by sending a request via the external key store proxy.
+     * </p>
+     * <p>
+     * When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the
+     * networking elements that it needs to communicate with your external key manager via the external key store proxy.
+     * This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic
+     * between KMS and the VPC endpoint service.
+     * </p>
+     * <p>
+     * To connect an external key store, KMS must be able to connect to the external key store proxy, the external key
+     * store proxy must be able to communicate with your external key manager, and the external key manager must be
+     * available for cryptographic operations.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting an external key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ConnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param connectCustomKeyStoreRequest
+     * @return A Java Future containing the result of the ConnectCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ConnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ConnectCustomKeyStoreResponse> connectCustomKeyStore(
+            ConnectCustomKeyStoreRequest connectCustomKeyStoreRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Connects or reconnects a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * to its backing key store. For an CloudHSM key store, <code>ConnectCustomKeyStore</code> connects the key store to
+     * its associated CloudHSM cluster. For an external key store, <code>ConnectCustomKeyStore</code> connects the key
+     * store to the external key store proxy that communicates with your external key manager.
+     * </p>
+     * <p>
+     * The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it
+     * contains. You can disconnect and reconnect a custom key store at any time.
+     * </p>
+     * <p>
+     * The connection process for a custom key store can take an extended amount of time to complete. This operation
+     * starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly
+     * returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that
+     * the custom key store is connected. To get the connection state of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The <code>ConnectCustomKeyStore</code> operation might fail for various reasons. To find the reason, use the
+     * <a>DescribeCustomKeyStores</a> operation and see the <code>ConnectionErrorCode</code> in the response. For help
+     * interpreting the <code>ConnectionErrorCode</code>, see <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * To fix the failure, use the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store, correct
+     * the error, use the <a>UpdateCustomKeyStore</a> operation if necessary, and then use
+     * <code>ConnectCustomKeyStore</code> again.
+     * </p>
+     * <p>
+     * <b>CloudHSM key store</b>
+     * </p>
+     * <p>
+     * During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with
+     * the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM
+     * client as the <code>kmsuser</code> CU, and rotates its password.
+     * </p>
+     * <p>
+     * To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the
+     * number of active HSMs in a cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation. To add HSMs to the cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation. Also,
+     * the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user</a> (CU) must not be logged into the cluster. This prevents KMS from using this
+     * account to log in.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting a CloudHSM key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>External key store</b>
+     * </p>
+     * <p>
+     * When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to
+     * communicate with your external key manager by sending a request via the external key store proxy.
+     * </p>
+     * <p>
+     * When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the
+     * networking elements that it needs to communicate with your external key manager via the external key store proxy.
+     * This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic
+     * between KMS and the VPC endpoint service.
+     * </p>
+     * <p>
+     * To connect an external key store, KMS must be able to connect to the external key store proxy, the external key
+     * store proxy must be able to communicate with your external key manager, and the external key manager must be
+     * available for cryptographic operations.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting an external key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ConnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ConnectCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link ConnectCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param connectCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest.Builder} to create a
+     *        request.
+     * @return A Java Future containing the result of the ConnectCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ConnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ConnectCustomKeyStoreResponse> connectCustomKeyStore(
+            Consumer<ConnectCustomKeyStoreRequest.Builder> connectCustomKeyStoreRequest) {
+        return connectCustomKeyStore(ConnectCustomKeyStoreRequest.builder().applyMutation(connectCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a friendly name for a KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * You can use an alias to identify a KMS key in the KMS console, in the <a>DescribeKey</a> operation and in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>, such as <a>Encrypt</a> and <a>GenerateDataKey</a>. You can also change the KMS key that's
+     * associated with the alias (<a>UpdateAlias</a>) or delete the alias (<a>DeleteAlias</a>) at any time. These
+     * operations don't affect the underlying KMS key.
+     * </p>
+     * <p>
+     * You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is
+     * associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required.
+     * You can't create an alias without a KMS key.
+     * </p>
+     * <p>
+     * The alias must be unique in the account and Region, but you can have aliases with the same name in different
+     * Regions. For detailed information about aliases, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">Using aliases</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return a response. To get the alias that you created, use the <a>ListAliases</a>
+     * operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createAliasRequest
+     * @return A Java Future containing the result of the CreateAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>AlreadyExistsException The request was rejected because it attempted to create a resource that
+     *         already exists.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidAliasNameException The request was rejected because the specified alias name is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateAliasResponse> createAlias(CreateAliasRequest createAliasRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a friendly name for a KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * You can use an alias to identify a KMS key in the KMS console, in the <a>DescribeKey</a> operation and in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>, such as <a>Encrypt</a> and <a>GenerateDataKey</a>. You can also change the KMS key that's
+     * associated with the alias (<a>UpdateAlias</a>) or delete the alias (<a>DeleteAlias</a>) at any time. These
+     * operations don't affect the underlying KMS key.
+     * </p>
+     * <p>
+     * You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is
+     * associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required.
+     * You can't create an alias without a KMS key.
+     * </p>
+     * <p>
+     * The alias must be unique in the account and Region, but you can have aliases with the same name in different
+     * Regions. For detailed information about aliases, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">Using aliases</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return a response. To get the alias that you created, use the <a>ListAliases</a>
+     * operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateAliasRequest.Builder} avoiding the need to
+     * create one manually via {@link CreateAliasRequest#builder()}
+     * </p>
+     *
+     * @param createAliasRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateAliasRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the CreateAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>AlreadyExistsException The request was rejected because it attempted to create a resource that
+     *         already exists.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidAliasNameException The request was rejected because the specified alias name is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateAliasResponse> createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) {
+        return createAlias(CreateAliasRequest.builder().applyMutation(createAliasRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a> backed by a key store that you own and manage. When you use a KMS key in a custom key store for a
+     * cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS
+     * supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM
+     * cluster</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external
+     * key stores</a> backed by an external key store proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * Before you create the custom key store, the required elements must be in place and operational. We recommend that
+     * you use the test tools that KMS provides to verify the configuration your external key store proxy. For details
+     * about the required elements and verification tests, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+     * prerequisites (for CloudHSM key stores)</a> or <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">Assemble
+     * the prerequisites (for external key stores)</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To create a custom key store, use the following parameters.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * To create an CloudHSM key store, specify the <code>CustomKeyStoreName</code>, <code>CloudHsmClusterId</code>,
+     * <code>KeyStorePassword</code>, and <code>TrustAnchorCertificate</code>. The <code>CustomKeyStoreType</code>
+     * parameter is optional for CloudHSM key stores. If you include it, set it to the default value,
+     * <code>AWS_CLOUDHSM</code>. For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To create an external key store, specify the <code>CustomKeyStoreName</code> and a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>. Also, specify values for
+     * <code>XksProxyConnectivity</code>, <code>XksProxyAuthenticationCredential</code>,
+     * <code>XksProxyUriEndpoint</code>, and <code>XksProxyUriPath</code>. If your <code>XksProxyConnectivity</code>
+     * value is <code>VPC_ENDPOINT_SERVICE</code>, specify the <code>XksProxyVpcEndpointServiceName</code> parameter.
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for creating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot use a proxy configuration with the <code>CreateCustomKeyStore</code> operation.
+     * However, you can use the values in the file to help you determine the correct values for the
+     * <code>CreateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your
+     * new custom key store, you need to use the <a>ConnectCustomKeyStore</a> operation to connect a new CloudHSM key
+     * store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your
+     * external key manager. Even if you are not going to use your custom key store immediately, you might want to
+     * connect it to verify that all settings are correct and then disconnect it until you are ready to use it.
+     * </p>
+     * <p>
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateCustomKeyStore</a> (IAM policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createCustomKeyStoreRequest
+     * @return A Java Future containing the result of the CreateCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CloudHsmClusterInUseException The request was rejected because the specified CloudHSM cluster is
+     *         already associated with an CloudHSM key store in the account, or it shares a backup history with an
+     *         CloudHSM key store in the account. Each CloudHSM key store in the account must be associated with a
+     *         different CloudHSM cluster.</p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.</li>
+     *         <li>CustomKeyStoreNameInUseException The request was rejected because the specified custom key store name
+     *         is already assigned to another custom key store in the account. Try again with a custom key store name
+     *         that is unique in the account.</li>
+     *         <li>CloudHsmClusterNotFoundException The request was rejected because KMS cannot find the CloudHSM
+     *         cluster with the specified cluster ID. Retry the request with a different cluster ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>IncorrectTrustAnchorException The request was rejected because the trust anchor certificate in the
+     *         request to create an CloudHSM key store is not the trust anchor certificate for the specified CloudHSM
+     *         cluster.</p>
+     *         <p>
+     *         When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the
+     *         <code>customerCA.crt</code> file.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>XksProxyUriInUseException The request was rejected because the concatenation of the
+     *         <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. Each external key store in a Region must use a
+     *         unique external key store proxy API address.</li>
+     *         <li>XksProxyUriEndpointInUseException The request was rejected because the
+     *         <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. To identify the cause, see the error message that accompanies the exception.</li>
+     *         <li>XksProxyUriUnreachableException KMS was unable to reach the specified <code>XksProxyUriPath</code>.
+     *         The path must be reachable before you create the external key store or update its settings.</p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</li>
+     *         <li>XksProxyIncorrectAuthenticationCredentialException The request was rejected because the proxy
+     *         credentials failed to authenticate to the specified external key store proxy. The specified external key
+     *         store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in
+     *         the credentials or in the identification of the external key store proxy.</li>
+     *         <li>XksProxyVpcEndpointServiceInUseException The request was rejected because the specified Amazon VPC
+     *         endpoint service is already associated with another external key store in this Amazon Web Services
+     *         Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</li>
+     *         <li>XksProxyVpcEndpointServiceNotFoundException The request was rejected because KMS could not find the
+     *         specified VPC endpoint service. Use <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service
+     *         name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC
+     *         endpoint service includes the KMS service principal for the Region, such as
+     *         <code>cks.kms.us-east-1.amazonaws.com</code>.</li>
+     *         <li>XksProxyVpcEndpointServiceInvalidConfigurationException The request was rejected because the Amazon
+     *         VPC endpoint service configuration does not fulfill the requirements for an external key store. To
+     *         identify the cause, see the error message that accompanies the exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</li>
+     *         <li>XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.</li>
+     *         <li>XksProxyInvalidConfigurationException The request was rejected because the external key store proxy
+     *         is not configured correctly. To identify the cause, see the error message that accompanies the exception.
+     *         </li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateCustomKeyStoreResponse> createCustomKeyStore(
+            CreateCustomKeyStoreRequest createCustomKeyStoreRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a> backed by a key store that you own and manage. When you use a KMS key in a custom key store for a
+     * cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS
+     * supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM
+     * cluster</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external
+     * key stores</a> backed by an external key store proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * Before you create the custom key store, the required elements must be in place and operational. We recommend that
+     * you use the test tools that KMS provides to verify the configuration your external key store proxy. For details
+     * about the required elements and verification tests, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+     * prerequisites (for CloudHSM key stores)</a> or <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">Assemble
+     * the prerequisites (for external key stores)</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To create a custom key store, use the following parameters.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * To create an CloudHSM key store, specify the <code>CustomKeyStoreName</code>, <code>CloudHsmClusterId</code>,
+     * <code>KeyStorePassword</code>, and <code>TrustAnchorCertificate</code>. The <code>CustomKeyStoreType</code>
+     * parameter is optional for CloudHSM key stores. If you include it, set it to the default value,
+     * <code>AWS_CLOUDHSM</code>. For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To create an external key store, specify the <code>CustomKeyStoreName</code> and a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>. Also, specify values for
+     * <code>XksProxyConnectivity</code>, <code>XksProxyAuthenticationCredential</code>,
+     * <code>XksProxyUriEndpoint</code>, and <code>XksProxyUriPath</code>. If your <code>XksProxyConnectivity</code>
+     * value is <code>VPC_ENDPOINT_SERVICE</code>, specify the <code>XksProxyVpcEndpointServiceName</code> parameter.
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for creating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot use a proxy configuration with the <code>CreateCustomKeyStore</code> operation.
+     * However, you can use the values in the file to help you determine the correct values for the
+     * <code>CreateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your
+     * new custom key store, you need to use the <a>ConnectCustomKeyStore</a> operation to connect a new CloudHSM key
+     * store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your
+     * external key manager. Even if you are not going to use your custom key store immediately, you might want to
+     * connect it to verify that all settings are correct and then disconnect it until you are ready to use it.
+     * </p>
+     * <p>
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateCustomKeyStore</a> (IAM policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link CreateCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param createCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the CreateCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CloudHsmClusterInUseException The request was rejected because the specified CloudHSM cluster is
+     *         already associated with an CloudHSM key store in the account, or it shares a backup history with an
+     *         CloudHSM key store in the account. Each CloudHSM key store in the account must be associated with a
+     *         different CloudHSM cluster.</p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.</li>
+     *         <li>CustomKeyStoreNameInUseException The request was rejected because the specified custom key store name
+     *         is already assigned to another custom key store in the account. Try again with a custom key store name
+     *         that is unique in the account.</li>
+     *         <li>CloudHsmClusterNotFoundException The request was rejected because KMS cannot find the CloudHSM
+     *         cluster with the specified cluster ID. Retry the request with a different cluster ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>IncorrectTrustAnchorException The request was rejected because the trust anchor certificate in the
+     *         request to create an CloudHSM key store is not the trust anchor certificate for the specified CloudHSM
+     *         cluster.</p>
+     *         <p>
+     *         When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the
+     *         <code>customerCA.crt</code> file.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>XksProxyUriInUseException The request was rejected because the concatenation of the
+     *         <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. Each external key store in a Region must use a
+     *         unique external key store proxy API address.</li>
+     *         <li>XksProxyUriEndpointInUseException The request was rejected because the
+     *         <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. To identify the cause, see the error message that accompanies the exception.</li>
+     *         <li>XksProxyUriUnreachableException KMS was unable to reach the specified <code>XksProxyUriPath</code>.
+     *         The path must be reachable before you create the external key store or update its settings.</p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</li>
+     *         <li>XksProxyIncorrectAuthenticationCredentialException The request was rejected because the proxy
+     *         credentials failed to authenticate to the specified external key store proxy. The specified external key
+     *         store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in
+     *         the credentials or in the identification of the external key store proxy.</li>
+     *         <li>XksProxyVpcEndpointServiceInUseException The request was rejected because the specified Amazon VPC
+     *         endpoint service is already associated with another external key store in this Amazon Web Services
+     *         Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</li>
+     *         <li>XksProxyVpcEndpointServiceNotFoundException The request was rejected because KMS could not find the
+     *         specified VPC endpoint service. Use <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service
+     *         name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC
+     *         endpoint service includes the KMS service principal for the Region, such as
+     *         <code>cks.kms.us-east-1.amazonaws.com</code>.</li>
+     *         <li>XksProxyVpcEndpointServiceInvalidConfigurationException The request was rejected because the Amazon
+     *         VPC endpoint service configuration does not fulfill the requirements for an external key store. To
+     *         identify the cause, see the error message that accompanies the exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</li>
+     *         <li>XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.</li>
+     *         <li>XksProxyInvalidConfigurationException The request was rejected because the external key store proxy
+     *         is not configured correctly. To identify the cause, see the error message that accompanies the exception.
+     *         </li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateCustomKeyStoreResponse> createCustomKeyStore(
+            Consumer<CreateCustomKeyStoreRequest.Builder> createCustomKeyStoreRequest) {
+        return createCustomKeyStore(CreateCustomKeyStoreRequest.builder().applyMutation(createCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Adds a grant to a KMS key.
+     * </p>
+     * <p>
+     * A <i>grant</i> is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic
+     * operations. It also can allow them to view a KMS key (<a>DescribeKey</a>) and create and manage grants. When
+     * authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often
+     * used for temporary permissions because you can create one, use its permissions, and delete it without changing
+     * your key policies or IAM policies.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * The <code>CreateGrant</code> operation returns a <code>GrantToken</code> and a <code>GrantId</code>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. Once the grant has
+     * achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the
+     * grant.
+     * </p>
+     * <p>
+     * However, to use the permissions in the grant immediately, use the <code>GrantToken</code> that
+     * <code>CreateGrant</code> returns. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>CreateGrant</code> operation also returns a <code>GrantId</code>. You can use the <code>GrantId</code>
+     * and a key identifier to identify the grant in the <a>RetireGrant</a> and <a>RevokeGrant</a> operations. To find
+     * the grant ID, use the <a>ListGrants</a> or <a>ListRetirableGrants</a> operations.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateGrant</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createGrantRequest
+     * @return A Java Future containing the result of the CreateGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateGrantResponse> createGrant(CreateGrantRequest createGrantRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Adds a grant to a KMS key.
+     * </p>
+     * <p>
+     * A <i>grant</i> is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic
+     * operations. It also can allow them to view a KMS key (<a>DescribeKey</a>) and create and manage grants. When
+     * authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often
+     * used for temporary permissions because you can create one, use its permissions, and delete it without changing
+     * your key policies or IAM policies.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * The <code>CreateGrant</code> operation returns a <code>GrantToken</code> and a <code>GrantId</code>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. Once the grant has
+     * achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the
+     * grant.
+     * </p>
+     * <p>
+     * However, to use the permissions in the grant immediately, use the <code>GrantToken</code> that
+     * <code>CreateGrant</code> returns. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>CreateGrant</code> operation also returns a <code>GrantId</code>. You can use the <code>GrantId</code>
+     * and a key identifier to identify the grant in the <a>RetireGrant</a> and <a>RevokeGrant</a> operations. To find
+     * the grant ID, use the <a>ListGrants</a> or <a>ListRetirableGrants</a> operations.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateGrant</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateGrantRequest.Builder} avoiding the need to
+     * create one manually via {@link CreateGrantRequest#builder()}
+     * </p>
+     *
+     * @param createGrantRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateGrantRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the CreateGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateGrantResponse> createGrant(Consumer<CreateGrantRequest.Builder> createGrantRequest) {
+        return createGrant(CreateGrantRequest.builder().applyMutation(createGrantRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createKeyRequest
+     * @return A Java Future containing the result of the CreateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksKeyInvalidConfigurationException The request was rejected because the external key specified by
+     *         the <code>XksKeyId</code> parameter did not meet the configuration requirements for an external key
+     *         store.</p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     *         </li>
+     *         <li>XksKeyAlreadyInUseException The request was rejected because the (<code>XksKeyId</code>) is already
+     *         associated with another KMS key in this external key store. Each KMS key in an external key store must be
+     *         associated with a different external key.</li>
+     *         <li>XksKeyNotFoundException The request was rejected because the external key store proxy could not find
+     *         the external key. This exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't
+     *         identify a key in the external key manager associated with the external key proxy.</p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateKeyResponse> createKey(CreateKeyRequest createKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link CreateKeyRequest#builder()}
+     * </p>
+     *
+     * @param createKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the CreateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksKeyInvalidConfigurationException The request was rejected because the external key specified by
+     *         the <code>XksKeyId</code> parameter did not meet the configuration requirements for an external key
+     *         store.</p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     *         </li>
+     *         <li>XksKeyAlreadyInUseException The request was rejected because the (<code>XksKeyId</code>) is already
+     *         associated with another KMS key in this external key store. Each KMS key in an external key store must be
+     *         associated with a different external key.</li>
+     *         <li>XksKeyNotFoundException The request was rejected because the external key store proxy could not find
+     *         the external key. This exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't
+     *         identify a key in the external key manager associated with the external key proxy.</p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateKeyResponse> createKey(Consumer<CreateKeyRequest.Builder> createKeyRequest) {
+        return createKey(CreateKeyRequest.builder().applyMutation(createKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return A Java Future containing the result of the CreateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksKeyInvalidConfigurationException The request was rejected because the external key specified by
+     *         the <code>XksKeyId</code> parameter did not meet the configuration requirements for an external key
+     *         store.</p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     *         </li>
+     *         <li>XksKeyAlreadyInUseException The request was rejected because the (<code>XksKeyId</code>) is already
+     *         associated with another KMS key in this external key store. Each KMS key in an external key store must be
+     *         associated with a different external key.</li>
+     *         <li>XksKeyNotFoundException The request was rejected because the external key store proxy could not find
+     *         the external key. This exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't
+     *         identify a key in the external key manager associated with the external key proxy.</p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<CreateKeyResponse> createKey() {
+        return createKey(CreateKeyRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an
+     * asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
+     * algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <code>Decrypt</code> operation also decrypts ciphertext that was encrypted outside of KMS by the public key
+     * in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such
+     * as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services
+     * Encryption SDK</a> or <a
+     * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * If the ciphertext was encrypted under a symmetric encryption KMS key, the <code>KeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as
+     * a best practice. When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key
+     * you specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code> operation fails.
+     * This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * <p>
+     * Whenever possible, use key policies to give users permission to call the <code>Decrypt</code> operation on a
+     * particular KMS key, instead of using &amp;IAM; policies. Otherwise, you might create an &amp;IAM; policy that
+     * gives the user <code>Decrypt</code> permission on all KMS keys. This user could decrypt ciphertext that was
+     * encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must
+     * use an IAM policy for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular
+     * trusted accounts. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best
+     * practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>Decrypt</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>Decrypt</code> for a
+     * Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data
+     * encrypted with the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. If you use the <code>KeyId</code> parameter to identify a KMS key in a different
+     * Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReEncrypt</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param decryptRequest
+     * @return A Java Future containing the result of the Decrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>IncorrectKeyException The request was rejected because the specified KMS key cannot decrypt the data.
+     *         The <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a>
+     *         request must identify the same KMS key that was used to encrypt the ciphertext.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Decrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DecryptResponse> decrypt(DecryptRequest decryptRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an
+     * asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
+     * algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <code>Decrypt</code> operation also decrypts ciphertext that was encrypted outside of KMS by the public key
+     * in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such
+     * as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services
+     * Encryption SDK</a> or <a
+     * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * If the ciphertext was encrypted under a symmetric encryption KMS key, the <code>KeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as
+     * a best practice. When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key
+     * you specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code> operation fails.
+     * This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * <p>
+     * Whenever possible, use key policies to give users permission to call the <code>Decrypt</code> operation on a
+     * particular KMS key, instead of using &amp;IAM; policies. Otherwise, you might create an &amp;IAM; policy that
+     * gives the user <code>Decrypt</code> permission on all KMS keys. This user could decrypt ciphertext that was
+     * encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must
+     * use an IAM policy for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular
+     * trusted accounts. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best
+     * practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>Decrypt</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>Decrypt</code> for a
+     * Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data
+     * encrypted with the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. If you use the <code>KeyId</code> parameter to identify a KMS key in a different
+     * Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReEncrypt</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DecryptRequest.Builder} avoiding the need to create
+     * one manually via {@link DecryptRequest#builder()}
+     * </p>
+     *
+     * @param decryptRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DecryptRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the Decrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>IncorrectKeyException The request was rejected because the specified KMS key cannot decrypt the data.
+     *         The <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a>
+     *         request must identify the same KMS key that was used to encrypt the ciphertext.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Decrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DecryptResponse> decrypt(Consumer<DecryptRequest.Builder> decryptRequest) {
+        return decrypt(DecryptRequest.builder().applyMutation(decryptRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes the specified alias.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without
+     * affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get
+     * the aliases of all KMS keys, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the
+     * current alias and <a>CreateAlias</a> to create a new alias. To associate an existing alias with a different KMS
+     * key, call <a>UpdateAlias</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteAliasRequest
+     * @return A Java Future containing the result of the DeleteAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DeleteAliasResponse> deleteAlias(DeleteAliasRequest deleteAliasRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes the specified alias.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without
+     * affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get
+     * the aliases of all KMS keys, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the
+     * current alias and <a>CreateAlias</a> to create a new alias. To associate an existing alias with a different KMS
+     * key, call <a>UpdateAlias</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DeleteAliasRequest.Builder} avoiding the need to
+     * create one manually via {@link DeleteAliasRequest#builder()}
+     * </p>
+     *
+     * @param deleteAliasRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DeleteAliasRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the DeleteAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DeleteAliasResponse> deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) {
+        return deleteAlias(DeleteAliasRequest.builder().applyMutation(deleteAliasRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a>. This operation does not affect any backing elements of the custom key store. It does not delete
+     * the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster.
+     * For an external key store, it does not affect the external key store proxy, external key manager, or any external
+     * keys.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The custom key store that you delete cannot contain any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before deleting
+     * the key store, verify that you will never need to use any of the KMS keys in the key store for any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the KMS keys from the key store. After the
+     * required waiting period expires and all KMS keys are deleted from the custom key store, use
+     * <a>DisconnectCustomKeyStore</a> to disconnect the key store from KMS. Then, you can delete the custom key store.
+     * </p>
+     * <p>
+     * For keys in an CloudHSM key store, the <code>ScheduleKeyDeletion</code> operation makes a best effort to delete
+     * the key material from the associated cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. KMS never creates, manages, or deletes
+     * cryptographic keys in the external key manager associated with an external key store. You must manage them using
+     * your external key manager tools.
+     * </p>
+     * <p>
+     * Instead of deleting the custom key store, consider using the <a>DisconnectCustomKeyStore</a> operation to
+     * disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot
+     * create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a
+     * disconnected custom key store at any time.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteCustomKeyStoreRequest
+     * @return A Java Future containing the result of the DeleteCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreHasCmKsException The request was rejected because the custom key store contains KMS
+     *         keys. After verifying that you do not need to use the KMS keys, use the <a>ScheduleKeyDeletion</a>
+     *         operation to delete the KMS keys. After they are deleted, you can delete the custom key store.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DeleteCustomKeyStoreResponse> deleteCustomKeyStore(
+            DeleteCustomKeyStoreRequest deleteCustomKeyStoreRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a>. This operation does not affect any backing elements of the custom key store. It does not delete
+     * the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster.
+     * For an external key store, it does not affect the external key store proxy, external key manager, or any external
+     * keys.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The custom key store that you delete cannot contain any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before deleting
+     * the key store, verify that you will never need to use any of the KMS keys in the key store for any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the KMS keys from the key store. After the
+     * required waiting period expires and all KMS keys are deleted from the custom key store, use
+     * <a>DisconnectCustomKeyStore</a> to disconnect the key store from KMS. Then, you can delete the custom key store.
+     * </p>
+     * <p>
+     * For keys in an CloudHSM key store, the <code>ScheduleKeyDeletion</code> operation makes a best effort to delete
+     * the key material from the associated cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. KMS never creates, manages, or deletes
+     * cryptographic keys in the external key manager associated with an external key store. You must manage them using
+     * your external key manager tools.
+     * </p>
+     * <p>
+     * Instead of deleting the custom key store, consider using the <a>DisconnectCustomKeyStore</a> operation to
+     * disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot
+     * create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a
+     * disconnected custom key store at any time.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DeleteCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link DeleteCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param deleteCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the DeleteCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreHasCmKsException The request was rejected because the custom key store contains KMS
+     *         keys. After verifying that you do not need to use the KMS keys, use the <a>ScheduleKeyDeletion</a>
+     *         operation to delete the KMS keys. After they are deleted, you can delete the custom key store.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DeleteCustomKeyStoreResponse> deleteCustomKeyStore(
+            Consumer<DeleteCustomKeyStoreRequest.Builder> deleteCustomKeyStoreRequest) {
+        return deleteCustomKeyStore(DeleteCustomKeyStoreRequest.builder().applyMutation(deleteCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily
+     * unusable. To restore the usability of the KMS key, reimport the same key material. For more information about
+     * importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does not change the KMS
+     * key's state. Otherwise, it changes the KMS key's state to <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteImportedKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteImportedKeyMaterialRequest
+     * @return A Java Future containing the result of the DeleteImportedKeyMaterial operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteImportedKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DeleteImportedKeyMaterialResponse> deleteImportedKeyMaterial(
+            DeleteImportedKeyMaterialRequest deleteImportedKeyMaterialRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily
+     * unusable. To restore the usability of the KMS key, reimport the same key material. For more information about
+     * importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does not change the KMS
+     * key's state. Otherwise, it changes the KMS key's state to <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteImportedKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DeleteImportedKeyMaterialRequest.Builder} avoiding
+     * the need to create one manually via {@link DeleteImportedKeyMaterialRequest#builder()}
+     * </p>
+     *
+     * @param deleteImportedKeyMaterialRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest.Builder} to create a
+     *        request.
+     * @return A Java Future containing the result of the DeleteImportedKeyMaterial operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DeleteImportedKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DeleteImportedKeyMaterialResponse> deleteImportedKeyMaterial(
+            Consumer<DeleteImportedKeyMaterialRequest.Builder> deleteImportedKeyMaterialRequest) {
+        return deleteImportedKeyMaterial(DeleteImportedKeyMaterialRequest.builder()
+                .applyMutation(deleteImportedKeyMaterialRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     * @return A Java Future containing the result of the DescribeCustomKeyStores operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DescribeCustomKeyStoresResponse> describeCustomKeyStores(
+            DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DescribeCustomKeyStoresRequest.Builder} avoiding
+     * the need to create one manually via {@link DescribeCustomKeyStoresRequest#builder()}
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest.Builder} to create a
+     *        request.
+     * @return A Java Future containing the result of the DescribeCustomKeyStores operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DescribeCustomKeyStoresResponse> describeCustomKeyStores(
+            Consumer<DescribeCustomKeyStoresRequest.Builder> describeCustomKeyStoresRequest) {
+        return describeCustomKeyStores(DescribeCustomKeyStoresRequest.builder().applyMutation(describeCustomKeyStoresRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return A Java Future containing the result of the DescribeCustomKeyStores operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DescribeCustomKeyStoresResponse> describeCustomKeyStores() {
+        return describeCustomKeyStores(DescribeCustomKeyStoresRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation.</b>
+     * </p>
+     *
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresPublisher describeCustomKeyStoresPaginator() {
+        return describeCustomKeyStoresPaginator(DescribeCustomKeyStoresRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation.</b>
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresPublisher describeCustomKeyStoresPaginator(
+            DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest) {
+        return new DescribeCustomKeyStoresPublisher(this, describeCustomKeyStoresRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DescribeCustomKeyStoresRequest.Builder} avoiding
+     * the need to create one manually via {@link DescribeCustomKeyStoresRequest#builder()}
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest.Builder} to create a
+     *        request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresPublisher describeCustomKeyStoresPaginator(
+            Consumer<DescribeCustomKeyStoresRequest.Builder> describeCustomKeyStoresRequest) {
+        return describeCustomKeyStoresPaginator(DescribeCustomKeyStoresRequest.builder()
+                .applyMutation(describeCustomKeyStoresRequest).build());
+    }
+
+    /**
+     * <p>
+     * Provides detailed information about a KMS key. You can run <code>DescribeKey</code> on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     * Services managed key</a>.
+     * </p>
+     * <p>
+     * This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state,
+     * and the origin and expiration date (if any) of the key material. It includes fields, like <code>KeySpec</code>,
+     * that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or
+     * generating and verifying MACs) and the algorithms that the KMS key supports.
+     * </p>
+     * <p>
+     * For <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * keys</a>, <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it
+     * includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>,
+     * it includes the custom key store ID and the ID of the external key.
+     * </p>
+     * <p>
+     * <code>DescribeKey</code> does not return the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether automatic key rotation is enabled on the KMS key. To get this information, use
+     * <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being automatically rotated. For
+     * details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How
+     * Automatic Key Rotation Works</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * In general, <code>DescribeKey</code> is a non-mutating operation. It returns data about KMS keys, but doesn't
+     * change them. However, Amazon Web Services services use <code>DescribeKey</code> to create <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a> from a <i>predefined Amazon Web Services alias</i> with no key ID.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeKeyRequest
+     * @return A Java Future containing the result of the DescribeKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DescribeKeyResponse> describeKey(DescribeKeyRequest describeKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Provides detailed information about a KMS key. You can run <code>DescribeKey</code> on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     * Services managed key</a>.
+     * </p>
+     * <p>
+     * This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state,
+     * and the origin and expiration date (if any) of the key material. It includes fields, like <code>KeySpec</code>,
+     * that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or
+     * generating and verifying MACs) and the algorithms that the KMS key supports.
+     * </p>
+     * <p>
+     * For <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * keys</a>, <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it
+     * includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>,
+     * it includes the custom key store ID and the ID of the external key.
+     * </p>
+     * <p>
+     * <code>DescribeKey</code> does not return the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether automatic key rotation is enabled on the KMS key. To get this information, use
+     * <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being automatically rotated. For
+     * details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How
+     * Automatic Key Rotation Works</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * In general, <code>DescribeKey</code> is a non-mutating operation. It returns data about KMS keys, but doesn't
+     * change them. However, Amazon Web Services services use <code>DescribeKey</code> to create <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a> from a <i>predefined Amazon Web Services alias</i> with no key ID.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DescribeKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link DescribeKeyRequest#builder()}
+     * </p>
+     *
+     * @param describeKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DescribeKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the DescribeKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DescribeKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DescribeKeyResponse> describeKey(Consumer<DescribeKeyRequest.Builder> describeKeyRequest) {
+        return describeKey(DescribeKeyRequest.builder().applyMutation(describeKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+     * <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>EnableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRequest
+     * @return A Java Future containing the result of the DisableKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DisableKeyResponse> disableKey(DisableKeyRequest disableKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+     * <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>EnableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DisableKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link DisableKeyRequest#builder()}
+     * </p>
+     *
+     * @param disableKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DisableKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the DisableKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DisableKeyResponse> disableKey(Consumer<DisableKeyRequest.Builder> disableKeyRequest) {
+        return disableKey(DisableKeyRequest.builder().applyMutation(disableKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation
+     * of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+     * with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation of the key material in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material for every year. Rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRotationRequest
+     * @return A Java Future containing the result of the DisableKeyRotation operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DisableKeyRotationResponse> disableKeyRotation(DisableKeyRotationRequest disableKeyRotationRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation
+     * of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+     * with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation of the key material in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material for every year. Rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DisableKeyRotationRequest.Builder} avoiding the
+     * need to create one manually via {@link DisableKeyRotationRequest#builder()}
+     * </p>
+     *
+     * @param disableKeyRotationRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the DisableKeyRotation operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<DisableKeyRotationResponse> disableKeyRotation(
+            Consumer<DisableKeyRotationRequest.Builder> disableKeyRotationRequest) {
+        return disableKeyRotation(DisableKeyRotationRequest.builder().applyMutation(disableKeyRotationRequest).build());
+    }
+
+    /**
+     * <p>
+     * Disconnects the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster
+     * or disconnects an external key store from the external key store proxy that communicates with your external key
+     * manager.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot
+     * create or use its KMS keys. You can reconnect the custom key store at any time.
+     * </p>
+     * <note>
+     * <p>
+     * While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use
+     * existing KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> will fail. This action can prevent users from storing and accessing sensitive data.
+     * </p>
+     * </note>
+     * <p>
+     * When you disconnect a custom key store, its <code>ConnectionState</code> changes to <code>Disconnected</code>. To
+     * find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a
+     * custom key store, use the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisconnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disconnectCustomKeyStoreRequest
+     * @return A Java Future containing the result of the DisconnectCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisconnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DisconnectCustomKeyStoreResponse> disconnectCustomKeyStore(
+            DisconnectCustomKeyStoreRequest disconnectCustomKeyStoreRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Disconnects the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster
+     * or disconnects an external key store from the external key store proxy that communicates with your external key
+     * manager.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot
+     * create or use its KMS keys. You can reconnect the custom key store at any time.
+     * </p>
+     * <note>
+     * <p>
+     * While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use
+     * existing KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> will fail. This action can prevent users from storing and accessing sensitive data.
+     * </p>
+     * </note>
+     * <p>
+     * When you disconnect a custom key store, its <code>ConnectionState</code> changes to <code>Disconnected</code>. To
+     * find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a
+     * custom key store, use the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisconnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DisconnectCustomKeyStoreRequest.Builder} avoiding
+     * the need to create one manually via {@link DisconnectCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param disconnectCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest.Builder} to create a
+     *        request.
+     * @return A Java Future containing the result of the DisconnectCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.DisconnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<DisconnectCustomKeyStoreResponse> disconnectCustomKeyStore(
+            Consumer<DisconnectCustomKeyStoreRequest.Builder> disconnectCustomKeyStoreRequest) {
+        return disconnectCustomKeyStore(DisconnectCustomKeyStoreRequest.builder().applyMutation(disconnectCustomKeyStoreRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>DisableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRequest
+     * @return A Java Future containing the result of the EnableKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.EnableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<EnableKeyResponse> enableKey(EnableKeyRequest enableKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>DisableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link EnableKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link EnableKeyRequest#builder()}
+     * </p>
+     *
+     * @param enableKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.EnableKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the EnableKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.EnableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<EnableKeyResponse> enableKey(Consumer<EnableKeyRequest.Builder> enableKeyRequest) {
+        return enableKey(EnableKeyRequest.builder().applyMutation(enableKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation of a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * key</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the
+     * <a>DisableKeyRotation</a> operation.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You cannot enable or disable automatic rotation <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a>. KMS always rotates the key material of Amazon Web Services managed keys every year.
+     * Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
+     * Web Services owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years
+     * (approximately 1,095 days) to every year (approximately 365 days).
+     * </p>
+     * <p>
+     * New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately
+     * every year thereafter.
+     * </p>
+     * <p>
+     * Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation,
+     * and every year thereafter.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:EnableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRotationRequest
+     * @return A Java Future containing the result of the EnableKeyRotation operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.EnableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<EnableKeyRotationResponse> enableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation of a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * key</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the
+     * <a>DisableKeyRotation</a> operation.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You cannot enable or disable automatic rotation <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a>. KMS always rotates the key material of Amazon Web Services managed keys every year.
+     * Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
+     * Web Services owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years
+     * (approximately 1,095 days) to every year (approximately 365 days).
+     * </p>
+     * <p>
+     * New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately
+     * every year thereafter.
+     * </p>
+     * <p>
+     * Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation,
+     * and every year thereafter.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:EnableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link EnableKeyRotationRequest.Builder} avoiding the need
+     * to create one manually via {@link EnableKeyRotationRequest#builder()}
+     * </p>
+     *
+     * @param enableKeyRotationRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the EnableKeyRotation operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.EnableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<EnableKeyRotationResponse> enableKeyRotation(
+            Consumer<EnableKeyRotationRequest.Builder> enableKeyRotationRequest) {
+        return enableKeyRotation(EnableKeyRotationRequest.builder().applyMutation(enableKeyRotationRequest).build());
+    }
+
+    /**
+     * <p>
+     * Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a
+     * <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database
+     * password, or other sensitive information. You don't need to use the <code>Encrypt</code> operation to encrypt a
+     * data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a plaintext data key and an
+     * encrypted copy of that data key.
+     * </p>
+     * <p>
+     * If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your
+     * encryption operation. If you specify an <code>EncryptionContext</code> when encrypting data, you must specify the
+     * same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to
+     * decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be
+     * compatible with the KMS key spec.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important>
+     * <p>
+     * The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm
+     * that you choose.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption KMS keys
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>: 4096 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 214 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 190 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 342 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 318 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 470 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 446 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SM2PKE</code>: 1024 bytes (China Regions only)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param encryptRequest
+     * @return A Java Future containing the result of the Encrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Encrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<EncryptResponse> encrypt(EncryptRequest encryptRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a
+     * <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database
+     * password, or other sensitive information. You don't need to use the <code>Encrypt</code> operation to encrypt a
+     * data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a plaintext data key and an
+     * encrypted copy of that data key.
+     * </p>
+     * <p>
+     * If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your
+     * encryption operation. If you specify an <code>EncryptionContext</code> when encrypting data, you must specify the
+     * same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to
+     * decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be
+     * compatible with the KMS key spec.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important>
+     * <p>
+     * The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm
+     * that you choose.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption KMS keys
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>: 4096 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 214 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 190 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 342 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 318 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 470 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 446 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SM2PKE</code>: 1024 bytes (China Regions only)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link EncryptRequest.Builder} avoiding the need to create
+     * one manually via {@link EncryptRequest#builder()}
+     * </p>
+     *
+     * @param encryptRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.EncryptRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the Encrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Encrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<EncryptResponse> encrypt(Consumer<EncryptRequest.Builder> encryptRequest) {
+        return encrypt(EncryptRequest.builder().applyMutation(encryptRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data
+     * key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the
+     * plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to
+     * encrypt your data outside of KMS and store the encrypted data key with the encrypted data.
+     * </p>
+     * <p>
+     * To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You
+     * cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate a 128-bit SM4 data key (China Regions only), specify a <code>KeySpec</code> value of
+     * <code>AES_128</code> or a <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used
+     * in China Regions to encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an
+     * asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * operation. To get a cryptographically secure random byte string, use <a>GenerateRandom</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKey</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateDataKey</code>
+     * for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKey</code> returns a copy of the data key encrypted under
+     * the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of
+     * the data key encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>How to use your data key</b>
+     * </p>
+     * <p>
+     * We recommend that you use the following pattern to encrypt data locally in your application. You can write your
+     * own code or use a client-side encryption library, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>,
+     * the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption
+     * Client</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
+     * client-side encryption</a> to do these tasks for you.
+     * </p>
+     * <p>
+     * To encrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <code>GenerateDataKey</code> operation to get a data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key (in the <code>Plaintext</code> field of the response) to encrypt your data outside of
+     * KMS. Then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Store the encrypted data key (in the <code>CiphertextBlob</code> field of the response) with the encrypted data.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * To decrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The operation returns a plaintext copy of the
+     * data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyRequest
+     * @return A Java Future containing the result of the GenerateDataKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyResponse> generateDataKey(GenerateDataKeyRequest generateDataKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data
+     * key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the
+     * plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to
+     * encrypt your data outside of KMS and store the encrypted data key with the encrypted data.
+     * </p>
+     * <p>
+     * To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You
+     * cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate a 128-bit SM4 data key (China Regions only), specify a <code>KeySpec</code> value of
+     * <code>AES_128</code> or a <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used
+     * in China Regions to encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an
+     * asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * operation. To get a cryptographically secure random byte string, use <a>GenerateRandom</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKey</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateDataKey</code>
+     * for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKey</code> returns a copy of the data key encrypted under
+     * the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of
+     * the data key encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>How to use your data key</b>
+     * </p>
+     * <p>
+     * We recommend that you use the following pattern to encrypt data locally in your application. You can write your
+     * own code or use a client-side encryption library, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>,
+     * the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption
+     * Client</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
+     * client-side encryption</a> to do these tasks for you.
+     * </p>
+     * <p>
+     * To encrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <code>GenerateDataKey</code> operation to get a data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key (in the <code>Plaintext</code> field of the response) to encrypt your data outside of
+     * KMS. Then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Store the encrypted data key (in the <code>CiphertextBlob</code> field of the response) with the encrypted data.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * To decrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The operation returns a plaintext copy of the
+     * data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyRequest.Builder} avoiding the need
+     * to create one manually via {@link GenerateDataKeyRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GenerateDataKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyResponse> generateDataKey(
+            Consumer<GenerateDataKeyRequest.Builder> generateDataKeyRequest) {
+        return generateDataKey(GenerateDataKeyRequest.builder().applyMutation(generateDataKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key,
+     * a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key
+     * you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures
+     * outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is
+     * used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data or verify a signature
+     * outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a
+     * message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a
+     * private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an encrypted private key, but
+     * omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need
+     * to decrypt the data or sign a message, use the <a>Decrypt</a> operation to decrypt the encrypted private key in
+     * the data key pair.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The bytes in the keys are
+     * random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key
+     * is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a
+     * href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call
+     * <code>GenerateDataKeyPair</code> for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKeyPair</code> returns the public data key and a copy of
+     * the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the
+     * private data key (<code>PrivateKeyPlaintext</code>), the response includes a copy of the private data key
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPair</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairRequest
+     * @return A Java Future containing the result of the GenerateDataKeyPair operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyPair
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyPairResponse> generateDataKeyPair(
+            GenerateDataKeyPairRequest generateDataKeyPairRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key,
+     * a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key
+     * you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures
+     * outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is
+     * used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data or verify a signature
+     * outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a
+     * message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a
+     * private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an encrypted private key, but
+     * omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need
+     * to decrypt the data or sign a message, use the <a>Decrypt</a> operation to decrypt the encrypted private key in
+     * the data key pair.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The bytes in the keys are
+     * random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key
+     * is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a
+     * href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call
+     * <code>GenerateDataKeyPair</code> for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKeyPair</code> returns the public data key and a copy of
+     * the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the
+     * private data key (<code>PrivateKeyPlaintext</code>), the response includes a copy of the private data key
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPair</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyPairRequest.Builder} avoiding the
+     * need to create one manually via {@link GenerateDataKeyPairRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyPairRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GenerateDataKeyPair operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyPair
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyPairResponse> generateDataKeyPair(
+            Consumer<GenerateDataKeyPairRequest.Builder> generateDataKeyPairRequest) {
+        return generateDataKeyPair(GenerateDataKeyPairRequest.builder().applyMutation(generateDataKeyPairRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key
+     * and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike
+     * <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private key. The bytes in the keys are
+     * random; they are not related to the caller or to the KMS key that is used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns to encrypt data or
+     * verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to
+     * decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each request. The bytes in
+     * the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a
+     * DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairWithoutPlaintextRequest
+     * @return A Java Future containing the result of the GenerateDataKeyPairWithoutPlaintext operation returned by the
+     *         service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyPairWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPairWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyPairWithoutPlaintextResponse> generateDataKeyPairWithoutPlaintext(
+            GenerateDataKeyPairWithoutPlaintextRequest generateDataKeyPairWithoutPlaintextRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key
+     * and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike
+     * <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private key. The bytes in the keys are
+     * random; they are not related to the caller or to the KMS key that is used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns to encrypt data or
+     * verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to
+     * decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each request. The bytes in
+     * the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a
+     * DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyPairWithoutPlaintextRequest.Builder}
+     * avoiding the need to create one manually via {@link GenerateDataKeyPairWithoutPlaintextRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyPairWithoutPlaintextRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest.Builder} to
+     *        create a request.
+     * @return A Java Future containing the result of the GenerateDataKeyPairWithoutPlaintext operation returned by the
+     *         service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyPairWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPairWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyPairWithoutPlaintextResponse> generateDataKeyPairWithoutPlaintext(
+            Consumer<GenerateDataKeyPairWithoutPlaintextRequest.Builder> generateDataKeyPairWithoutPlaintextRequest) {
+        return generateDataKeyPairWithoutPlaintext(GenerateDataKeyPairWithoutPlaintextRequest.builder()
+                .applyMutation(generateDataKeyPairWithoutPlaintextRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted
+     * under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to
+     * the caller or to the KMS key.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that it
+     * does not return a plaintext copy of the data key.
+     * </p>
+     * <p>
+     * This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need
+     * to encrypt the data, you call the <a>Decrypt</a> operation on the encrypted copy of the key.
+     * </p>
+     * <p>
+     * It's also useful in distributed systems with different levels of trust. For example, you might store encrypted
+     * data in containers. One component of your system creates new containers and stores an encrypted data key with
+     * each container. Then, a different component puts the data into the containers. That component first decrypts the
+     * data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then
+     * destroys the plaintext data key. In this system, the component that creates the containers never sees the
+     * plaintext data key.
+     * </p>
+     * <p>
+     * To request an asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or
+     * <a>GenerateDataKeyPairWithoutPlaintext</a> operations.
+     * </p>
+     * <p>
+     * To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key.
+     * You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate an SM4 data key (China Regions only), specify a <code>KeySpec</code> value of <code>AES_128</code> or
+     * <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used in China Regions to
+     * encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * If the operation succeeds, you will find the encrypted copy of the data key in the <code>CiphertextBlob</code>
+     * field.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyWithoutPlaintextRequest
+     * @return A Java Future containing the result of the GenerateDataKeyWithoutPlaintext operation returned by the
+     *         service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyWithoutPlaintextResponse> generateDataKeyWithoutPlaintext(
+            GenerateDataKeyWithoutPlaintextRequest generateDataKeyWithoutPlaintextRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted
+     * under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to
+     * the caller or to the KMS key.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that it
+     * does not return a plaintext copy of the data key.
+     * </p>
+     * <p>
+     * This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need
+     * to encrypt the data, you call the <a>Decrypt</a> operation on the encrypted copy of the key.
+     * </p>
+     * <p>
+     * It's also useful in distributed systems with different levels of trust. For example, you might store encrypted
+     * data in containers. One component of your system creates new containers and stores an encrypted data key with
+     * each container. Then, a different component puts the data into the containers. That component first decrypts the
+     * data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then
+     * destroys the plaintext data key. In this system, the component that creates the containers never sees the
+     * plaintext data key.
+     * </p>
+     * <p>
+     * To request an asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or
+     * <a>GenerateDataKeyPairWithoutPlaintext</a> operations.
+     * </p>
+     * <p>
+     * To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key.
+     * You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate an SM4 data key (China Regions only), specify a <code>KeySpec</code> value of <code>AES_128</code> or
+     * <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used in China Regions to
+     * encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * If the operation succeeds, you will find the encrypted copy of the data key in the <code>CiphertextBlob</code>
+     * field.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyWithoutPlaintextRequest.Builder}
+     * avoiding the need to create one manually via {@link GenerateDataKeyWithoutPlaintextRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyWithoutPlaintextRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest.Builder} to create
+     *        a request.
+     * @return A Java Future containing the result of the GenerateDataKeyWithoutPlaintext operation returned by the
+     *         service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateDataKeyWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default CompletableFuture<GenerateDataKeyWithoutPlaintextResponse> generateDataKeyWithoutPlaintext(
+            Consumer<GenerateDataKeyWithoutPlaintextRequest.Builder> generateDataKeyWithoutPlaintextRequest) {
+        return generateDataKeyWithoutPlaintext(GenerateDataKeyWithoutPlaintextRequest.builder()
+                .applyMutation(generateDataKeyWithoutPlaintextRequest).build());
+    }
+
+    /**
+     * <p>
+     * Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm
+     * that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined
+     * in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * You can use value that GenerateMac returns in the <a>VerifyMac</a> operation to demonstrate that the original
+     * message has not changed. Also, because a secret key is used to create the hash, you can verify that the party
+     * that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based
+     * algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For
+     * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is
+     * effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long
+     * after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the
+     * token or message to help you detect when its time to refresh the HMAC.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateMac</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>VerifyMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateMacRequest
+     * @return A Java Future containing the result of the GenerateMac operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateMacResponse> generateMac(GenerateMacRequest generateMacRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm
+     * that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined
+     * in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * You can use value that GenerateMac returns in the <a>VerifyMac</a> operation to demonstrate that the original
+     * message has not changed. Also, because a secret key is used to create the hash, you can verify that the party
+     * that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based
+     * algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For
+     * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is
+     * effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long
+     * after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the
+     * token or message to help you detect when its time to refresh the HMAC.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateMac</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>VerifyMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateMacRequest.Builder} avoiding the need to
+     * create one manually via {@link GenerateMacRequest#builder()}
+     * </p>
+     *
+     * @param generateMacRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateMacRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GenerateMac operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateMacResponse> generateMac(Consumer<GenerateMacRequest.Builder> generateMacRequest) {
+        return generateMac(GenerateMacRequest.builder().applyMutation(generateMacRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateRandomRequest
+     * @return A Java Future containing the result of the GenerateRandom operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateRandomResponse> generateRandom(GenerateRandomRequest generateRandomRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateRandomRequest.Builder} avoiding the need to
+     * create one manually via {@link GenerateRandomRequest#builder()}
+     * </p>
+     *
+     * @param generateRandomRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateRandomRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GenerateRandom operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateRandomResponse> generateRandom(Consumer<GenerateRandomRequest.Builder> generateRandomRequest) {
+        return generateRandom(GenerateRandomRequest.builder().applyMutation(generateRandomRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return A Java Future containing the result of the GenerateRandom operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GenerateRandomResponse> generateRandom() {
+        return generateRandom(GenerateRandomRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * Gets a key policy attached to the specified KMS key.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyPolicyRequest
+     * @return A Java Future containing the result of the GetKeyPolicy operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GetKeyPolicyResponse> getKeyPolicy(GetKeyPolicyRequest getKeyPolicyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a key policy attached to the specified KMS key.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetKeyPolicyRequest.Builder} avoiding the need to
+     * create one manually via {@link GetKeyPolicyRequest#builder()}
+     * </p>
+     *
+     * @param getKeyPolicyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GetKeyPolicy operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GetKeyPolicyResponse> getKeyPolicy(Consumer<GetKeyPolicyRequest.Builder> getKeyPolicyRequest) {
+        return getKeyPolicy(GetKeyPolicyRequest.builder().applyMutation(getKeyPolicyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a Boolean value that indicates whether <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of the key
+     * material</a> is enabled for the specified KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key..
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation (<a>DisableKeyRotation</a>) of the key
+     * material in customer managed KMS keys. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS
+     * keys every year. The key rotation status for Amazon Web Services managed KMS keys is always <code>true</code>.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is
+     * disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key
+     * material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year
+     * thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS
+     * key resumes its prior rotation schedule.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Pending deletion: While a KMS key is pending deletion, its key rotation status is <code>false</code> and KMS does
+     * not rotate the key material. If you cancel the deletion, the original key rotation status returns to
+     * <code>true</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyRotationStatus</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyRotationStatusRequest
+     * @return A Java Future containing the result of the GetKeyRotationStatus operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetKeyRotationStatus
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GetKeyRotationStatusResponse> getKeyRotationStatus(
+            GetKeyRotationStatusRequest getKeyRotationStatusRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a Boolean value that indicates whether <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of the key
+     * material</a> is enabled for the specified KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key..
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation (<a>DisableKeyRotation</a>) of the key
+     * material in customer managed KMS keys. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS
+     * keys every year. The key rotation status for Amazon Web Services managed KMS keys is always <code>true</code>.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is
+     * disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key
+     * material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year
+     * thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS
+     * key resumes its prior rotation schedule.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Pending deletion: While a KMS key is pending deletion, its key rotation status is <code>false</code> and KMS does
+     * not rotate the key material. If you cancel the deletion, the original key rotation status returns to
+     * <code>true</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyRotationStatus</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetKeyRotationStatusRequest.Builder} avoiding the
+     * need to create one manually via {@link GetKeyRotationStatusRequest#builder()}
+     * </p>
+     *
+     * @param getKeyRotationStatusRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GetKeyRotationStatus operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetKeyRotationStatus
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GetKeyRotationStatusResponse> getKeyRotationStatus(
+            Consumer<GetKeyRotationStatusRequest.Builder> getKeyRotationStatusRequest) {
+        return getKeyRotationStatus(GetKeyRotationStatusRequest.builder().applyMutation(getKeyRotationStatusRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns the public key and an import token you need to import or reimport key material for a KMS key.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Before calling <code>GetParametersForImport</code>, use the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code> to create a KMS key with no key material. You can import key
+     * material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing
+     * KMS key. You can also import key material into a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a>
+     * of any supported type. However, you can't import key material into a KMS key in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * You can also use <code>GetParametersForImport</code> to get a public key and import token to <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the original key material</a> into a KMS key whose key material expired or was deleted.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> returns the items that you need to import your key material.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The public key (or "wrapping key") of an RSA key pair that KMS generates.
+     * </p>
+     * <p>
+     * You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The public key and its import token are permanently linked and must be used together. Each public key and import
+     * token set is valid for 24 hours. The expiration date and time appear in the <code>ParametersValidTo</code> field
+     * in the <code>GetParametersForImport</code> response. You cannot use an expired public key or import token in an
+     * <a>ImportKeyMaterial</a> request. If your key and token expire, send another <code>GetParametersForImport</code>
+     * request.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> requires the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID of the KMS key for which you are importing the key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The wrapping algorithm that you will use with the public key to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the
+     * same key material.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetParametersForImport</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getParametersForImportRequest
+     * @return A Java Future containing the result of the GetParametersForImport operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetParametersForImport
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<GetParametersForImportResponse> getParametersForImport(
+            GetParametersForImportRequest getParametersForImportRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns the public key and an import token you need to import or reimport key material for a KMS key.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Before calling <code>GetParametersForImport</code>, use the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code> to create a KMS key with no key material. You can import key
+     * material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing
+     * KMS key. You can also import key material into a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a>
+     * of any supported type. However, you can't import key material into a KMS key in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * You can also use <code>GetParametersForImport</code> to get a public key and import token to <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the original key material</a> into a KMS key whose key material expired or was deleted.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> returns the items that you need to import your key material.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The public key (or "wrapping key") of an RSA key pair that KMS generates.
+     * </p>
+     * <p>
+     * You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The public key and its import token are permanently linked and must be used together. Each public key and import
+     * token set is valid for 24 hours. The expiration date and time appear in the <code>ParametersValidTo</code> field
+     * in the <code>GetParametersForImport</code> response. You cannot use an expired public key or import token in an
+     * <a>ImportKeyMaterial</a> request. If your key and token expire, send another <code>GetParametersForImport</code>
+     * request.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> requires the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID of the KMS key for which you are importing the key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The wrapping algorithm that you will use with the public key to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the
+     * same key material.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetParametersForImport</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetParametersForImportRequest.Builder} avoiding the
+     * need to create one manually via {@link GetParametersForImportRequest#builder()}
+     * </p>
+     *
+     * @param getParametersForImportRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetParametersForImportRequest.Builder} to create a
+     *        request.
+     * @return A Java Future containing the result of the GetParametersForImport operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetParametersForImport
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default CompletableFuture<GetParametersForImportResponse> getParametersForImport(
+            Consumer<GetParametersForImportRequest.Builder> getParametersForImportRequest) {
+        return getParametersForImport(GetParametersForImportRequest.builder().applyMutation(getParametersForImportRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never
+     * leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission can download the public key of an
+     * asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures
+     * outside of KMS. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You do not need to download the public key. Instead, you can use the public key within KMS by calling the
+     * <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When
+     * you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part
+     * of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are
+     * not effective outside of KMS.
+     * </p>
+     * <p>
+     * To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns important information
+     * about the public key in the response, including:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec"
+     * >KeySpec</a>: The type of key material in the public key, such as <code>RSA_4096</code> or
+     * <code>ECC_NIST_P521</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage"
+     * >KeyUsage</a>: Whether the key is used for encryption or signing.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms"
+     * >EncryptionAlgorithms</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms"
+     * >SigningAlgorithms</a>: A list of the encryption algorithms or the signing algorithms for the key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this
+     * information to prevent the public key from being used improperly. For example, you can prevent a public signing
+     * key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is
+     * not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification
+     * operation.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetPublicKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>CreateKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getPublicKeyRequest
+     * @return A Java Future containing the result of the GetPublicKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetPublicKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetPublicKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GetPublicKeyResponse> getPublicKey(GetPublicKeyRequest getPublicKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never
+     * leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission can download the public key of an
+     * asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures
+     * outside of KMS. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You do not need to download the public key. Instead, you can use the public key within KMS by calling the
+     * <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When
+     * you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part
+     * of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are
+     * not effective outside of KMS.
+     * </p>
+     * <p>
+     * To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns important information
+     * about the public key in the response, including:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec"
+     * >KeySpec</a>: The type of key material in the public key, such as <code>RSA_4096</code> or
+     * <code>ECC_NIST_P521</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage"
+     * >KeyUsage</a>: Whether the key is used for encryption or signing.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms"
+     * >EncryptionAlgorithms</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms"
+     * >SigningAlgorithms</a>: A list of the encryption algorithms or the signing algorithms for the key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this
+     * information to prevent the public key from being used improperly. For example, you can prevent a public signing
+     * key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is
+     * not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification
+     * operation.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetPublicKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>CreateKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetPublicKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link GetPublicKeyRequest#builder()}
+     * </p>
+     *
+     * @param getPublicKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetPublicKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the GetPublicKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.GetPublicKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetPublicKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<GetPublicKeyResponse> getPublicKey(Consumer<GetPublicKeyRequest.Builder> getPublicKeyRequest) {
+        return getPublicKey(GetPublicKeyRequest.builder().applyMutation(getPublicKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Imports or reimports key material into an existing KMS key that was created without key material.
+     * <code>ImportKeyMaterial</code> also sets the expiration model and expiration date of the imported key material.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * After you successfully import key material into a KMS key, you can <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the same key material</a> into that KMS key, but you cannot import different key material. You might reimport key
+     * material to replace key material that expired or key material that you deleted. You might also reimport key
+     * material to change the expiration model or expiration date of the key material. Before reimporting key material,
+     * if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material.
+     * </p>
+     * <p>
+     * Each time you import key material into KMS, you can determine whether (<code>ExpirationModel</code>) and when (
+     * <code>ValidTo</code>) the key material expires. To change the expiration of your key material, you must import it
+     * again, either by calling <code>ImportKeyMaterial</code> or using the <a href=
+     * "kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-import-key-material-console"
+     * >import features</a> of the KMS console.
+     * </p>
+     * <p>
+     * Before calling <code>ImportKeyMaterial</code>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Create or identify a KMS key with no key material. The KMS key must have an <code>Origin</code> value of
+     * <code>EXTERNAL</code>, which indicates that the KMS key is designed for imported key material.
+     * </p>
+     * <p>
+     * To create an new KMS key for imported key material, call the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code>. You can create a symmetric encryption KMS key, HMAC KMS key,
+     * asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a <a
+     * href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported type.
+     * However, you can't import key material into a KMS key in a <a
+     * href="kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <a>DescribeKey</a> operation to verify that the <code>KeyState</code> of the KMS key is
+     * <code>PendingImport</code>, which indicates that the KMS key has no key material.
+     * </p>
+     * <p>
+     * If you are reimporting the same key material into an existing KMS key, you might need to call the
+     * <a>DeleteImportedKeyMaterial</a> to delete its existing key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Call the <a>GetParametersForImport</a> operation to get a public key and import token set for importing key
+     * material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the public key in the <a>GetParametersForImport</a> response to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key material and import token. When
+     * calling this operation, you must specify the following values:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID or key ARN of the KMS key to associate with the imported key material. Its <code>Origin</code> must be
+     * <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. You cannot perform this
+     * operation on a KMS key in a <a href="kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a>, or on a KMS key in a different Amazon Web Services account. To get the <code>Origin</code> and
+     * <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The encrypted key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The import token that <a>GetParametersForImport</a> returned. You must use a public key and token from the same
+     * <code>GetParametersForImport</code> response.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether the key material expires (<code>ExpirationModel</code>) and, if so, when (<code>ValidTo</code>). For help
+     * with this choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the
+     * KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material.
+     * However, you can delete and reimport the key material at any time, including before the key material expires.
+     * Each time you reimport, you can eliminate or reset the expiration time.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When this operation is successful, the key state of the KMS key changes from <code>PendingImport</code> to
+     * <code>Enabled</code>, and you can use the KMS key in cryptographic operations.
+     * </p>
+     * <p>
+     * If this operation fails, use the exception to help determine the problem. If the error is related to the key
+     * material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import
+     * token for the KMS key and repeat the import procedure. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To
+     * Import Key Material</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ImportKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param importKeyMaterialRequest
+     * @return A Java Future containing the result of the ImportKeyMaterial operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>IncorrectKeyMaterialException The request was rejected because the key material in the request is,
+     *         expired, invalid, or is not the same key material that was previously imported into this KMS key.</li>
+     *         <li>ExpiredImportTokenException The request was rejected because the specified import token is expired.
+     *         Use <a>GetParametersForImport</a> to get a new import token and public key, use the new public key to
+     *         encrypt the key material, and then try the request again.</li>
+     *         <li>InvalidImportTokenException The request was rejected because the provided import token is invalid or
+     *         is associated with a different KMS key.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ImportKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ImportKeyMaterialResponse> importKeyMaterial(ImportKeyMaterialRequest importKeyMaterialRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Imports or reimports key material into an existing KMS key that was created without key material.
+     * <code>ImportKeyMaterial</code> also sets the expiration model and expiration date of the imported key material.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * After you successfully import key material into a KMS key, you can <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the same key material</a> into that KMS key, but you cannot import different key material. You might reimport key
+     * material to replace key material that expired or key material that you deleted. You might also reimport key
+     * material to change the expiration model or expiration date of the key material. Before reimporting key material,
+     * if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material.
+     * </p>
+     * <p>
+     * Each time you import key material into KMS, you can determine whether (<code>ExpirationModel</code>) and when (
+     * <code>ValidTo</code>) the key material expires. To change the expiration of your key material, you must import it
+     * again, either by calling <code>ImportKeyMaterial</code> or using the <a href=
+     * "kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-import-key-material-console"
+     * >import features</a> of the KMS console.
+     * </p>
+     * <p>
+     * Before calling <code>ImportKeyMaterial</code>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Create or identify a KMS key with no key material. The KMS key must have an <code>Origin</code> value of
+     * <code>EXTERNAL</code>, which indicates that the KMS key is designed for imported key material.
+     * </p>
+     * <p>
+     * To create an new KMS key for imported key material, call the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code>. You can create a symmetric encryption KMS key, HMAC KMS key,
+     * asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a <a
+     * href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported type.
+     * However, you can't import key material into a KMS key in a <a
+     * href="kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <a>DescribeKey</a> operation to verify that the <code>KeyState</code> of the KMS key is
+     * <code>PendingImport</code>, which indicates that the KMS key has no key material.
+     * </p>
+     * <p>
+     * If you are reimporting the same key material into an existing KMS key, you might need to call the
+     * <a>DeleteImportedKeyMaterial</a> to delete its existing key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Call the <a>GetParametersForImport</a> operation to get a public key and import token set for importing key
+     * material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the public key in the <a>GetParametersForImport</a> response to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key material and import token. When
+     * calling this operation, you must specify the following values:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID or key ARN of the KMS key to associate with the imported key material. Its <code>Origin</code> must be
+     * <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. You cannot perform this
+     * operation on a KMS key in a <a href="kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a>, or on a KMS key in a different Amazon Web Services account. To get the <code>Origin</code> and
+     * <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The encrypted key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The import token that <a>GetParametersForImport</a> returned. You must use a public key and token from the same
+     * <code>GetParametersForImport</code> response.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether the key material expires (<code>ExpirationModel</code>) and, if so, when (<code>ValidTo</code>). For help
+     * with this choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the
+     * KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material.
+     * However, you can delete and reimport the key material at any time, including before the key material expires.
+     * Each time you reimport, you can eliminate or reset the expiration time.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When this operation is successful, the key state of the KMS key changes from <code>PendingImport</code> to
+     * <code>Enabled</code>, and you can use the KMS key in cryptographic operations.
+     * </p>
+     * <p>
+     * If this operation fails, use the exception to help determine the problem. If the error is related to the key
+     * material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import
+     * token for the KMS key and repeat the import procedure. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To
+     * Import Key Material</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ImportKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ImportKeyMaterialRequest.Builder} avoiding the need
+     * to create one manually via {@link ImportKeyMaterialRequest#builder()}
+     * </p>
+     *
+     * @param importKeyMaterialRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ImportKeyMaterial operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>IncorrectKeyMaterialException The request was rejected because the key material in the request is,
+     *         expired, invalid, or is not the same key material that was previously imported into this KMS key.</li>
+     *         <li>ExpiredImportTokenException The request was rejected because the specified import token is expired.
+     *         Use <a>GetParametersForImport</a> to get a new import token and public key, use the new public key to
+     *         encrypt the key material, and then try the request again.</li>
+     *         <li>InvalidImportTokenException The request was rejected because the provided import token is invalid or
+     *         is associated with a different KMS key.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ImportKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ImportKeyMaterialResponse> importKeyMaterial(
+            Consumer<ImportKeyMaterialRequest.Builder> importKeyMaterialRequest) {
+        return importKeyMaterial(ImportKeyMaterialRequest.builder().applyMutation(importKeyMaterialRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listAliasesRequest
+     * @return A Java Future containing the result of the ListAliases operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListAliasesResponse> listAliases(ListAliasesRequest listAliasesRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListAliasesRequest.Builder} avoiding the need to
+     * create one manually via {@link ListAliasesRequest#builder()}
+     * </p>
+     *
+     * @param listAliasesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListAliasesRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ListAliases operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListAliasesResponse> listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) {
+        return listAliases(ListAliasesRequest.builder().applyMutation(listAliasesRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return A Java Future containing the result of the ListAliases operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListAliasesResponse> listAliases() {
+        return listAliases(ListAliasesRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListAliasesResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListAliasesResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+     * </p>
+     *
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesPublisher listAliasesPaginator() {
+        return listAliasesPaginator(ListAliasesRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListAliasesResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListAliasesResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+     * </p>
+     *
+     * @param listAliasesRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesPublisher listAliasesPaginator(ListAliasesRequest listAliasesRequest) {
+        return new ListAliasesPublisher(this, listAliasesRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListAliasesResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListAliasesResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListAliasesRequest.Builder} avoiding the need to
+     * create one manually via {@link ListAliasesRequest#builder()}
+     * </p>
+     *
+     * @param listAliasesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListAliasesRequest.Builder} to create a request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesPublisher listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) {
+        return listAliasesPaginator(ListAliasesRequest.builder().applyMutation(listAliasesRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of all grants for the specified KMS key.
+     * </p>
+     * <p>
+     * You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <note>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListGrants</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listGrantsRequest
+     * @return A Java Future containing the result of the ListGrants operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListGrantsResponse> listGrants(ListGrantsRequest listGrantsRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a list of all grants for the specified KMS key.
+     * </p>
+     * <p>
+     * You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <note>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListGrants</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListGrantsRequest.Builder} avoiding the need to
+     * create one manually via {@link ListGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListGrantsRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ListGrants operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListGrantsResponse> listGrants(Consumer<ListGrantsRequest.Builder> listGrantsRequest) {
+        return listGrants(ListGrantsRequest.builder().applyMutation(listGrantsRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.
+     * The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher publisher = client.listGrantsPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher publisher = client.listGrantsPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListGrantsResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListGrantsResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.</b>
+     * </p>
+     *
+     * @param listGrantsRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListGrantsPublisher listGrantsPaginator(ListGrantsRequest listGrantsRequest) {
+        return new ListGrantsPublisher(this, listGrantsRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.
+     * The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher publisher = client.listGrantsPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher publisher = client.listGrantsPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListGrantsResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListGrantsResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListGrantsRequest.Builder} avoiding the need to
+     * create one manually via {@link ListGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListGrantsRequest.Builder} to create a request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListGrantsPublisher listGrantsPaginator(Consumer<ListGrantsRequest.Builder> listGrantsRequest) {
+        return listGrantsPaginator(ListGrantsRequest.builder().applyMutation(listGrantsRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names
+     * that you can use in a <a>GetKeyPolicy</a> operation. However, the only valid policy name is <code>default</code>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListKeyPolicies</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     * @return A Java Future containing the result of the ListKeyPolicies operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListKeyPoliciesResponse> listKeyPolicies(ListKeyPoliciesRequest listKeyPoliciesRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names
+     * that you can use in a <a>GetKeyPolicy</a> operation. However, the only valid policy name is <code>default</code>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListKeyPolicies</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeyPoliciesRequest.Builder} avoiding the need
+     * to create one manually via {@link ListKeyPoliciesRequest#builder()}
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ListKeyPolicies operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListKeyPoliciesResponse> listKeyPolicies(
+            Consumer<ListKeyPoliciesRequest.Builder> listKeyPoliciesRequest) {
+        return listKeyPolicies(ListKeyPoliciesRequest.builder().applyMutation(listKeyPoliciesRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher publisher = client.listKeyPoliciesPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher publisher = client.listKeyPoliciesPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)} operation.</b>
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeyPoliciesPublisher listKeyPoliciesPaginator(ListKeyPoliciesRequest listKeyPoliciesRequest) {
+        return new ListKeyPoliciesPublisher(this, listKeyPoliciesRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher publisher = client.listKeyPoliciesPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher publisher = client.listKeyPoliciesPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeyPoliciesRequest.Builder} avoiding the need
+     * to create one manually via {@link ListKeyPoliciesRequest#builder()}
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest.Builder} to create a request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeyPoliciesPublisher listKeyPoliciesPaginator(Consumer<ListKeyPoliciesRequest.Builder> listKeyPoliciesRequest) {
+        return listKeyPoliciesPaginator(ListKeyPoliciesRequest.builder().applyMutation(listKeyPoliciesRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeysRequest
+     * @return A Java Future containing the result of the ListKeys operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListKeysResponse> listKeys(ListKeysRequest listKeysRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeysRequest.Builder} avoiding the need to
+     * create one manually via {@link ListKeysRequest#builder()}
+     * </p>
+     *
+     * @param listKeysRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeysRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ListKeys operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListKeysResponse> listKeys(Consumer<ListKeysRequest.Builder> listKeysRequest) {
+        return listKeys(ListKeysRequest.builder().applyMutation(listKeysRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return A Java Future containing the result of the ListKeys operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListKeysResponse> listKeys() {
+        return listKeys(ListKeysRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation. The
+     * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeysResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListKeysResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+     * </p>
+     *
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysPublisher listKeysPaginator() {
+        return listKeysPaginator(ListKeysRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation. The
+     * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeysResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListKeysResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+     * </p>
+     *
+     * @param listKeysRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysPublisher listKeysPaginator(ListKeysRequest listKeysRequest) {
+        return new ListKeysPublisher(this, listKeysRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation. The
+     * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeysResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListKeysResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeysRequest.Builder} avoiding the need to
+     * create one manually via {@link ListKeysRequest#builder()}
+     * </p>
+     *
+     * @param listKeysRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeysRequest.Builder} to create a request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysPublisher listKeysPaginator(Consumer<ListKeysRequest.Builder> listKeysRequest) {
+        return listKeysPaginator(ListKeysRequest.builder().applyMutation(listKeysRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns all tags on the specified KMS key.
+     * </p>
+     * <p>
+     * For general information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>. For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListResourceTags</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     * @return A Java Future containing the result of the ListResourceTags operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListResourceTagsResponse> listResourceTags(ListResourceTagsRequest listResourceTagsRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns all tags on the specified KMS key.
+     * </p>
+     * <p>
+     * For general information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>. For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListResourceTags</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListResourceTagsRequest.Builder} avoiding the need
+     * to create one manually via {@link ListResourceTagsRequest#builder()}
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListResourceTagsRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ListResourceTags operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListResourceTagsResponse> listResourceTags(
+            Consumer<ListResourceTagsRequest.Builder> listResourceTagsRequest) {
+        return listResourceTags(ListResourceTagsRequest.builder().applyMutation(listResourceTagsRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher publisher = client.listResourceTagsPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher publisher = client.listResourceTagsPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListResourceTagsResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListResourceTagsResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)} operation.</b>
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListResourceTagsPublisher listResourceTagsPaginator(ListResourceTagsRequest listResourceTagsRequest) {
+        return new ListResourceTagsPublisher(this, listResourceTagsRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)}
+     * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
+     * SDK will internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher publisher = client.listResourceTagsPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher publisher = client.listResourceTagsPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListResourceTagsResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListResourceTagsResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListResourceTagsRequest.Builder} avoiding the need
+     * to create one manually via {@link ListResourceTagsRequest#builder()}
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListResourceTagsRequest.Builder} to create a request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListResourceTagsPublisher listResourceTagsPaginator(Consumer<ListResourceTagsRequest.Builder> listResourceTagsRequest) {
+        return listResourceTagsPaginator(ListResourceTagsRequest.builder().applyMutation(listResourceTagsRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns information about all grants in the Amazon Web Services account and Region that have the specified
+     * retiring principal.
+     * </p>
+     * <p>
+     * You can specify any principal in your Amazon Web Services account. The grants that are returned include grants
+     * for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
+     * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: You must specify a principal in your Amazon Web Services account. This operation
+     * returns a list of grants where the retiring principal specified in the <code>ListRetirableGrants</code> request
+     * is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web
+     * Services accounts, but you do not need <code>kms:ListRetirableGrants</code> permission (or any other additional
+     * permission) in any Amazon Web Services account other than your own.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.
+     * </p>
+     * <note>
+     * <p>
+     * KMS authorizes <code>ListRetirableGrants</code> requests by evaluating the caller account's
+     * kms:ListRetirableGrants permissions. The authorized resource in <code>ListRetirableGrants</code> calls is the
+     * retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their
+     * access to any KMS keys or grants that might be returned by the <code>ListRetirableGrants</code> call.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     * @return A Java Future containing the result of the ListRetirableGrants operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListRetirableGrantsResponse> listRetirableGrants(
+            ListRetirableGrantsRequest listRetirableGrantsRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns information about all grants in the Amazon Web Services account and Region that have the specified
+     * retiring principal.
+     * </p>
+     * <p>
+     * You can specify any principal in your Amazon Web Services account. The grants that are returned include grants
+     * for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
+     * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: You must specify a principal in your Amazon Web Services account. This operation
+     * returns a list of grants where the retiring principal specified in the <code>ListRetirableGrants</code> request
+     * is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web
+     * Services accounts, but you do not need <code>kms:ListRetirableGrants</code> permission (or any other additional
+     * permission) in any Amazon Web Services account other than your own.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.
+     * </p>
+     * <note>
+     * <p>
+     * KMS authorizes <code>ListRetirableGrants</code> requests by evaluating the caller account's
+     * kms:ListRetirableGrants permissions. The authorized resource in <code>ListRetirableGrants</code> calls is the
+     * retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their
+     * access to any KMS keys or grants that might be returned by the <code>ListRetirableGrants</code> call.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListRetirableGrantsRequest.Builder} avoiding the
+     * need to create one manually via {@link ListRetirableGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ListRetirableGrants operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ListRetirableGrantsResponse> listRetirableGrants(
+            Consumer<ListRetirableGrantsRequest.Builder> listRetirableGrantsRequest) {
+        return listRetirableGrants(ListRetirableGrantsRequest.builder().applyMutation(listRetirableGrantsRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation. The
+     * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher publisher = client.listRetirableGrantsPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher publisher = client.listRetirableGrantsPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation.</b>
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListRetirableGrantsPublisher listRetirableGrantsPaginator(ListRetirableGrantsRequest listRetirableGrantsRequest) {
+        return new ListRetirableGrantsPublisher(this, listRetirableGrantsRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation. The
+     * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
+     * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
+     * failures only after you start streaming the data. The subscribe method should be called as a request to start
+     * streaming data. For more info, see
+     * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
+     * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
+     * starting request.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to use the response class:
+     * </p>
+     * 1) Using the subscribe helper method
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher publisher = client.listRetirableGrantsPaginator(request);
+     * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+     * future.get();
+     * }
+     * </pre>
+     *
+     * 2) Using a custom subscriber
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher publisher = client.listRetirableGrantsPaginator(request);
+     * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse>() {
+     * 
+     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+     * 
+     * 
+     * public void onNext(software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse response) { //... };
+     * });}
+     * </pre>
+     * 
+     * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListRetirableGrantsRequest.Builder} avoiding the
+     * need to create one manually via {@link ListRetirableGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest.Builder} to create a request.
+     * @return A custom publisher that can be subscribed to request a stream of response pages.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidMarkerException The request was rejected because the marker that specifies where pagination
+     *         should next begin is not valid.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListRetirableGrantsPublisher listRetirableGrantsPaginator(
+            Consumer<ListRetirableGrantsRequest.Builder> listRetirableGrantsRequest) {
+        return listRetirableGrantsPaginator(ListRetirableGrantsRequest.builder().applyMutation(listRetirableGrantsRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Attaches a key policy to the specified KMS key.
+     * </p>
+     * <p>
+     * For more information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key
+     * Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple
+     * programming languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a
+     * key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:PutKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GetKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param putKeyPolicyRequest
+     * @return A Java Future containing the result of the PutKeyPolicy operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.PutKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<PutKeyPolicyResponse> putKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Attaches a key policy to the specified KMS key.
+     * </p>
+     * <p>
+     * For more information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key
+     * Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple
+     * programming languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a
+     * key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:PutKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GetKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link PutKeyPolicyRequest.Builder} avoiding the need to
+     * create one manually via {@link PutKeyPolicyRequest#builder()}
+     * </p>
+     *
+     * @param putKeyPolicyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the PutKeyPolicy operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.PutKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<PutKeyPolicyResponse> putKeyPolicy(Consumer<PutKeyPolicyRequest.Builder> putKeyPolicyRequest) {
+        return putKeyPolicy(PutKeyPolicyRequest.builder().applyMutation(putKeyPolicyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key
+     * under which data is encrypted, such as when you <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
+     * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt
+     * ciphertext under the same KMS key, such as to change the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>
+     * of a ciphertext.
+     * </p>
+     * <p>
+     * The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS
+     * operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by
+     * using the public key of an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
+     * KMS key</a> outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>
+     * or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * When you use the <code>ReEncrypt</code> operation, you need to provide information for the decrypt operation and
+     * the subsequent encrypt operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under an asymmetric KMS key, you must use the <code>SourceKeyId</code> parameter
+     * to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was
+     * used. This information is required to decrypt the data.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under a symmetric encryption KMS key, the <code>SourceKeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always
+     * recommended as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key, KMS
+     * uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the
+     * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter to specify the KMS key that
+     * re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also
+     * provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important></li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services
+     * accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a
+     * different account, you must use its key ARN or alias ARN.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:
+     * ReEncryptFrom</a> permission on the source KMS key (key policy)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo
+     * </a> permission on the destination KMS key (key policy)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code> permission in your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
+     * automatically included in the key policy when you use the console to create a KMS key. But you must include it
+     * manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a
+     * key policy.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param reEncryptRequest
+     * @return A Java Future containing the result of the ReEncrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>IncorrectKeyException The request was rejected because the specified KMS key cannot decrypt the data.
+     *         The <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a>
+     *         request must identify the same KMS key that was used to encrypt the ciphertext.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ReEncrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ReEncryptResponse> reEncrypt(ReEncryptRequest reEncryptRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key
+     * under which data is encrypted, such as when you <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
+     * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt
+     * ciphertext under the same KMS key, such as to change the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>
+     * of a ciphertext.
+     * </p>
+     * <p>
+     * The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS
+     * operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by
+     * using the public key of an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
+     * KMS key</a> outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>
+     * or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * When you use the <code>ReEncrypt</code> operation, you need to provide information for the decrypt operation and
+     * the subsequent encrypt operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under an asymmetric KMS key, you must use the <code>SourceKeyId</code> parameter
+     * to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was
+     * used. This information is required to decrypt the data.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under a symmetric encryption KMS key, the <code>SourceKeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always
+     * recommended as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key, KMS
+     * uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the
+     * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter to specify the KMS key that
+     * re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also
+     * provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important></li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services
+     * accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a
+     * different account, you must use its key ARN or alias ARN.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:
+     * ReEncryptFrom</a> permission on the source KMS key (key policy)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo
+     * </a> permission on the destination KMS key (key policy)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code> permission in your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
+     * automatically included in the key policy when you use the console to create a KMS key. But you must include it
+     * manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a
+     * key policy.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ReEncryptRequest.Builder} avoiding the need to
+     * create one manually via {@link ReEncryptRequest#builder()}
+     * </p>
+     *
+     * @param reEncryptRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ReEncryptRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ReEncrypt operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidCiphertextException From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was
+     *         rejected because the specified ciphertext, or additional authenticated data incorporated into the
+     *         ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>IncorrectKeyException The request was rejected because the specified KMS key cannot decrypt the data.
+     *         The <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a>
+     *         request must identify the same KMS key that was used to encrypt the ciphertext.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ReEncrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ReEncryptResponse> reEncrypt(Consumer<ReEncryptRequest.Builder> reEncryptRequest) {
+        return reEncrypt(ReEncryptRequest.builder().applyMutation(reEncryptRequest).build());
+    }
+
+    /**
+     * <p>
+     * Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based
+     * on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create
+     * multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key,
+     * use the <a>CreateKey</a> operation.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * A <i>replica key</i> is a fully-functional KMS key that can be used independently of its primary and peer replica
+     * keys. A primary key and its replica keys share properties that make them interoperable. They have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key
+     * material. They also have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation
+     * status</a>. KMS automatically synchronizes these shared properties among related multi-Region keys. All other
+     * properties of a replica key can differ, including its <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. KMS
+     * pricing and quotas for KMS keys apply to each primary key and replica key.
+     * </p>
+     * <p>
+     * When this operation completes, the new replica key has a transient key state of <code>Creating</code>. This key
+     * state changes to <code>Enabled</code> (or <code>PendingImport</code>) after a few seconds when the process of
+     * creating the new replica key is complete. While the key state is <code>Creating</code>, you can manage key, but
+     * you cannot yet use it in cryptographic operations. If you are creating and using the replica key
+     * programmatically, retry on <code>KMSInvalidStateException</code> or call <code>DescribeKey</code> to check its
+     * <code>KeyState</code> value before using it. For details about the <code>Creating</code> key state, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica
+     * of the key you're trying to replicate, <code>ReplicateKey</code> returns an <code>AlreadyExistsException</code>
+     * error. If the key state of the existing replica is <code>PendingDeletion</code>, you can cancel the scheduled key
+     * deletion (<a>CancelKeyDeletion</a>) or wait for the key to be deleted. The new replica key you create will have
+     * the same <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties"
+     * >shared properties</a> as the original replica key.
+     * </p>
+     * <p>
+     * The CloudTrail log of a <code>ReplicateKey</code> operation records a <code>ReplicateKey</code> operation in the
+     * primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.
+     * </p>
+     * <p>
+     * If you replicate a multi-Region primary key with imported key material, the replica key is created with no key
+     * material. You must import the same key material that you imported into the primary key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html">Importing key material
+     * into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <note>
+     * <p>
+     * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and <code>Tags</code>
+     * parameters than those used in the KMS console. For details, see the parameter descriptions.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a replica key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this permission in the
+     * primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:CreateKey</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To use the <code>Tags</code> parameter, <code>kms:TagResource</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdatePrimaryRegion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param replicateKeyRequest
+     * @return A Java Future containing the result of the ReplicateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>AlreadyExistsException The request was rejected because it attempted to create a resource that
+     *         already exists.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ReplicateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReplicateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ReplicateKeyResponse> replicateKey(ReplicateKeyRequest replicateKeyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based
+     * on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create
+     * multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key,
+     * use the <a>CreateKey</a> operation.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * A <i>replica key</i> is a fully-functional KMS key that can be used independently of its primary and peer replica
+     * keys. A primary key and its replica keys share properties that make them interoperable. They have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key
+     * material. They also have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation
+     * status</a>. KMS automatically synchronizes these shared properties among related multi-Region keys. All other
+     * properties of a replica key can differ, including its <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. KMS
+     * pricing and quotas for KMS keys apply to each primary key and replica key.
+     * </p>
+     * <p>
+     * When this operation completes, the new replica key has a transient key state of <code>Creating</code>. This key
+     * state changes to <code>Enabled</code> (or <code>PendingImport</code>) after a few seconds when the process of
+     * creating the new replica key is complete. While the key state is <code>Creating</code>, you can manage key, but
+     * you cannot yet use it in cryptographic operations. If you are creating and using the replica key
+     * programmatically, retry on <code>KMSInvalidStateException</code> or call <code>DescribeKey</code> to check its
+     * <code>KeyState</code> value before using it. For details about the <code>Creating</code> key state, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica
+     * of the key you're trying to replicate, <code>ReplicateKey</code> returns an <code>AlreadyExistsException</code>
+     * error. If the key state of the existing replica is <code>PendingDeletion</code>, you can cancel the scheduled key
+     * deletion (<a>CancelKeyDeletion</a>) or wait for the key to be deleted. The new replica key you create will have
+     * the same <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties"
+     * >shared properties</a> as the original replica key.
+     * </p>
+     * <p>
+     * The CloudTrail log of a <code>ReplicateKey</code> operation records a <code>ReplicateKey</code> operation in the
+     * primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.
+     * </p>
+     * <p>
+     * If you replicate a multi-Region primary key with imported key material, the replica key is created with no key
+     * material. You must import the same key material that you imported into the primary key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html">Importing key material
+     * into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <note>
+     * <p>
+     * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and <code>Tags</code>
+     * parameters than those used in the KMS console. For details, see the parameter descriptions.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a replica key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this permission in the
+     * primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:CreateKey</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To use the <code>Tags</code> parameter, <code>kms:TagResource</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdatePrimaryRegion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ReplicateKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link ReplicateKeyRequest#builder()}
+     * </p>
+     *
+     * @param replicateKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ReplicateKeyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ReplicateKey operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>AlreadyExistsException The request was rejected because it attempted to create a resource that
+     *         already exists.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>MalformedPolicyDocumentException The request was rejected because the specified policy is not
+     *         syntactically or semantically correct.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ReplicateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReplicateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ReplicateKeyResponse> replicateKey(Consumer<ReplicateKeyRequest.Builder> replicateKeyRequest) {
+        return replicateKey(ReplicateKeyRequest.builder().applyMutation(replicateKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param retireGrantRequest
+     * @return A Java Future containing the result of the RetireGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<RetireGrantResponse> retireGrant(RetireGrantRequest retireGrantRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link RetireGrantRequest.Builder} avoiding the need to
+     * create one manually via {@link RetireGrantRequest#builder()}
+     * </p>
+     *
+     * @param retireGrantRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.RetireGrantRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the RetireGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<RetireGrantResponse> retireGrant(Consumer<RetireGrantRequest.Builder> retireGrantRequest) {
+        return retireGrant(RetireGrantRequest.builder().applyMutation(retireGrantRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return A Java Future containing the result of the RetireGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<RetireGrantResponse> retireGrant() {
+        return retireGrant(RetireGrantRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more
+     * information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:RevokeGrant</a> (key policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param revokeGrantRequest
+     * @return A Java Future containing the result of the RevokeGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RevokeGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<RevokeGrantResponse> revokeGrant(RevokeGrantRequest revokeGrantRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more
+     * information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:RevokeGrant</a> (key policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link RevokeGrantRequest.Builder} avoiding the need to
+     * create one manually via {@link RevokeGrantRequest#builder()}
+     * </p>
+     *
+     * @param revokeGrantRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.RevokeGrantRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the RevokeGrant operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>InvalidGrantIdException The request was rejected because the specified <code>GrantId</code> is not
+     *         valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.RevokeGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<RevokeGrantResponse> revokeGrant(Consumer<RevokeGrantRequest.Builder> revokeGrantRequest) {
+        return revokeGrant(RevokeGrantRequest.builder().applyMutation(revokeGrantRequest).build());
+    }
+
+    /**
+     * <p>
+     * Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a
+     * waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to
+     * <code>PendingDeletion</code> and the key can't be used in any cryptographic operations. It remains in this state
+     * for the duration of the waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
+     * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and
+     * all KMS data associated with it, including all aliases that refer to it.
+     * </p>
+     * <important>
+     * <p>
+     * Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that
+     * was encrypted under the KMS key is unrecoverable. (The only exception is a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">multi-Region replica
+     * key</a>, or an <a href="kms/latest/developerguide/importing-keys-managing.html#import-delete-key">asymmetric or
+     * HMAC KMS key with imported key material</a>.) To prevent the use of a KMS key without deleting it, use
+     * <a>DisableKey</a>.
+     * </p>
+     * </important>
+     * <p>
+     * You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will
+     * not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key
+     * with replicas, its key state changes to <code>PendingReplicaDeletion</code> and it cannot be replicated or used
+     * in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted
+     * (not just scheduled), the key state of the primary key changes to <code>PendingDeletion</code> and its waiting
+     * period (<code>PendingWindowInDays</code>) begins. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region
+     * keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-cmk-keystore.html">deletes a KMS
+     * key from an CloudHSM key store</a>, it makes a best effort to delete the associated key material from the
+     * associated CloudHSM cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-xks-key.html">Deleting a KMS key from an
+     * external key store</a> has no effect on the associated external key. However, for both types of custom key
+     * stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS
+     * key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external
+     * key store by creating a new KMS key with the same key material.
+     * </p>
+     * <p>
+     * For more information about scheduling a KMS key for deletion, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CancelKeyDeletion</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisableKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param scheduleKeyDeletionRequest
+     * @return A Java Future containing the result of the ScheduleKeyDeletion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ScheduleKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ScheduleKeyDeletionResponse> scheduleKeyDeletion(
+            ScheduleKeyDeletionRequest scheduleKeyDeletionRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a
+     * waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to
+     * <code>PendingDeletion</code> and the key can't be used in any cryptographic operations. It remains in this state
+     * for the duration of the waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
+     * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and
+     * all KMS data associated with it, including all aliases that refer to it.
+     * </p>
+     * <important>
+     * <p>
+     * Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that
+     * was encrypted under the KMS key is unrecoverable. (The only exception is a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">multi-Region replica
+     * key</a>, or an <a href="kms/latest/developerguide/importing-keys-managing.html#import-delete-key">asymmetric or
+     * HMAC KMS key with imported key material</a>.) To prevent the use of a KMS key without deleting it, use
+     * <a>DisableKey</a>.
+     * </p>
+     * </important>
+     * <p>
+     * You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will
+     * not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key
+     * with replicas, its key state changes to <code>PendingReplicaDeletion</code> and it cannot be replicated or used
+     * in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted
+     * (not just scheduled), the key state of the primary key changes to <code>PendingDeletion</code> and its waiting
+     * period (<code>PendingWindowInDays</code>) begins. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region
+     * keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-cmk-keystore.html">deletes a KMS
+     * key from an CloudHSM key store</a>, it makes a best effort to delete the associated key material from the
+     * associated CloudHSM cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-xks-key.html">Deleting a KMS key from an
+     * external key store</a> has no effect on the associated external key. However, for both types of custom key
+     * stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS
+     * key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external
+     * key store by creating a new KMS key with the same key material.
+     * </p>
+     * <p>
+     * For more information about scheduling a KMS key for deletion, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CancelKeyDeletion</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisableKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ScheduleKeyDeletionRequest.Builder} avoiding the
+     * need to create one manually via {@link ScheduleKeyDeletionRequest#builder()}
+     * </p>
+     *
+     * @param scheduleKeyDeletionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the ScheduleKeyDeletion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.ScheduleKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<ScheduleKeyDeletionResponse> scheduleKeyDeletion(
+            Consumer<ScheduleKeyDeletionRequest.Builder> scheduleKeyDeletionRequest) {
+        return scheduleKeyDeletion(ScheduleKeyDeletionRequest.builder().applyMutation(scheduleKeyDeletionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signature</a> for a message or
+     * message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the
+     * <a>Verify</a> operation, or use the public key in the same asymmetric KMS key outside of KMS. For information
+     * about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is
+     * represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a
+     * message. Anyone with the public key can verify that the message was signed with that particular private key and
+     * that the message hasn't changed since it was signed.
+     * </p>
+     * <p>
+     * To use the <code>Sign</code> operation, provide the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a <code>KeyUsage</code> value of
+     * <code>SIGN_VERIFY</code>. To get the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
+     * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <code>Message</code> parameter to specify the message or message digest to sign. You can submit messages
+     * of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash
+     * digest in the <code>Message</code> parameter. To indicate whether the message is a full message or a digest, use
+     * the <code>MessageType</code> parameter.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Choose a signing algorithm that is compatible with the KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <important>
+     * <p>
+     * When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to
+     * verify the signature.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signature is effective. This deters an attack
+     * where the actor uses a signed message to establish validity repeatedly or long after the message is superseded.
+     * Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect
+     * when its time to refresh the signature.
+     * </p>
+     * </note>
+     * <p>
+     * To verify the signature that this operation generates, use the <a>Verify</a> operation. Or use the
+     * <a>GetPublicKey</a> operation to download the public key and then use the public key to verify the signature
+     * outside of KMS.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key
+     * policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Verify</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param signRequest
+     * @return A Java Future containing the result of the Sign operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Sign
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Sign" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<SignResponse> sign(SignRequest signRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signature</a> for a message or
+     * message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the
+     * <a>Verify</a> operation, or use the public key in the same asymmetric KMS key outside of KMS. For information
+     * about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is
+     * represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a
+     * message. Anyone with the public key can verify that the message was signed with that particular private key and
+     * that the message hasn't changed since it was signed.
+     * </p>
+     * <p>
+     * To use the <code>Sign</code> operation, provide the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a <code>KeyUsage</code> value of
+     * <code>SIGN_VERIFY</code>. To get the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
+     * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <code>Message</code> parameter to specify the message or message digest to sign. You can submit messages
+     * of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash
+     * digest in the <code>Message</code> parameter. To indicate whether the message is a full message or a digest, use
+     * the <code>MessageType</code> parameter.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Choose a signing algorithm that is compatible with the KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <important>
+     * <p>
+     * When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to
+     * verify the signature.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signature is effective. This deters an attack
+     * where the actor uses a signed message to establish validity repeatedly or long after the message is superseded.
+     * Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect
+     * when its time to refresh the signature.
+     * </p>
+     * </note>
+     * <p>
+     * To verify the signature that this operation generates, use the <a>Verify</a> operation. Or use the
+     * <a>GetPublicKey</a> operation to download the public key and then use the public key to verify the signature
+     * outside of KMS.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key
+     * policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Verify</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link SignRequest.Builder} avoiding the need to create
+     * one manually via {@link SignRequest#builder()}
+     * </p>
+     *
+     * @param signRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.SignRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the Sign operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Sign
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Sign" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<SignResponse> sign(Consumer<SignRequest.Builder> signRequest) {
+        return sign(SignRequest.builder().applyMutation(signRequest).build());
+    }
+
+    /**
+     * <p>
+     * Adds or edits tags on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an
+     * empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
+     * key and a new tag value.
+     * </p>
+     * <p>
+     * You can use this operation to tag a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>,
+     * but you cannot tag an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>, an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned key</a>, a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>,
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.
+     * </p>
+     * <p>
+     * You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param tagResourceRequest
+     * @return A Java Future containing the result of the TagResource operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.TagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Adds or edits tags on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an
+     * empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
+     * key and a new tag value.
+     * </p>
+     * <p>
+     * You can use this operation to tag a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>,
+     * but you cannot tag an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>, an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned key</a>, a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>,
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.
+     * </p>
+     * <p>
+     * You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
+     * create one manually via {@link TagResourceRequest#builder()}
+     * </p>
+     *
+     * @param tagResourceRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.TagResourceRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the TagResource operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.TagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) {
+        return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes tags from a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * To delete a tag, specify the tag key and the KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * When it succeeds, the <code>UntagResource</code> operation doesn't return any output. Also, if the specified tag
+     * key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation
+     * worked, use the <a>ListResourceTags</a> operation.
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UntagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param untagResourceRequest
+     * @return A Java Future containing the result of the UntagResource operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UntagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes tags from a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * To delete a tag, specify the tag key and the KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * When it succeeds, the <code>UntagResource</code> operation doesn't return any output. Also, if the specified tag
+     * key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation
+     * worked, use the <a>ListResourceTags</a> operation.
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UntagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
+     * create one manually via {@link UntagResourceRequest#builder()}
+     * </p>
+     *
+     * @param untagResourceRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UntagResourceRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the UntagResource operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>TagException The request was rejected because one or more tags are not valid.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UntagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) {
+        return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
+    }
+
+    /**
+     * <p>
+     * Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a
+     * time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web
+     * Services account and Region.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must
+     * have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias
+     * to a different type of KMS key, use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to create a
+     * new alias.
+     * </p>
+     * <p>
+     * You cannot use <code>UpdateAlias</code> to change an alias name. To change an alias name, use <a>DeleteAlias</a>
+     * to delete the old alias and <a>CreateAlias</a> to create a new alias.
+     * </p>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key
+     * without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation.
+     * To get the aliases of all KMS keys in the account, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the current KMS key (key policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the new KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateAliasRequest
+     * @return A Java Future containing the result of the UpdateAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdateAliasResponse> updateAlias(UpdateAliasRequest updateAliasRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a
+     * time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web
+     * Services account and Region.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must
+     * have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias
+     * to a different type of KMS key, use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to create a
+     * new alias.
+     * </p>
+     * <p>
+     * You cannot use <code>UpdateAlias</code> to change an alias name. To change an alias name, use <a>DeleteAlias</a>
+     * to delete the old alias and <a>CreateAlias</a> to create a new alias.
+     * </p>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key
+     * without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation.
+     * To get the aliases of all KMS keys in the account, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the current KMS key (key policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the new KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdateAliasRequest.Builder} avoiding the need to
+     * create one manually via {@link UpdateAliasRequest#builder()}
+     * </p>
+     *
+     * @param updateAliasRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdateAliasRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the UpdateAlias operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>LimitExceededException The request was rejected because a quota was exceeded. For more information,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdateAliasResponse> updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) {
+        return updateAlias(UpdateAliasRequest.builder().applyMutation(updateAliasRequest).build());
+    }
+
+    /**
+     * <p>
+     * Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM
+     * key store or an external key store.
+     * </p>
+     * <p>
+     * Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store. Use the remaining
+     * optional parameters to change its properties. This operation does not return any property values. To verify the
+     * updated property values, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <important>
+     * <p>
+     * When updating the properties of an external key store, verify that the updated settings connect your key store,
+     * via the external key store proxy, to the same external key manager as the previous settings, or to a backup or
+     * snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail,
+     * you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if
+     * KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.
+     * </p>
+     * </important> <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for updating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot upload the proxy configuration file to the <code>UpdateCustomKeyStore</code>
+     * operation. However, you can use the file to help you determine the correct values for the
+     * <code>UpdateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * For an CloudHSM key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), to tell KMS about a change to the <code>kmsuser</code> crypto user password
+     * (<code>KeyStorePassword</code>), or to associate the custom key store with a different, but related, CloudHSM
+     * cluster (<code>CloudHsmClusterId</code>). To update any property of an CloudHSM key store, the
+     * <code>ConnectionState</code> of the CloudHSM key store must be <code>DISCONNECTED</code>.
+     * </p>
+     * <p>
+     * For an external key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), or to tell KMS about a change to the external key store proxy authentication
+     * credentials (<code>XksProxyAuthenticationCredential</code>), connection method (<code>XksProxyConnectivity</code>
+     * ), external proxy endpoint (<code>XksProxyUriEndpoint</code>) and path (<code>XksProxyUriPath</code>). For
+     * external key stores with an <code>XksProxyConnectivity</code> of <code>VPC_ENDPOINT_SERVICE</code>, you can also
+     * update the Amazon VPC endpoint service name (<code>XksProxyVpcEndpointServiceName</code>). To update most
+     * properties of an external key store, the <code>ConnectionState</code> of the external key store must be
+     * <code>DISCONNECTED</code>. However, you can update the <code>CustomKeyStoreName</code>,
+     * <code>XksProxyAuthenticationCredential</code>, and <code>XksProxyUriPath</code> of an external key store when it
+     * is in the CONNECTED or DISCONNECTED state.
+     * </p>
+     * <p>
+     * If your update requires a <code>DISCONNECTED</code> state, before using <code>UpdateCustomKeyStore</code>, use
+     * the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store. After the
+     * <code>UpdateCustomKeyStore</code> operation completes, use the <a>ConnectCustomKeyStore</a> to reconnect the
+     * custom key store. To find the <code>ConnectionState</code> of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * </p>
+     * <p>
+     * Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its
+     * backing key store. For example, before you change the <code>XksProxyUriPath</code> value, verify that the
+     * external key store proxy is reachable at the new path.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateCustomKeyStoreRequest
+     * @return A Java Future containing the result of the UpdateCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreNameInUseException The request was rejected because the specified custom key store name
+     *         is already assigned to another custom key store in the account. Try again with a custom key store name
+     *         that is unique in the account.</li>
+     *         <li>CloudHsmClusterNotFoundException The request was rejected because KMS cannot find the CloudHSM
+     *         cluster with the specified cluster ID. Retry the request with a different cluster ID.</li>
+     *         <li>CloudHsmClusterNotRelatedException The request was rejected because the specified CloudHSM cluster
+     *         has a different cluster certificate than the original cluster. You cannot use the operation to specify an
+     *         unrelated cluster for an CloudHSM key store.</p>
+     *         <p>
+     *         Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes
+     *         clusters that were created from a backup of the current cluster, and clusters that were created from the
+     *         same backup that produced the current cluster.
+     *         </p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksProxyUriInUseException The request was rejected because the concatenation of the
+     *         <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. Each external key store in a Region must use a
+     *         unique external key store proxy API address.</li>
+     *         <li>XksProxyUriEndpointInUseException The request was rejected because the
+     *         <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. To identify the cause, see the error message that accompanies the exception.</li>
+     *         <li>XksProxyUriUnreachableException KMS was unable to reach the specified <code>XksProxyUriPath</code>.
+     *         The path must be reachable before you create the external key store or update its settings.</p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</li>
+     *         <li>XksProxyIncorrectAuthenticationCredentialException The request was rejected because the proxy
+     *         credentials failed to authenticate to the specified external key store proxy. The specified external key
+     *         store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in
+     *         the credentials or in the identification of the external key store proxy.</li>
+     *         <li>XksProxyVpcEndpointServiceInUseException The request was rejected because the specified Amazon VPC
+     *         endpoint service is already associated with another external key store in this Amazon Web Services
+     *         Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</li>
+     *         <li>XksProxyVpcEndpointServiceNotFoundException The request was rejected because KMS could not find the
+     *         specified VPC endpoint service. Use <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service
+     *         name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC
+     *         endpoint service includes the KMS service principal for the Region, such as
+     *         <code>cks.kms.us-east-1.amazonaws.com</code>.</li>
+     *         <li>XksProxyVpcEndpointServiceInvalidConfigurationException The request was rejected because the Amazon
+     *         VPC endpoint service configuration does not fulfill the requirements for an external key store. To
+     *         identify the cause, see the error message that accompanies the exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</li>
+     *         <li>XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.</li>
+     *         <li>XksProxyInvalidConfigurationException The request was rejected because the external key store proxy
+     *         is not configured correctly. To identify the cause, see the error message that accompanies the exception.
+     *         </li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdateCustomKeyStoreResponse> updateCustomKeyStore(
+            UpdateCustomKeyStoreRequest updateCustomKeyStoreRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM
+     * key store or an external key store.
+     * </p>
+     * <p>
+     * Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store. Use the remaining
+     * optional parameters to change its properties. This operation does not return any property values. To verify the
+     * updated property values, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <important>
+     * <p>
+     * When updating the properties of an external key store, verify that the updated settings connect your key store,
+     * via the external key store proxy, to the same external key manager as the previous settings, or to a backup or
+     * snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail,
+     * you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if
+     * KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.
+     * </p>
+     * </important> <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for updating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot upload the proxy configuration file to the <code>UpdateCustomKeyStore</code>
+     * operation. However, you can use the file to help you determine the correct values for the
+     * <code>UpdateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * For an CloudHSM key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), to tell KMS about a change to the <code>kmsuser</code> crypto user password
+     * (<code>KeyStorePassword</code>), or to associate the custom key store with a different, but related, CloudHSM
+     * cluster (<code>CloudHsmClusterId</code>). To update any property of an CloudHSM key store, the
+     * <code>ConnectionState</code> of the CloudHSM key store must be <code>DISCONNECTED</code>.
+     * </p>
+     * <p>
+     * For an external key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), or to tell KMS about a change to the external key store proxy authentication
+     * credentials (<code>XksProxyAuthenticationCredential</code>), connection method (<code>XksProxyConnectivity</code>
+     * ), external proxy endpoint (<code>XksProxyUriEndpoint</code>) and path (<code>XksProxyUriPath</code>). For
+     * external key stores with an <code>XksProxyConnectivity</code> of <code>VPC_ENDPOINT_SERVICE</code>, you can also
+     * update the Amazon VPC endpoint service name (<code>XksProxyVpcEndpointServiceName</code>). To update most
+     * properties of an external key store, the <code>ConnectionState</code> of the external key store must be
+     * <code>DISCONNECTED</code>. However, you can update the <code>CustomKeyStoreName</code>,
+     * <code>XksProxyAuthenticationCredential</code>, and <code>XksProxyUriPath</code> of an external key store when it
+     * is in the CONNECTED or DISCONNECTED state.
+     * </p>
+     * <p>
+     * If your update requires a <code>DISCONNECTED</code> state, before using <code>UpdateCustomKeyStore</code>, use
+     * the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store. After the
+     * <code>UpdateCustomKeyStore</code> operation completes, use the <a>ConnectCustomKeyStore</a> to reconnect the
+     * custom key store. To find the <code>ConnectionState</code> of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * </p>
+     * <p>
+     * Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its
+     * backing key store. For example, before you change the <code>XksProxyUriPath</code> value, verify that the
+     * external key store proxy is reachable at the new path.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdateCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link UpdateCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param updateCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the UpdateCustomKeyStore operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>CustomKeyStoreNotFoundException The request was rejected because KMS cannot find a custom key store
+     *         with the specified key store name or ID.</li>
+     *         <li>CustomKeyStoreNameInUseException The request was rejected because the specified custom key store name
+     *         is already assigned to another custom key store in the account. Try again with a custom key store name
+     *         that is unique in the account.</li>
+     *         <li>CloudHsmClusterNotFoundException The request was rejected because KMS cannot find the CloudHSM
+     *         cluster with the specified cluster ID. Retry the request with a different cluster ID.</li>
+     *         <li>CloudHsmClusterNotRelatedException The request was rejected because the specified CloudHSM cluster
+     *         has a different cluster certificate than the original cluster. You cannot use the operation to specify an
+     *         unrelated cluster for an CloudHSM key store.</p>
+     *         <p>
+     *         Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes
+     *         clusters that were created from a backup of the current cluster, and clusters that were created from the
+     *         same backup that produced the current cluster.
+     *         </p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.</li>
+     *         <li>CustomKeyStoreInvalidStateException The request was rejected because of the
+     *         <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom
+     *         key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>CloudHsmClusterNotActiveException The request was rejected because the CloudHSM cluster associated
+     *         with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again.
+     *         For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.</li>
+     *         <li>CloudHsmClusterInvalidConfigurationException The request was rejected because the associated CloudHSM
+     *         cluster did not meet the configuration requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</li>
+     *         <li>XksProxyUriInUseException The request was rejected because the concatenation of the
+     *         <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. Each external key store in a Region must use a
+     *         unique external key store proxy API address.</li>
+     *         <li>XksProxyUriEndpointInUseException The request was rejected because the
+     *         <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. To identify the cause, see the error message that accompanies the exception.</li>
+     *         <li>XksProxyUriUnreachableException KMS was unable to reach the specified <code>XksProxyUriPath</code>.
+     *         The path must be reachable before you create the external key store or update its settings.</p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</li>
+     *         <li>XksProxyIncorrectAuthenticationCredentialException The request was rejected because the proxy
+     *         credentials failed to authenticate to the specified external key store proxy. The specified external key
+     *         store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in
+     *         the credentials or in the identification of the external key store proxy.</li>
+     *         <li>XksProxyVpcEndpointServiceInUseException The request was rejected because the specified Amazon VPC
+     *         endpoint service is already associated with another external key store in this Amazon Web Services
+     *         Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</li>
+     *         <li>XksProxyVpcEndpointServiceNotFoundException The request was rejected because KMS could not find the
+     *         specified VPC endpoint service. Use <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service
+     *         name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC
+     *         endpoint service includes the KMS service principal for the Region, such as
+     *         <code>cks.kms.us-east-1.amazonaws.com</code>.</li>
+     *         <li>XksProxyVpcEndpointServiceInvalidConfigurationException The request was rejected because the Amazon
+     *         VPC endpoint service configuration does not fulfill the requirements for an external key store. To
+     *         identify the cause, see the error message that accompanies the exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</li>
+     *         <li>XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.</li>
+     *         <li>XksProxyInvalidConfigurationException The request was rejected because the external key store proxy
+     *         is not configured correctly. To identify the cause, see the error message that accompanies the exception.
+     *         </li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdateCustomKeyStoreResponse> updateCustomKeyStore(
+            Consumer<UpdateCustomKeyStoreRequest.Builder> updateCustomKeyStoreRequest) {
+        return updateCustomKeyStore(UpdateCustomKeyStoreRequest.builder().applyMutation(updateCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateKeyDescription</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateKeyDescriptionRequest
+     * @return A Java Future containing the result of the UpdateKeyDescription operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateKeyDescription
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdateKeyDescriptionResponse> updateKeyDescription(
+            UpdateKeyDescriptionRequest updateKeyDescriptionRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateKeyDescription</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdateKeyDescriptionRequest.Builder} avoiding the
+     * need to create one manually via {@link UpdateKeyDescriptionRequest#builder()}
+     * </p>
+     *
+     * @param updateKeyDescriptionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the UpdateKeyDescription operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdateKeyDescription
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdateKeyDescriptionResponse> updateKeyDescription(
+            Consumer<UpdateKeyDescriptionRequest.Builder> updateKeyDescriptionRequest) {
+        return updateKeyDescription(UpdateKeyDescriptionRequest.builder().applyMutation(updateKeyDescriptionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Changes the primary key of a multi-Region key.
+     * </p>
+     * <p>
+     * This operation changes the replica key in the specified Region to a primary key and changes the former primary
+     * key to a replica key. For example, suppose you have a primary key in <code>us-east-1</code> and a replica key in
+     * <code>eu-west-2</code>. If you run <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
+     * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the key in
+     * <code>us-east-1</code> becomes a replica key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update"
+     * >Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <i>primary key</i> of a multi-Region key is the source for properties that are always shared by primary and
+     * replica keys, including the key material, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation</a>.
+     * It's the only key that can be replicated. You cannot <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
+     * key</a> until all replica keys are deleted.
+     * </p>
+     * <p>
+     * The key ID and primary Region that you specify uniquely identify the replica key that will become the primary
+     * key. The primary Region must already have a replica key. This operation does not create a KMS key in the
+     * specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any
+     * replica key. To create a replica key, use the <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation
+     * should not delay, interrupt, or cause failures in cryptographic operations.
+     * </p>
+     * <p>
+     * Even after this operation completes, the process of updating the primary Region might still be in progress for a
+     * few more seconds. Operations such as <code>DescribeKey</code> might display both the old and new primary keys as
+     * replicas. The old and new primary keys have a transient key state of <code>Updating</code>. The original key
+     * state is restored when the update is complete. While the key state is <code>Updating</code>, you can use the keys
+     * in cryptographic operations, but you cannot replicate the new primary key or perform certain management
+     * operations, such as enabling or disabling these keys. For details about the <code>Updating</code> key state, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return any output. To verify that primary key is changed, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's Region). Include this
+     * permission primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's Region). Include this
+     * permission in the replica key's key policy.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updatePrimaryRegionRequest
+     * @return A Java Future containing the result of the UpdatePrimaryRegion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdatePrimaryRegion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdatePrimaryRegion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdatePrimaryRegionResponse> updatePrimaryRegion(
+            UpdatePrimaryRegionRequest updatePrimaryRegionRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Changes the primary key of a multi-Region key.
+     * </p>
+     * <p>
+     * This operation changes the replica key in the specified Region to a primary key and changes the former primary
+     * key to a replica key. For example, suppose you have a primary key in <code>us-east-1</code> and a replica key in
+     * <code>eu-west-2</code>. If you run <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
+     * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the key in
+     * <code>us-east-1</code> becomes a replica key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update"
+     * >Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <i>primary key</i> of a multi-Region key is the source for properties that are always shared by primary and
+     * replica keys, including the key material, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation</a>.
+     * It's the only key that can be replicated. You cannot <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
+     * key</a> until all replica keys are deleted.
+     * </p>
+     * <p>
+     * The key ID and primary Region that you specify uniquely identify the replica key that will become the primary
+     * key. The primary Region must already have a replica key. This operation does not create a KMS key in the
+     * specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any
+     * replica key. To create a replica key, use the <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation
+     * should not delay, interrupt, or cause failures in cryptographic operations.
+     * </p>
+     * <p>
+     * Even after this operation completes, the process of updating the primary Region might still be in progress for a
+     * few more seconds. Operations such as <code>DescribeKey</code> might display both the old and new primary keys as
+     * replicas. The old and new primary keys have a transient key state of <code>Updating</code>. The original key
+     * state is restored when the update is complete. While the key state is <code>Updating</code>, you can use the keys
+     * in cryptographic operations, but you cannot replicate the new primary key or perform certain management
+     * operations, such as enabling or disabling these keys. For details about the <code>Updating</code> key state, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return any output. To verify that primary key is changed, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's Region). Include this
+     * permission primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's Region). Include this
+     * permission in the replica key's key policy.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdatePrimaryRegionRequest.Builder} avoiding the
+     * need to create one manually via {@link UpdatePrimaryRegionRequest#builder()}
+     * </p>
+     *
+     * @param updatePrimaryRegionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the UpdatePrimaryRegion operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>InvalidArnException The request was rejected because a specified ARN, or an ARN in a key policy, is
+     *         not valid.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>UnsupportedOperationException The request was rejected because a specified parameter is not supported
+     *         or a specified resource is not valid for this operation.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.UpdatePrimaryRegion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdatePrimaryRegion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<UpdatePrimaryRegionResponse> updatePrimaryRegion(
+            Consumer<UpdatePrimaryRegionRequest.Builder> updatePrimaryRegionRequest) {
+        return updatePrimaryRegion(UpdatePrimaryRegionRequest.builder().applyMutation(updatePrimaryRegionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Verifies a digital signature that was generated by the <a>Sign</a> operation.
+     * </p>
+     * <p/>
+     * <p>
+     * Verification confirms that an authorized user signed the message with the specified KMS key and signing
+     * algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the
+     * <code>SignatureValid</code> field in the response is <code>True</code>. If the signature verification fails, the
+     * <code>Verify</code> operation fails with an <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * <p>
+     * A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by
+     * using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To use the <code>Verify</code> operation, specify the same asymmetric KMS key, message, and signing algorithm
+     * that were used to produce the signature. The message type does not need to be the same as the one used for
+     * signing, but it must indicate whether the value of the <code>Message</code> parameter should be hashed as part of
+     * the verification process.
+     * </p>
+     * <p>
+     * You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the
+     * <a>GetPublicKey</a> operation to download the public key in the asymmetric KMS key and then use the public key to
+     * verify the signature outside of KMS. The advantage of using the <code>Verify</code> operation is that it is
+     * performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is
+     * logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key
+     * to verify signatures.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Sign</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyRequest
+     * @return A Java Future containing the result of the Verify operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInvalidSignatureException The request was rejected because the signature verification failed.
+     *         Signature verification fails when it cannot confirm that signature was produced by signing the specified
+     *         message with the specified KMS key and signing algorithm.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Verify
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Verify" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<VerifyResponse> verify(VerifyRequest verifyRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Verifies a digital signature that was generated by the <a>Sign</a> operation.
+     * </p>
+     * <p/>
+     * <p>
+     * Verification confirms that an authorized user signed the message with the specified KMS key and signing
+     * algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the
+     * <code>SignatureValid</code> field in the response is <code>True</code>. If the signature verification fails, the
+     * <code>Verify</code> operation fails with an <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * <p>
+     * A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by
+     * using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To use the <code>Verify</code> operation, specify the same asymmetric KMS key, message, and signing algorithm
+     * that were used to produce the signature. The message type does not need to be the same as the one used for
+     * signing, but it must indicate whether the value of the <code>Message</code> parameter should be hashed as part of
+     * the verification process.
+     * </p>
+     * <p>
+     * You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the
+     * <a>GetPublicKey</a> operation to download the public key in the asymmetric KMS key and then use the public key to
+     * verify the signature outside of KMS. The advantage of using the <code>Verify</code> operation is that it is
+     * performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is
+     * logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key
+     * to verify signatures.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Sign</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link VerifyRequest.Builder} avoiding the need to create
+     * one manually via {@link VerifyRequest#builder()}
+     * </p>
+     *
+     * @param verifyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.VerifyRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the Verify operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>DependencyTimeoutException The system timed out while trying to fulfill the request. You can retry
+     *         the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>KmsInvalidSignatureException The request was rejected because the signature verification failed.
+     *         Signature verification fails when it cannot confirm that signature was produced by signing the specified
+     *         message with the specified KMS key and signing algorithm.</li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.Verify
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Verify" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<VerifyResponse> verify(Consumer<VerifyRequest.Builder> verifyRequest) {
+        return verify(VerifyRequest.builder().applyMutation(verifyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC
+     * algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using the message, HMAC KMS key, and MAC
+     * algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are
+     * identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed
+     * since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.
+     * </p>
+     * <p>
+     * HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in <a
+     * href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * This operation is part of KMS support for HMAC KMS keys. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GenerateMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyMacRequest
+     * @return A Java Future containing the result of the VerifyMac operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidMacException The request was rejected because the HMAC verification failed. HMAC
+     *         verification fails when the HMAC computed by using the specified message, HMAC KMS key, and MAC algorithm
+     *         does not match the HMAC specified in the request.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.VerifyMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<VerifyMacResponse> verifyMac(VerifyMacRequest verifyMacRequest) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC
+     * algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using the message, HMAC KMS key, and MAC
+     * algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are
+     * identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed
+     * since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.
+     * </p>
+     * <p>
+     * HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in <a
+     * href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * This operation is part of KMS support for HMAC KMS keys. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GenerateMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link VerifyMacRequest.Builder} avoiding the need to
+     * create one manually via {@link VerifyMacRequest#builder()}
+     * </p>
+     *
+     * @param verifyMacRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.VerifyMacRequest.Builder} to create a request.
+     * @return A Java Future containing the result of the VerifyMac operation returned by the service.<br/>
+     *         The CompletableFuture returned by this method can be completed exceptionally with the following
+     *         exceptions.
+     *         <ul>
+     *         <li>NotFoundException The request was rejected because the specified entity or resource could not be
+     *         found.</li>
+     *         <li>DisabledException The request was rejected because the specified KMS key is not enabled.</li>
+     *         <li>KeyUnavailableException The request was rejected because the specified KMS key was not available. You
+     *         can retry the request.</li>
+     *         <li>InvalidKeyUsageException The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.</li>
+     *         <li>InvalidGrantTokenException The request was rejected because the specified grant token is not valid.</li>
+     *         <li>KmsInternalException The request was rejected because an internal exception occurred. The request can
+     *         be retried.</li>
+     *         <li>KmsInvalidMacException The request was rejected because the HMAC verification failed. HMAC
+     *         verification fails when the HMAC computed by using the specified message, HMAC KMS key, and MAC algorithm
+     *         does not match the HMAC specified in the request.</li>
+     *         <li>KmsInvalidStateException The request was rejected because the state of the specified resource is not
+     *         valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li></li>
+     *         <li>DryRunOperationException The request was rejected because the DryRun parameter was specified.</li>
+     *         <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
+     *         Can be used for catch all scenarios.</li>
+     *         <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get
+     *         credentials, etc.</li>
+     *         <li>KmsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
+     *         of this type.</li>
+     *         </ul>
+     * @sample KmsAsyncClient.VerifyMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CompletableFuture<VerifyMacResponse> verifyMac(Consumer<VerifyMacRequest.Builder> verifyMacRequest) {
+        return verifyMac(VerifyMacRequest.builder().applyMutation(verifyMacRequest).build());
+    }
+
+    @Override
+    default KmsServiceClientConfiguration serviceClientConfiguration() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * Create a {@link KmsAsyncClient} with the region loaded from the
+     * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
+     * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
+     */
+    static KmsAsyncClient create() {
+        return builder().build();
+    }
+
+    /**
+     * Create a builder that can be used to configure and create a {@link KmsAsyncClient}.
+     */
+    static KmsAsyncClientBuilder builder() {
+        return new DefaultKmsAsyncClientBuilder();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsAsyncClientBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsAsyncClientBuilder.java
new file mode 100644
index 0000000..3aa81b3
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsAsyncClientBuilder.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder;
+
+/**
+ * A builder for creating an instance of {@link KmsAsyncClient}. This can be created with the static
+ * {@link KmsAsyncClient#builder()} method.
+ */
+@Generated("software.amazon.awssdk:codegen")
+public interface KmsAsyncClientBuilder extends AwsAsyncClientBuilder<KmsAsyncClientBuilder, KmsAsyncClient>,
+        KmsBaseClientBuilder<KmsAsyncClientBuilder, KmsAsyncClient> {
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsBaseClientBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsBaseClientBuilder.java
new file mode 100644
index 0000000..5c18e56
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsBaseClientBuilder.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.awscore.client.builder.AwsClientBuilder;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeProvider;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointProvider;
+
+/**
+ * This includes configuration specific to KMS that is supported by both {@link KmsClientBuilder} and
+ * {@link KmsAsyncClientBuilder}.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public interface KmsBaseClientBuilder<B extends KmsBaseClientBuilder<B, C>, C> extends AwsClientBuilder<B, C> {
+    /**
+     * Set the {@link KmsEndpointProvider} implementation that will be used by the client to determine the endpoint for
+     * each request. This is optional; if none is provided a default implementation will be used the SDK.
+     */
+    default B endpointProvider(KmsEndpointProvider endpointProvider) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * Set the {@link KmsAuthSchemeProvider} implementation that will be used by the client to resolve the auth scheme
+     * for each request. This is optional; if none is provided a default implementation will be used the SDK.
+     */
+    default B authSchemeProvider(KmsAuthSchemeProvider authSchemeProvider) {
+        throw new UnsupportedOperationException();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsClient.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsClient.java
new file mode 100644
index 0000000..936ece6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsClient.java
@@ -0,0 +1,18292 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import java.util.function.Consumer;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.annotations.ThreadSafe;
+import software.amazon.awssdk.awscore.AwsClient;
+import software.amazon.awssdk.awscore.exception.AwsServiceException;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.regions.ServiceMetadata;
+import software.amazon.awssdk.services.kms.model.AlreadyExistsException;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterInUseException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotActiveException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotFoundException;
+import software.amazon.awssdk.services.kms.model.CloudHsmClusterNotRelatedException;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateAliasRequest;
+import software.amazon.awssdk.services.kms.model.CreateAliasResponse;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.CreateGrantRequest;
+import software.amazon.awssdk.services.kms.model.CreateGrantResponse;
+import software.amazon.awssdk.services.kms.model.CreateKeyRequest;
+import software.amazon.awssdk.services.kms.model.CreateKeyResponse;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreHasCmKsException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreInvalidStateException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreNameInUseException;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoreNotFoundException;
+import software.amazon.awssdk.services.kms.model.DecryptRequest;
+import software.amazon.awssdk.services.kms.model.DecryptResponse;
+import software.amazon.awssdk.services.kms.model.DeleteAliasRequest;
+import software.amazon.awssdk.services.kms.model.DeleteAliasResponse;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.DependencyTimeoutException;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse;
+import software.amazon.awssdk.services.kms.model.DescribeKeyRequest;
+import software.amazon.awssdk.services.kms.model.DescribeKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyResponse;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.DisabledException;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.DryRunOperationException;
+import software.amazon.awssdk.services.kms.model.EnableKeyRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyResponse;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationResponse;
+import software.amazon.awssdk.services.kms.model.EncryptRequest;
+import software.amazon.awssdk.services.kms.model.EncryptResponse;
+import software.amazon.awssdk.services.kms.model.ExpiredImportTokenException;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyResponse;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextResponse;
+import software.amazon.awssdk.services.kms.model.GenerateMacRequest;
+import software.amazon.awssdk.services.kms.model.GenerateMacResponse;
+import software.amazon.awssdk.services.kms.model.GenerateRandomRequest;
+import software.amazon.awssdk.services.kms.model.GenerateRandomResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusResponse;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportRequest;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportResponse;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyRequest;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyResponse;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialResponse;
+import software.amazon.awssdk.services.kms.model.IncorrectKeyException;
+import software.amazon.awssdk.services.kms.model.IncorrectKeyMaterialException;
+import software.amazon.awssdk.services.kms.model.IncorrectTrustAnchorException;
+import software.amazon.awssdk.services.kms.model.InvalidAliasNameException;
+import software.amazon.awssdk.services.kms.model.InvalidArnException;
+import software.amazon.awssdk.services.kms.model.InvalidCiphertextException;
+import software.amazon.awssdk.services.kms.model.InvalidGrantIdException;
+import software.amazon.awssdk.services.kms.model.InvalidGrantTokenException;
+import software.amazon.awssdk.services.kms.model.InvalidImportTokenException;
+import software.amazon.awssdk.services.kms.model.InvalidKeyUsageException;
+import software.amazon.awssdk.services.kms.model.InvalidMarkerException;
+import software.amazon.awssdk.services.kms.model.KeyUnavailableException;
+import software.amazon.awssdk.services.kms.model.KmsException;
+import software.amazon.awssdk.services.kms.model.KmsInternalException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidMacException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidSignatureException;
+import software.amazon.awssdk.services.kms.model.KmsInvalidStateException;
+import software.amazon.awssdk.services.kms.model.LimitExceededException;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListGrantsResponse;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.services.kms.model.ListKeysResponse;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse;
+import software.amazon.awssdk.services.kms.model.MalformedPolicyDocumentException;
+import software.amazon.awssdk.services.kms.model.NotFoundException;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyResponse;
+import software.amazon.awssdk.services.kms.model.ReEncryptRequest;
+import software.amazon.awssdk.services.kms.model.ReEncryptResponse;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyRequest;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyResponse;
+import software.amazon.awssdk.services.kms.model.RetireGrantRequest;
+import software.amazon.awssdk.services.kms.model.RetireGrantResponse;
+import software.amazon.awssdk.services.kms.model.RevokeGrantRequest;
+import software.amazon.awssdk.services.kms.model.RevokeGrantResponse;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionResponse;
+import software.amazon.awssdk.services.kms.model.SignRequest;
+import software.amazon.awssdk.services.kms.model.SignResponse;
+import software.amazon.awssdk.services.kms.model.TagException;
+import software.amazon.awssdk.services.kms.model.TagResourceRequest;
+import software.amazon.awssdk.services.kms.model.TagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UntagResourceRequest;
+import software.amazon.awssdk.services.kms.model.UntagResourceResponse;
+import software.amazon.awssdk.services.kms.model.UpdateAliasRequest;
+import software.amazon.awssdk.services.kms.model.UpdateAliasResponse;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreResponse;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionResponse;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionResponse;
+import software.amazon.awssdk.services.kms.model.VerifyMacRequest;
+import software.amazon.awssdk.services.kms.model.VerifyMacResponse;
+import software.amazon.awssdk.services.kms.model.VerifyRequest;
+import software.amazon.awssdk.services.kms.model.VerifyResponse;
+import software.amazon.awssdk.services.kms.model.XksKeyAlreadyInUseException;
+import software.amazon.awssdk.services.kms.model.XksKeyInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksKeyNotFoundException;
+import software.amazon.awssdk.services.kms.model.XksProxyIncorrectAuthenticationCredentialException;
+import software.amazon.awssdk.services.kms.model.XksProxyInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksProxyInvalidResponseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriEndpointInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyUriUnreachableException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceInUseException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceInvalidConfigurationException;
+import software.amazon.awssdk.services.kms.model.XksProxyVpcEndpointServiceNotFoundException;
+import software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable;
+import software.amazon.awssdk.services.kms.paginators.ListAliasesIterable;
+import software.amazon.awssdk.services.kms.paginators.ListGrantsIterable;
+import software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable;
+import software.amazon.awssdk.services.kms.paginators.ListKeysIterable;
+import software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable;
+import software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable;
+
+/**
+ * Service client for accessing KMS. This can be created using the static {@link #builder()} method.
+ *
+ * <fullname>Key Management Service</fullname>
+ * <p>
+ * Key Management Service (KMS) is an encryption and key management web service. This guide describes the KMS operations
+ * that you can call programmatically. For general information about KMS, see the <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/"> <i>Key Management Service Developer Guide</i> </a>.
+ * </p>
+ * <note>
+ * <p>
+ * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept has
+ * not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+ * </p>
+ * <p>
+ * Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and
+ * platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a convenient way to create programmatic access
+ * to KMS and other Amazon Web Services services. For example, the SDKs take care of tasks such as signing requests (see
+ * below), managing errors, and retrying requests automatically. For more information about the Amazon Web Services
+ * SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web
+ * Services</a>.
+ * </p>
+ * </note>
+ * <p>
+ * We recommend that you use the Amazon Web Services SDKs to make programmatic API calls to KMS.
+ * </p>
+ * <p>
+ * If you need to use FIPS 140-2 validated cryptographic modules when communicating with Amazon Web Services, use the
+ * FIPS endpoint in your preferred Amazon Web Services Region. For more information about the available FIPS endpoints,
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">Service endpoints</a> in the Key
+ * Management Service topic of the <i>Amazon Web Services General Reference</i>.
+ * </p>
+ * <p>
+ * All KMS API calls must be signed and be transmitted using Transport Layer Security (TLS). KMS recommends you always
+ * use the latest supported TLS version. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such
+ * as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as
+ * Java 7 and later support these modes.
+ * </p>
+ * <p>
+ * <b>Signing Requests</b>
+ * </p>
+ * <p>
+ * Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use
+ * your Amazon Web Services account root access key ID and secret access key for everyday work. You can use the access
+ * key ID and secret access key for an IAM user or you can use the Security Token Service (STS) to generate temporary
+ * security credentials and use those to sign requests.
+ * </p>
+ * <p>
+ * All KMS requests must be signed with <a
+ * href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4</a>.
+ * </p>
+ * <p>
+ * <b>Logging API Requests</b>
+ * </p>
+ * <p>
+ * KMS supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web
+ * Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by
+ * CloudTrail, you can determine what requests were made to KMS, who made the request, when it was made, and so on. To
+ * learn more about CloudTrail, including how to turn it on and find your log files, see the <a
+ * href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.
+ * </p>
+ * <p>
+ * <b>Additional Resources</b>
+ * </p>
+ * <p>
+ * For more information about credentials and request signing, see the following:
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html">Amazon Web Services Security
+ * Credentials</a> - This topic provides general information about the types of credentials used to access Amazon Web
+ * Services.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security
+ * Credentials</a> - This section of the <i>IAM User Guide</i> describes how to create and use temporary security
+ * credentials.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 Signing
+ * Process</a> - This set of topics walks you through the process of signing a request using an access key ID and a
+ * secret access key.
+ * </p>
+ * </li>
+ * </ul>
+ * <p>
+ * <b>Commonly Used API Operations</b>
+ * </p>
+ * <p>
+ * Of the API operations discussed in this guide, the following will prove the most useful for most applications. You
+ * will likely perform operations other than these, such as creating keys and assigning policies, by using the console.
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * <a>Encrypt</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>Decrypt</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>GenerateDataKey</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>GenerateDataKeyWithoutPlaintext</a>
+ * </p>
+ * </li>
+ * </ul>
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+@ThreadSafe
+public interface KmsClient extends AwsClient {
+    String SERVICE_NAME = "kms";
+
+    /**
+     * Value for looking up the service's metadata from the
+     * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
+     */
+    String SERVICE_METADATA_ID = "kms";
+
+    /**
+     * <p>
+     * Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is
+     * <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>.
+     * </p>
+     * <p>
+     * For more information about scheduling and canceling deletion of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CancelKeyDeletion</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param cancelKeyDeletionRequest
+     * @return Result of the CancelKeyDeletion operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CancelKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CancelKeyDeletionResponse cancelKeyDeletion(CancelKeyDeletionRequest cancelKeyDeletionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is
+     * <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>.
+     * </p>
+     * <p>
+     * For more information about scheduling and canceling deletion of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CancelKeyDeletion</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CancelKeyDeletionRequest.Builder} avoiding the need
+     * to create one manually via {@link CancelKeyDeletionRequest#builder()}
+     * </p>
+     *
+     * @param cancelKeyDeletionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest.Builder} to create a request.
+     * @return Result of the CancelKeyDeletion operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CancelKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CancelKeyDeletionResponse cancelKeyDeletion(Consumer<CancelKeyDeletionRequest.Builder> cancelKeyDeletionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return cancelKeyDeletion(CancelKeyDeletionRequest.builder().applyMutation(cancelKeyDeletionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Connects or reconnects a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * to its backing key store. For an CloudHSM key store, <code>ConnectCustomKeyStore</code> connects the key store to
+     * its associated CloudHSM cluster. For an external key store, <code>ConnectCustomKeyStore</code> connects the key
+     * store to the external key store proxy that communicates with your external key manager.
+     * </p>
+     * <p>
+     * The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it
+     * contains. You can disconnect and reconnect a custom key store at any time.
+     * </p>
+     * <p>
+     * The connection process for a custom key store can take an extended amount of time to complete. This operation
+     * starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly
+     * returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that
+     * the custom key store is connected. To get the connection state of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The <code>ConnectCustomKeyStore</code> operation might fail for various reasons. To find the reason, use the
+     * <a>DescribeCustomKeyStores</a> operation and see the <code>ConnectionErrorCode</code> in the response. For help
+     * interpreting the <code>ConnectionErrorCode</code>, see <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * To fix the failure, use the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store, correct
+     * the error, use the <a>UpdateCustomKeyStore</a> operation if necessary, and then use
+     * <code>ConnectCustomKeyStore</code> again.
+     * </p>
+     * <p>
+     * <b>CloudHSM key store</b>
+     * </p>
+     * <p>
+     * During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with
+     * the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM
+     * client as the <code>kmsuser</code> CU, and rotates its password.
+     * </p>
+     * <p>
+     * To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the
+     * number of active HSMs in a cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation. To add HSMs to the cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation. Also,
+     * the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user</a> (CU) must not be logged into the cluster. This prevents KMS from using this
+     * account to log in.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting a CloudHSM key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>External key store</b>
+     * </p>
+     * <p>
+     * When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to
+     * communicate with your external key manager by sending a request via the external key store proxy.
+     * </p>
+     * <p>
+     * When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the
+     * networking elements that it needs to communicate with your external key manager via the external key store proxy.
+     * This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic
+     * between KMS and the VPC endpoint service.
+     * </p>
+     * <p>
+     * To connect an external key store, KMS must be able to connect to the external key store proxy, the external key
+     * store proxy must be able to communicate with your external key manager, and the external key manager must be
+     * available for cryptographic operations.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting an external key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ConnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param connectCustomKeyStoreRequest
+     * @return Result of the ConnectCustomKeyStore operation returned by the service.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ConnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ConnectCustomKeyStoreResponse connectCustomKeyStore(ConnectCustomKeyStoreRequest connectCustomKeyStoreRequest)
+            throws CloudHsmClusterNotActiveException, CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException,
+            KmsInternalException, CloudHsmClusterInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Connects or reconnects a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * to its backing key store. For an CloudHSM key store, <code>ConnectCustomKeyStore</code> connects the key store to
+     * its associated CloudHSM cluster. For an external key store, <code>ConnectCustomKeyStore</code> connects the key
+     * store to the external key store proxy that communicates with your external key manager.
+     * </p>
+     * <p>
+     * The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it
+     * contains. You can disconnect and reconnect a custom key store at any time.
+     * </p>
+     * <p>
+     * The connection process for a custom key store can take an extended amount of time to complete. This operation
+     * starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly
+     * returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that
+     * the custom key store is connected. To get the connection state of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The <code>ConnectCustomKeyStore</code> operation might fail for various reasons. To find the reason, use the
+     * <a>DescribeCustomKeyStores</a> operation and see the <code>ConnectionErrorCode</code> in the response. For help
+     * interpreting the <code>ConnectionErrorCode</code>, see <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * To fix the failure, use the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store, correct
+     * the error, use the <a>UpdateCustomKeyStore</a> operation if necessary, and then use
+     * <code>ConnectCustomKeyStore</code> again.
+     * </p>
+     * <p>
+     * <b>CloudHSM key store</b>
+     * </p>
+     * <p>
+     * During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with
+     * the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM
+     * client as the <code>kmsuser</code> CU, and rotates its password.
+     * </p>
+     * <p>
+     * To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the
+     * number of active HSMs in a cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation. To add HSMs to the cluster, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation. Also,
+     * the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user</a> (CU) must not be logged into the cluster. This prevents KMS from using this
+     * account to log in.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting a CloudHSM key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>External key store</b>
+     * </p>
+     * <p>
+     * When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to
+     * communicate with your external key manager by sending a request via the external key store proxy.
+     * </p>
+     * <p>
+     * When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the
+     * networking elements that it needs to communicate with your external key manager via the external key store proxy.
+     * This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic
+     * between KMS and the VPC endpoint service.
+     * </p>
+     * <p>
+     * To connect an external key store, KMS must be able to connect to the external key store proxy, the external key
+     * store proxy must be able to communicate with your external key manager, and the external key manager must be
+     * available for cryptographic operations.
+     * </p>
+     * <p>
+     * If you are having trouble connecting or disconnecting an external key store, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ConnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ConnectCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link ConnectCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param connectCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest.Builder} to create a
+     *        request.
+     * @return Result of the ConnectCustomKeyStore operation returned by the service.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ConnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ConnectCustomKeyStoreResponse connectCustomKeyStore(
+            Consumer<ConnectCustomKeyStoreRequest.Builder> connectCustomKeyStoreRequest)
+            throws CloudHsmClusterNotActiveException, CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException,
+            KmsInternalException, CloudHsmClusterInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return connectCustomKeyStore(ConnectCustomKeyStoreRequest.builder().applyMutation(connectCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a friendly name for a KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * You can use an alias to identify a KMS key in the KMS console, in the <a>DescribeKey</a> operation and in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>, such as <a>Encrypt</a> and <a>GenerateDataKey</a>. You can also change the KMS key that's
+     * associated with the alias (<a>UpdateAlias</a>) or delete the alias (<a>DeleteAlias</a>) at any time. These
+     * operations don't affect the underlying KMS key.
+     * </p>
+     * <p>
+     * You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is
+     * associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required.
+     * You can't create an alias without a KMS key.
+     * </p>
+     * <p>
+     * The alias must be unique in the account and Region, but you can have aliases with the same name in different
+     * Regions. For detailed information about aliases, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">Using aliases</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return a response. To get the alias that you created, use the <a>ListAliases</a>
+     * operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createAliasRequest
+     * @return Result of the CreateAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws AlreadyExistsException
+     *         The request was rejected because it attempted to create a resource that already exists.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidAliasNameException
+     *         The request was rejected because the specified alias name is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateAliasResponse createAlias(CreateAliasRequest createAliasRequest) throws DependencyTimeoutException,
+            AlreadyExistsException, NotFoundException, InvalidAliasNameException, KmsInternalException, LimitExceededException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a friendly name for a KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * You can use an alias to identify a KMS key in the KMS console, in the <a>DescribeKey</a> operation and in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>, such as <a>Encrypt</a> and <a>GenerateDataKey</a>. You can also change the KMS key that's
+     * associated with the alias (<a>UpdateAlias</a>) or delete the alias (<a>DeleteAlias</a>) at any time. These
+     * operations don't affect the underlying KMS key.
+     * </p>
+     * <p>
+     * You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is
+     * associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required.
+     * You can't create an alias without a KMS key.
+     * </p>
+     * <p>
+     * The alias must be unique in the account and Region, but you can have aliases with the same name in different
+     * Regions. For detailed information about aliases, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">Using aliases</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return a response. To get the alias that you created, use the <a>ListAliases</a>
+     * operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateAliasRequest.Builder} avoiding the need to
+     * create one manually via {@link CreateAliasRequest#builder()}
+     * </p>
+     *
+     * @param createAliasRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateAliasRequest.Builder} to create a request.
+     * @return Result of the CreateAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws AlreadyExistsException
+     *         The request was rejected because it attempted to create a resource that already exists.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidAliasNameException
+     *         The request was rejected because the specified alias name is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateAliasResponse createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest)
+            throws DependencyTimeoutException, AlreadyExistsException, NotFoundException, InvalidAliasNameException,
+            KmsInternalException, LimitExceededException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        return createAlias(CreateAliasRequest.builder().applyMutation(createAliasRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a> backed by a key store that you own and manage. When you use a KMS key in a custom key store for a
+     * cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS
+     * supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM
+     * cluster</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external
+     * key stores</a> backed by an external key store proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * Before you create the custom key store, the required elements must be in place and operational. We recommend that
+     * you use the test tools that KMS provides to verify the configuration your external key store proxy. For details
+     * about the required elements and verification tests, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+     * prerequisites (for CloudHSM key stores)</a> or <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">Assemble
+     * the prerequisites (for external key stores)</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To create a custom key store, use the following parameters.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * To create an CloudHSM key store, specify the <code>CustomKeyStoreName</code>, <code>CloudHsmClusterId</code>,
+     * <code>KeyStorePassword</code>, and <code>TrustAnchorCertificate</code>. The <code>CustomKeyStoreType</code>
+     * parameter is optional for CloudHSM key stores. If you include it, set it to the default value,
+     * <code>AWS_CLOUDHSM</code>. For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To create an external key store, specify the <code>CustomKeyStoreName</code> and a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>. Also, specify values for
+     * <code>XksProxyConnectivity</code>, <code>XksProxyAuthenticationCredential</code>,
+     * <code>XksProxyUriEndpoint</code>, and <code>XksProxyUriPath</code>. If your <code>XksProxyConnectivity</code>
+     * value is <code>VPC_ENDPOINT_SERVICE</code>, specify the <code>XksProxyVpcEndpointServiceName</code> parameter.
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for creating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot use a proxy configuration with the <code>CreateCustomKeyStore</code> operation.
+     * However, you can use the values in the file to help you determine the correct values for the
+     * <code>CreateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your
+     * new custom key store, you need to use the <a>ConnectCustomKeyStore</a> operation to connect a new CloudHSM key
+     * store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your
+     * external key manager. Even if you are not going to use your custom key store immediately, you might want to
+     * connect it to verify that all settings are correct and then disconnect it until you are ready to use it.
+     * </p>
+     * <p>
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateCustomKeyStore</a> (IAM policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createCustomKeyStoreRequest
+     * @return Result of the CreateCustomKeyStore operation returned by the service.
+     * @throws CloudHsmClusterInUseException
+     *         The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM
+     *         key store in the account, or it shares a backup history with an CloudHSM key store in the account. Each
+     *         CloudHSM key store in the account must be associated with a different CloudHSM cluster.</p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     * @throws CustomKeyStoreNameInUseException
+     *         The request was rejected because the specified custom key store name is already assigned to another
+     *         custom key store in the account. Try again with a custom key store name that is unique in the account.
+     * @throws CloudHsmClusterNotFoundException
+     *         The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         Retry the request with a different cluster ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws IncorrectTrustAnchorException
+     *         The request was rejected because the trust anchor certificate in the request to create an CloudHSM key
+     *         store is not the trust anchor certificate for the specified CloudHSM cluster.
+     *         </p>
+     *         <p>
+     *         When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the
+     *         <code>customerCA.crt</code> file.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws XksProxyUriInUseException
+     *         The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+     *         <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. Each external key store in a Region must use a unique external key store proxy API
+     *         address.
+     * @throws XksProxyUriEndpointInUseException
+     *         The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. To identify the cause, see the error message that
+     *         accompanies the exception.
+     * @throws XksProxyUriUnreachableException
+     *         KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you
+     *         create the external key store or update its settings.
+     *         </p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.
+     * @throws XksProxyIncorrectAuthenticationCredentialException
+     *         The request was rejected because the proxy credentials failed to authenticate to the specified external
+     *         key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid
+     *         credentials. This can indicate an error in the credentials or in the identification of the external key
+     *         store proxy.
+     * @throws XksProxyVpcEndpointServiceInUseException
+     *         The request was rejected because the specified Amazon VPC endpoint service is already associated with
+     *         another external key store in this Amazon Web Services Region. Each external key store in a Region must
+     *         use a different Amazon VPC endpoint service.
+     * @throws XksProxyVpcEndpointServiceNotFoundException
+     *         The request was rejected because KMS could not find the specified VPC endpoint service. Use
+     *         <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also,
+     *         confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service
+     *         principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * @throws XksProxyVpcEndpointServiceInvalidConfigurationException
+     *         The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the
+     *         requirements for an external key store. To identify the cause, see the error message that accompanies the
+     *         exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+     * @throws XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.
+     * @throws XksProxyInvalidConfigurationException
+     *         The request was rejected because the external key store proxy is not configured correctly. To identify
+     *         the cause, see the error message that accompanies the exception.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateCustomKeyStoreResponse createCustomKeyStore(CreateCustomKeyStoreRequest createCustomKeyStoreRequest)
+            throws CloudHsmClusterInUseException, CustomKeyStoreNameInUseException, CloudHsmClusterNotFoundException,
+            KmsInternalException, CloudHsmClusterNotActiveException, IncorrectTrustAnchorException,
+            CloudHsmClusterInvalidConfigurationException, LimitExceededException, XksProxyUriInUseException,
+            XksProxyUriEndpointInUseException, XksProxyUriUnreachableException,
+            XksProxyIncorrectAuthenticationCredentialException, XksProxyVpcEndpointServiceInUseException,
+            XksProxyVpcEndpointServiceNotFoundException, XksProxyVpcEndpointServiceInvalidConfigurationException,
+            XksProxyInvalidResponseException, XksProxyInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a> backed by a key store that you own and manage. When you use a KMS key in a custom key store for a
+     * cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS
+     * supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html">CloudHSM
+     * cluster</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external
+     * key stores</a> backed by an external key store proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * Before you create the custom key store, the required elements must be in place and operational. We recommend that
+     * you use the test tools that KMS provides to verify the configuration your external key store proxy. For details
+     * about the required elements and verification tests, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+     * prerequisites (for CloudHSM key stores)</a> or <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">Assemble
+     * the prerequisites (for external key stores)</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To create a custom key store, use the following parameters.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * To create an CloudHSM key store, specify the <code>CustomKeyStoreName</code>, <code>CloudHsmClusterId</code>,
+     * <code>KeyStorePassword</code>, and <code>TrustAnchorCertificate</code>. The <code>CustomKeyStoreType</code>
+     * parameter is optional for CloudHSM key stores. If you include it, set it to the default value,
+     * <code>AWS_CLOUDHSM</code>. For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting an CloudHSM key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To create an external key store, specify the <code>CustomKeyStoreName</code> and a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>. Also, specify values for
+     * <code>XksProxyConnectivity</code>, <code>XksProxyAuthenticationCredential</code>,
+     * <code>XksProxyUriEndpoint</code>, and <code>XksProxyUriPath</code>. If your <code>XksProxyConnectivity</code>
+     * value is <code>VPC_ENDPOINT_SERVICE</code>, specify the <code>XksProxyVpcEndpointServiceName</code> parameter.
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting an external
+     * key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for creating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot use a proxy configuration with the <code>CreateCustomKeyStore</code> operation.
+     * However, you can use the values in the file to help you determine the correct values for the
+     * <code>CreateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your
+     * new custom key store, you need to use the <a>ConnectCustomKeyStore</a> operation to connect a new CloudHSM key
+     * store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your
+     * external key manager. Even if you are not going to use your custom key store immediately, you might want to
+     * connect it to verify that all settings are correct and then disconnect it until you are ready to use it.
+     * </p>
+     * <p>
+     * For help with failures, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateCustomKeyStore</a> (IAM policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link CreateCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param createCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest.Builder} to create a request.
+     * @return Result of the CreateCustomKeyStore operation returned by the service.
+     * @throws CloudHsmClusterInUseException
+     *         The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM
+     *         key store in the account, or it shares a backup history with an CloudHSM key store in the account. Each
+     *         CloudHSM key store in the account must be associated with a different CloudHSM cluster.</p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     * @throws CustomKeyStoreNameInUseException
+     *         The request was rejected because the specified custom key store name is already assigned to another
+     *         custom key store in the account. Try again with a custom key store name that is unique in the account.
+     * @throws CloudHsmClusterNotFoundException
+     *         The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         Retry the request with a different cluster ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws IncorrectTrustAnchorException
+     *         The request was rejected because the trust anchor certificate in the request to create an CloudHSM key
+     *         store is not the trust anchor certificate for the specified CloudHSM cluster.
+     *         </p>
+     *         <p>
+     *         When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the
+     *         <code>customerCA.crt</code> file.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws XksProxyUriInUseException
+     *         The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+     *         <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. Each external key store in a Region must use a unique external key store proxy API
+     *         address.
+     * @throws XksProxyUriEndpointInUseException
+     *         The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. To identify the cause, see the error message that
+     *         accompanies the exception.
+     * @throws XksProxyUriUnreachableException
+     *         KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you
+     *         create the external key store or update its settings.
+     *         </p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.
+     * @throws XksProxyIncorrectAuthenticationCredentialException
+     *         The request was rejected because the proxy credentials failed to authenticate to the specified external
+     *         key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid
+     *         credentials. This can indicate an error in the credentials or in the identification of the external key
+     *         store proxy.
+     * @throws XksProxyVpcEndpointServiceInUseException
+     *         The request was rejected because the specified Amazon VPC endpoint service is already associated with
+     *         another external key store in this Amazon Web Services Region. Each external key store in a Region must
+     *         use a different Amazon VPC endpoint service.
+     * @throws XksProxyVpcEndpointServiceNotFoundException
+     *         The request was rejected because KMS could not find the specified VPC endpoint service. Use
+     *         <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also,
+     *         confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service
+     *         principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * @throws XksProxyVpcEndpointServiceInvalidConfigurationException
+     *         The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the
+     *         requirements for an external key store. To identify the cause, see the error message that accompanies the
+     *         exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+     * @throws XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.
+     * @throws XksProxyInvalidConfigurationException
+     *         The request was rejected because the external key store proxy is not configured correctly. To identify
+     *         the cause, see the error message that accompanies the exception.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateCustomKeyStoreResponse createCustomKeyStore(
+            Consumer<CreateCustomKeyStoreRequest.Builder> createCustomKeyStoreRequest) throws CloudHsmClusterInUseException,
+            CustomKeyStoreNameInUseException, CloudHsmClusterNotFoundException, KmsInternalException,
+            CloudHsmClusterNotActiveException, IncorrectTrustAnchorException, CloudHsmClusterInvalidConfigurationException,
+            LimitExceededException, XksProxyUriInUseException, XksProxyUriEndpointInUseException,
+            XksProxyUriUnreachableException, XksProxyIncorrectAuthenticationCredentialException,
+            XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceNotFoundException,
+            XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyInvalidResponseException,
+            XksProxyInvalidConfigurationException, AwsServiceException, SdkClientException, KmsException {
+        return createCustomKeyStore(CreateCustomKeyStoreRequest.builder().applyMutation(createCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Adds a grant to a KMS key.
+     * </p>
+     * <p>
+     * A <i>grant</i> is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic
+     * operations. It also can allow them to view a KMS key (<a>DescribeKey</a>) and create and manage grants. When
+     * authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often
+     * used for temporary permissions because you can create one, use its permissions, and delete it without changing
+     * your key policies or IAM policies.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * The <code>CreateGrant</code> operation returns a <code>GrantToken</code> and a <code>GrantId</code>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. Once the grant has
+     * achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the
+     * grant.
+     * </p>
+     * <p>
+     * However, to use the permissions in the grant immediately, use the <code>GrantToken</code> that
+     * <code>CreateGrant</code> returns. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>CreateGrant</code> operation also returns a <code>GrantId</code>. You can use the <code>GrantId</code>
+     * and a key identifier to identify the grant in the <a>RetireGrant</a> and <a>RevokeGrant</a> operations. To find
+     * the grant ID, use the <a>ListGrants</a> or <a>ListRetirableGrants</a> operations.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateGrant</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createGrantRequest
+     * @return Result of the CreateGrant operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateGrantResponse createGrant(CreateGrantRequest createGrantRequest) throws NotFoundException, DisabledException,
+            DependencyTimeoutException, InvalidArnException, KmsInternalException, InvalidGrantTokenException,
+            LimitExceededException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Adds a grant to a KMS key.
+     * </p>
+     * <p>
+     * A <i>grant</i> is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic
+     * operations. It also can allow them to view a KMS key (<a>DescribeKey</a>) and create and manage grants. When
+     * authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often
+     * used for temporary permissions because you can create one, use its permissions, and delete it without changing
+     * your key policies or IAM policies.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * The <code>CreateGrant</code> operation returns a <code>GrantToken</code> and a <code>GrantId</code>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. Once the grant has
+     * achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the
+     * grant.
+     * </p>
+     * <p>
+     * However, to use the permissions in the grant immediately, use the <code>GrantToken</code> that
+     * <code>CreateGrant</code> returns. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>CreateGrant</code> operation also returns a <code>GrantId</code>. You can use the <code>GrantId</code>
+     * and a key identifier to identify the grant in the <a>RetireGrant</a> and <a>RevokeGrant</a> operations. To find
+     * the grant ID, use the <a>ListGrants</a> or <a>ListRetirableGrants</a> operations.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:CreateGrant</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateGrantRequest.Builder} avoiding the need to
+     * create one manually via {@link CreateGrantRequest#builder()}
+     * </p>
+     *
+     * @param createGrantRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateGrantRequest.Builder} to create a request.
+     * @return Result of the CreateGrant operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateGrantResponse createGrant(Consumer<CreateGrantRequest.Builder> createGrantRequest) throws NotFoundException,
+            DisabledException, DependencyTimeoutException, InvalidArnException, KmsInternalException, InvalidGrantTokenException,
+            LimitExceededException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return createGrant(CreateGrantRequest.builder().applyMutation(createGrantRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param createKeyRequest
+     * @return Result of the CreateKey operation returned by the service.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksKeyInvalidConfigurationException
+     *         The request was rejected because the external key specified by the <code>XksKeyId</code> parameter did
+     *         not meet the configuration requirements for an external key store.
+     *         </p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     * @throws XksKeyAlreadyInUseException
+     *         The request was rejected because the (<code>XksKeyId</code>) is already associated with another KMS key
+     *         in this external key store. Each KMS key in an external key store must be associated with a different
+     *         external key.
+     * @throws XksKeyNotFoundException
+     *         The request was rejected because the external key store proxy could not find the external key. This
+     *         exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't identify a key in the
+     *         external key manager associated with the external key proxy.
+     *         </p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateKeyResponse createKey(CreateKeyRequest createKeyRequest) throws MalformedPolicyDocumentException,
+            DependencyTimeoutException, InvalidArnException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, KmsInternalException,
+            LimitExceededException, TagException, CustomKeyStoreNotFoundException, CustomKeyStoreInvalidStateException,
+            CloudHsmClusterInvalidConfigurationException, XksKeyInvalidConfigurationException, XksKeyAlreadyInUseException,
+            XksKeyNotFoundException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link CreateKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link CreateKeyRequest#builder()}
+     * </p>
+     *
+     * @param createKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.CreateKeyRequest.Builder} to create a request.
+     * @return Result of the CreateKey operation returned by the service.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksKeyInvalidConfigurationException
+     *         The request was rejected because the external key specified by the <code>XksKeyId</code> parameter did
+     *         not meet the configuration requirements for an external key store.
+     *         </p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     * @throws XksKeyAlreadyInUseException
+     *         The request was rejected because the (<code>XksKeyId</code>) is already associated with another KMS key
+     *         in this external key store. Each KMS key in an external key store must be associated with a different
+     *         external key.
+     * @throws XksKeyNotFoundException
+     *         The request was rejected because the external key store proxy could not find the external key. This
+     *         exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't identify a key in the
+     *         external key manager associated with the external key proxy.
+     *         </p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateKeyResponse createKey(Consumer<CreateKeyRequest.Builder> createKeyRequest)
+            throws MalformedPolicyDocumentException, DependencyTimeoutException, InvalidArnException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, KmsInternalException,
+            LimitExceededException, TagException, CustomKeyStoreNotFoundException, CustomKeyStoreInvalidStateException,
+            CloudHsmClusterInvalidConfigurationException, XksKeyInvalidConfigurationException, XksKeyAlreadyInUseException,
+            XksKeyNotFoundException, AwsServiceException, SdkClientException, KmsException {
+        return createKey(CreateKeyRequest.builder().applyMutation(createKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a unique customer managed <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon
+     * Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and
+     * signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your
+     * service resources.
+     * </p>
+     * <p>
+     * A KMS key is a logical representation of a cryptographic key. In addition to the key material used in
+     * cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date,
+     * description, and key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html">Managing keys</a> in the <i>Key
+     * Management Service Developer Guide</i>
+     * </p>
+     * <p>
+     * Use the parameters of <code>CreateKey</code> to specify the type of KMS key, the source of its key material, its
+     * key policy, description, tags, and other properties.
+     * </p>
+     * <note>
+     * <p>
+     * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept
+     * has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+     * </p>
+     * </note>
+     * <p>
+     * To create different types of KMS keys, use the following guidance:
+     * </p>
+     * <dl>
+     * <dt>Symmetric encryption KMS key</dt>
+     * <dd>
+     * <p>
+     * By default, <code>CreateKey</code> creates a symmetric encryption KMS key with key material that KMS generates.
+     * This is the basic and most widely used type of KMS key, and provides the best performance.
+     * </p>
+     * <p>
+     * To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for
+     * <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, the default value for <code>KeyUsage</code>,
+     * <code>ENCRYPT_DECRYPT</code>, and the default value for <code>Origin</code>, <code>AWS_KMS</code>, create a
+     * symmetric encryption KMS key with KMS key material.
+     * </p>
+     * <p>
+     * If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in
+     * an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption
+     * key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to
+     * 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see
+     * <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Asymmetric KMS keys</dt>
+     * <dd>
+     * <p>
+     * To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify the type of key material in
+     * the KMS key. Then, use the <code>KeyUsage</code> parameter to determine whether the KMS key will be used to
+     * encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.
+     * </p>
+     * <p>
+     * Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions
+     * only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the
+     * <a>GetPublicKey</a> operation to download the public key so it can be used outside of KMS. KMS keys with RSA or
+     * SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with
+     * ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>HMAC KMS key</dt>
+     * <dd>
+     * <p>
+     * To create an HMAC KMS key, set the <code>KeySpec</code> parameter to a key spec value for HMAC KMS keys. Then set
+     * the <code>KeyUsage</code> parameter to <code>GENERATE_VERIFY_MAC</code>. You must set the key usage even though
+     * <code>GENERATE_VERIFY_MAC</code> is the only valid key usage value for HMAC KMS keys. You can't change these
+     * properties after the KMS key is created.
+     * </p>
+     * <p>
+     * HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate
+     * (<a>GenerateMac</a>) and verify (<a>VerifyMac</a>) HMAC codes for messages up to 4096 bytes.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Multi-Region primary keys</dt>
+     * <dt>Imported key material</dt>
+     * <dd>
+     * <p>
+     * To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region, use the
+     * <code>MultiRegion</code> parameter with a value of <code>True</code>. To create a multi-Region <i>replica
+     * key</i>, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web
+     * Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its primary
+     * key to a replica key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <p>
+     * You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't create multi-Region keys in a custom key store.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dd>
+     * <p>
+     * To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use
+     * the <code>Origin</code> parameter of <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
+     * <a>GetParametersForImport</a> operation to get a public key and import token. Use the wrapping public key to
+     * encrypt your key material. Then, use <a>ImportKeyMaterial</a> with your import token to import the key material.
+     * For step-by-step instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS
+     * keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with
+     * imported key material. However, you can't import key material into a KMS key in a custom key store.
+     * </p>
+     * <p>
+     * To create a multi-Region primary key with imported key material, use the <code>Origin</code> parameter of
+     * <code>CreateKey</code> with a value of <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a
+     * value of <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a>
+     * operation. For instructions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html ">Importing key
+     * material into multi-Region keys</a>. For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * </p></dd>
+     * <dt>Custom key store</dt>
+     * <dd>
+     * <p>
+     * A <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a> lets you protect your Amazon Web Services resources using keys in a backing key store that you own and
+     * manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is
+     * performed in the backing key store using its cryptographic keys.
+     * </p>
+     * <p>
+     * KMS supports <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key
+     * stores</a> backed by an CloudHSM cluster and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>
+     * backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key
+     * store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you
+     * create a KMS key in an external key store, you specify an existing encryption key in the external key manager.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note>
+     * <p>
+     * Before you create a KMS key in a custom key store, the <code>ConnectionState</code> of the key store must be
+     * <code>CONNECTED</code>. To connect the custom key store, use the <a>ConnectCustomKeyStore</a> operation. To find
+     * the <code>ConnectionState</code>, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * To create a KMS key in a custom key store, use the <code>CustomKeyStoreId</code>. Use the default
+     * <code>KeySpec</code> value, <code>SYMMETRIC_DEFAULT</code>, and the default <code>KeyUsage</code> value,
+     * <code>ENCRYPT_DECRYPT</code> to create a symmetric encryption key. No other key type is supported in a custom key
+     * store.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The CloudHSM cluster that is
+     * associated with the custom key store must have at least two active HSMs in different Availability Zones in the
+     * Amazon Web Services Region.
+     * </p>
+     * <p>
+     * To create a KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>, use
+     * the <code>Origin</code> parameter with a value of <code>EXTERNAL_KEY_STORE</code> and an <code>XksKeyId</code>
+     * parameter that identifies an existing external key.
+     * </p>
+     * <note>
+     * <p>
+     * Some external key managers provide a simpler method for creating a KMS key in an external key store. For details,
+     * see your external key manager documentation.
+     * </p>
+     * </note></dd>
+     * </dl>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a KMS key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a>
+     * (IAM policy). To use the <code>Tags</code> parameter, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (IAM policy). For examples and information about related permissions, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key"
+     * >Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ScheduleKeyDeletion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return Result of the CreateKey operation returned by the service.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksKeyInvalidConfigurationException
+     *         The request was rejected because the external key specified by the <code>XksKeyId</code> parameter did
+     *         not meet the configuration requirements for an external key store.
+     *         </p>
+     *         <p>
+     *         The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+     * @throws XksKeyAlreadyInUseException
+     *         The request was rejected because the (<code>XksKeyId</code>) is already associated with another KMS key
+     *         in this external key store. Each KMS key in an external key store must be associated with a different
+     *         external key.
+     * @throws XksKeyNotFoundException
+     *         The request was rejected because the external key store proxy could not find the external key. This
+     *         exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't identify a key in the
+     *         external key manager associated with the external key proxy.
+     *         </p>
+     *         <p>
+     *         Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key
+     *         identifier that the external key store proxy uses to identify the key. For details, see the documentation
+     *         provided with your external key store proxy or key manager.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.CreateKey
+     * @see #createKey(CreateKeyRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default CreateKeyResponse createKey() throws MalformedPolicyDocumentException, DependencyTimeoutException,
+            InvalidArnException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException, KmsInternalException,
+            LimitExceededException, TagException, CustomKeyStoreNotFoundException, CustomKeyStoreInvalidStateException,
+            CloudHsmClusterInvalidConfigurationException, XksKeyInvalidConfigurationException, XksKeyAlreadyInUseException,
+            XksKeyNotFoundException, AwsServiceException, SdkClientException, KmsException {
+        return createKey(CreateKeyRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an
+     * asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
+     * algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <code>Decrypt</code> operation also decrypts ciphertext that was encrypted outside of KMS by the public key
+     * in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such
+     * as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services
+     * Encryption SDK</a> or <a
+     * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * If the ciphertext was encrypted under a symmetric encryption KMS key, the <code>KeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as
+     * a best practice. When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key
+     * you specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code> operation fails.
+     * This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * <p>
+     * Whenever possible, use key policies to give users permission to call the <code>Decrypt</code> operation on a
+     * particular KMS key, instead of using &amp;IAM; policies. Otherwise, you might create an &amp;IAM; policy that
+     * gives the user <code>Decrypt</code> permission on all KMS keys. This user could decrypt ciphertext that was
+     * encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must
+     * use an IAM policy for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular
+     * trusted accounts. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best
+     * practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>Decrypt</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>Decrypt</code> for a
+     * Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data
+     * encrypted with the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. If you use the <code>KeyId</code> parameter to identify a KMS key in a different
+     * Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReEncrypt</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param decryptRequest
+     * @return Result of the Decrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws IncorrectKeyException
+     *         The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in
+     *         a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the
+     *         same KMS key that was used to encrypt the ciphertext.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Decrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DecryptResponse decrypt(DecryptRequest decryptRequest) throws NotFoundException, DisabledException,
+            InvalidCiphertextException, KeyUnavailableException, IncorrectKeyException, InvalidKeyUsageException,
+            DependencyTimeoutException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an
+     * asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
+     * algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <code>Decrypt</code> operation also decrypts ciphertext that was encrypted outside of KMS by the public key
+     * in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such
+     * as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services
+     * Encryption SDK</a> or <a
+     * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * If the ciphertext was encrypted under a symmetric encryption KMS key, the <code>KeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as
+     * a best practice. When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key
+     * you specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code> operation fails.
+     * This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * <p>
+     * Whenever possible, use key policies to give users permission to call the <code>Decrypt</code> operation on a
+     * particular KMS key, instead of using &amp;IAM; policies. Otherwise, you might create an &amp;IAM; policy that
+     * gives the user <code>Decrypt</code> permission on all KMS keys. This user could decrypt ciphertext that was
+     * encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must
+     * use an IAM policy for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular
+     * trusted accounts. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best
+     * practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>Decrypt</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>Decrypt</code> for a
+     * Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data
+     * encrypted with the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. If you use the <code>KeyId</code> parameter to identify a KMS key in a different
+     * Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReEncrypt</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DecryptRequest.Builder} avoiding the need to create
+     * one manually via {@link DecryptRequest#builder()}
+     * </p>
+     *
+     * @param decryptRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DecryptRequest.Builder} to create a request.
+     * @return Result of the Decrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws IncorrectKeyException
+     *         The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in
+     *         a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the
+     *         same KMS key that was used to encrypt the ciphertext.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Decrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DecryptResponse decrypt(Consumer<DecryptRequest.Builder> decryptRequest) throws NotFoundException, DisabledException,
+            InvalidCiphertextException, KeyUnavailableException, IncorrectKeyException, InvalidKeyUsageException,
+            DependencyTimeoutException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        return decrypt(DecryptRequest.builder().applyMutation(decryptRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes the specified alias.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without
+     * affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get
+     * the aliases of all KMS keys, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the
+     * current alias and <a>CreateAlias</a> to create a new alias. To associate an existing alias with a different KMS
+     * key, call <a>UpdateAlias</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteAliasRequest
+     * @return Result of the DeleteAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DeleteAliasResponse deleteAlias(DeleteAliasRequest deleteAliasRequest) throws DependencyTimeoutException,
+            NotFoundException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes the specified alias.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without
+     * affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get
+     * the aliases of all KMS keys, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the
+     * current alias and <a>CreateAlias</a> to create a new alias. To associate an existing alias with a different KMS
+     * key, call <a>UpdateAlias</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias
+     * </a> on the KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DeleteAliasRequest.Builder} avoiding the need to
+     * create one manually via {@link DeleteAliasRequest#builder()}
+     * </p>
+     *
+     * @param deleteAliasRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DeleteAliasRequest.Builder} to create a request.
+     * @return Result of the DeleteAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DeleteAliasResponse deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest)
+            throws DependencyTimeoutException, NotFoundException, KmsInternalException, KmsInvalidStateException,
+            AwsServiceException, SdkClientException, KmsException {
+        return deleteAlias(DeleteAliasRequest.builder().applyMutation(deleteAliasRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a>. This operation does not affect any backing elements of the custom key store. It does not delete
+     * the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster.
+     * For an external key store, it does not affect the external key store proxy, external key manager, or any external
+     * keys.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The custom key store that you delete cannot contain any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before deleting
+     * the key store, verify that you will never need to use any of the KMS keys in the key store for any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the KMS keys from the key store. After the
+     * required waiting period expires and all KMS keys are deleted from the custom key store, use
+     * <a>DisconnectCustomKeyStore</a> to disconnect the key store from KMS. Then, you can delete the custom key store.
+     * </p>
+     * <p>
+     * For keys in an CloudHSM key store, the <code>ScheduleKeyDeletion</code> operation makes a best effort to delete
+     * the key material from the associated cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. KMS never creates, manages, or deletes
+     * cryptographic keys in the external key manager associated with an external key store. You must manage them using
+     * your external key manager tools.
+     * </p>
+     * <p>
+     * Instead of deleting the custom key store, consider using the <a>DisconnectCustomKeyStore</a> operation to
+     * disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot
+     * create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a
+     * disconnected custom key store at any time.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteCustomKeyStoreRequest
+     * @return Result of the DeleteCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreHasCmKsException
+     *         The request was rejected because the custom key store contains KMS keys. After verifying that you do not
+     *         need to use the KMS keys, use the <a>ScheduleKeyDeletion</a> operation to delete the KMS keys. After they
+     *         are deleted, you can delete the custom key store.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DeleteCustomKeyStoreResponse deleteCustomKeyStore(DeleteCustomKeyStoreRequest deleteCustomKeyStoreRequest)
+            throws CustomKeyStoreHasCmKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException,
+            KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom
+     * key store</a>. This operation does not affect any backing elements of the custom key store. It does not delete
+     * the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster.
+     * For an external key store, it does not affect the external key store proxy, external key manager, or any external
+     * keys.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * The custom key store that you delete cannot contain any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before deleting
+     * the key store, verify that you will never need to use any of the KMS keys in the key store for any <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the KMS keys from the key store. After the
+     * required waiting period expires and all KMS keys are deleted from the custom key store, use
+     * <a>DisconnectCustomKeyStore</a> to disconnect the key store from KMS. Then, you can delete the custom key store.
+     * </p>
+     * <p>
+     * For keys in an CloudHSM key store, the <code>ScheduleKeyDeletion</code> operation makes a best effort to delete
+     * the key material from the associated cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. KMS never creates, manages, or deletes
+     * cryptographic keys in the external key manager associated with an external key store. You must manage them using
+     * your external key manager tools.
+     * </p>
+     * <p>
+     * Instead of deleting the custom key store, consider using the <a>DisconnectCustomKeyStore</a> operation to
+     * disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot
+     * create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a
+     * disconnected custom key store at any time.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DeleteCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link DeleteCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param deleteCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest.Builder} to create a request.
+     * @return Result of the DeleteCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreHasCmKsException
+     *         The request was rejected because the custom key store contains KMS keys. After verifying that you do not
+     *         need to use the KMS keys, use the <a>ScheduleKeyDeletion</a> operation to delete the KMS keys. After they
+     *         are deleted, you can delete the custom key store.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DeleteCustomKeyStoreResponse deleteCustomKeyStore(
+            Consumer<DeleteCustomKeyStoreRequest.Builder> deleteCustomKeyStoreRequest) throws CustomKeyStoreHasCmKsException,
+            CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        return deleteCustomKeyStore(DeleteCustomKeyStoreRequest.builder().applyMutation(deleteCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily
+     * unusable. To restore the usability of the KMS key, reimport the same key material. For more information about
+     * importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does not change the KMS
+     * key's state. Otherwise, it changes the KMS key's state to <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteImportedKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param deleteImportedKeyMaterialRequest
+     * @return Result of the DeleteImportedKeyMaterial operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteImportedKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DeleteImportedKeyMaterialResponse deleteImportedKeyMaterial(
+            DeleteImportedKeyMaterialRequest deleteImportedKeyMaterialRequest) throws InvalidArnException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DependencyTimeoutException,
+            NotFoundException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily
+     * unusable. To restore the usability of the KMS key, reimport the same key material. For more information about
+     * importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does not change the KMS
+     * key's state. Otherwise, it changes the KMS key's state to <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DeleteImportedKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DeleteImportedKeyMaterialRequest.Builder} avoiding
+     * the need to create one manually via {@link DeleteImportedKeyMaterialRequest#builder()}
+     * </p>
+     *
+     * @param deleteImportedKeyMaterialRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest.Builder} to create a
+     *        request.
+     * @return Result of the DeleteImportedKeyMaterial operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DeleteImportedKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DeleteImportedKeyMaterialResponse deleteImportedKeyMaterial(
+            Consumer<DeleteImportedKeyMaterialRequest.Builder> deleteImportedKeyMaterialRequest) throws InvalidArnException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DependencyTimeoutException,
+            NotFoundException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        return deleteImportedKeyMaterial(DeleteImportedKeyMaterialRequest.builder()
+                .applyMutation(deleteImportedKeyMaterialRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     * @return Result of the DescribeCustomKeyStores operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresResponse describeCustomKeyStores(DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest)
+            throws CustomKeyStoreNotFoundException, InvalidMarkerException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DescribeCustomKeyStoresRequest.Builder} avoiding
+     * the need to create one manually via {@link DescribeCustomKeyStoresRequest#builder()}
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest.Builder} to create a
+     *        request.
+     * @return Result of the DescribeCustomKeyStores operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresResponse describeCustomKeyStores(
+            Consumer<DescribeCustomKeyStoresRequest.Builder> describeCustomKeyStoresRequest)
+            throws CustomKeyStoreNotFoundException, InvalidMarkerException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        return describeCustomKeyStores(DescribeCustomKeyStoresRequest.builder().applyMutation(describeCustomKeyStoresRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Gets information about <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * in the account and Region.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * By default, this operation returns information about all custom key stores in the account and Region. To get only
+     * information about a particular custom key store, use either the <code>CustomKeyStoreName</code> or
+     * <code>CustomKeyStoreId</code> parameter (but not both).
+     * </p>
+     * <p>
+     * To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use
+     * the <code>ConnectionState</code> element in the response. If an attempt to connect the custom key store failed,
+     * the <code>ConnectionState</code> value is <code>FAILED</code> and the <code>ConnectionErrorCode</code> element in
+     * the response indicates the cause of the failure. For help interpreting the <code>ConnectionErrorCode</code>, see
+     * <a>CustomKeyStoresListEntry</a>.
+     * </p>
+     * <p>
+     * Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has never been connected or
+     * you used the <a>DisconnectCustomKeyStore</a> operation to disconnect it. Otherwise, the connection state is
+     * CONNECTED. If your custom key store connection state is <code>CONNECTED</code> but you are having trouble using
+     * it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated
+     * CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an
+     * external key store, verify that the external key store proxy and its associated external key manager are
+     * reachable and enabled.
+     * </p>
+     * <p>
+     * For help repairing your CloudHSM key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting CloudHSM key
+     * stores</a>. For help repairing your external key store, see the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html">Troubleshooting external
+     * key stores</a>. Both topics are in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeCustomKeyStores</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return Result of the DescribeCustomKeyStores operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see #describeCustomKeyStores(DescribeCustomKeyStoresRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresResponse describeCustomKeyStores() throws CustomKeyStoreNotFoundException,
+            InvalidMarkerException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        return describeCustomKeyStores(DescribeCustomKeyStoresRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client
+     *             .describeCustomKeyStoresPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation.</b>
+     * </p>
+     *
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see #describeCustomKeyStoresPaginator(DescribeCustomKeyStoresRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresIterable describeCustomKeyStoresPaginator() throws CustomKeyStoreNotFoundException,
+            InvalidMarkerException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        return describeCustomKeyStoresPaginator(DescribeCustomKeyStoresRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client
+     *             .describeCustomKeyStoresPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation.</b>
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresIterable describeCustomKeyStoresPaginator(
+            DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest) throws CustomKeyStoreNotFoundException,
+            InvalidMarkerException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        return new DescribeCustomKeyStoresIterable(this, describeCustomKeyStoresRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client
+     *             .describeCustomKeyStoresPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+     * operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DescribeCustomKeyStoresRequest.Builder} avoiding
+     * the need to create one manually via {@link DescribeCustomKeyStoresRequest#builder()}
+     * </p>
+     *
+     * @param describeCustomKeyStoresRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest.Builder} to create a
+     *        request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeCustomKeyStores
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DescribeCustomKeyStoresIterable describeCustomKeyStoresPaginator(
+            Consumer<DescribeCustomKeyStoresRequest.Builder> describeCustomKeyStoresRequest)
+            throws CustomKeyStoreNotFoundException, InvalidMarkerException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        return describeCustomKeyStoresPaginator(DescribeCustomKeyStoresRequest.builder()
+                .applyMutation(describeCustomKeyStoresRequest).build());
+    }
+
+    /**
+     * <p>
+     * Provides detailed information about a KMS key. You can run <code>DescribeKey</code> on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     * Services managed key</a>.
+     * </p>
+     * <p>
+     * This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state,
+     * and the origin and expiration date (if any) of the key material. It includes fields, like <code>KeySpec</code>,
+     * that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or
+     * generating and verifying MACs) and the algorithms that the KMS key supports.
+     * </p>
+     * <p>
+     * For <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * keys</a>, <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it
+     * includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>,
+     * it includes the custom key store ID and the ID of the external key.
+     * </p>
+     * <p>
+     * <code>DescribeKey</code> does not return the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether automatic key rotation is enabled on the KMS key. To get this information, use
+     * <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being automatically rotated. For
+     * details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How
+     * Automatic Key Rotation Works</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * In general, <code>DescribeKey</code> is a non-mutating operation. It returns data about KMS keys, but doesn't
+     * change them. However, Amazon Web Services services use <code>DescribeKey</code> to create <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a> from a <i>predefined Amazon Web Services alias</i> with no key ID.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param describeKeyRequest
+     * @return Result of the DescribeKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DescribeKeyResponse describeKey(DescribeKeyRequest describeKeyRequest) throws NotFoundException, InvalidArnException,
+            DependencyTimeoutException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Provides detailed information about a KMS key. You can run <code>DescribeKey</code> on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     * Services managed key</a>.
+     * </p>
+     * <p>
+     * This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state,
+     * and the origin and expiration date (if any) of the key material. It includes fields, like <code>KeySpec</code>,
+     * that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or
+     * generating and verifying MACs) and the algorithms that the KMS key supports.
+     * </p>
+     * <p>
+     * For <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * keys</a>, <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it
+     * includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key stores</a>,
+     * it includes the custom key store ID and the ID of the external key.
+     * </p>
+     * <p>
+     * <code>DescribeKey</code> does not return the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether automatic key rotation is enabled on the KMS key. To get this information, use
+     * <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being automatically rotated. For
+     * details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How
+     * Automatic Key Rotation Works</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * In general, <code>DescribeKey</code> is a non-mutating operation. It returns data about KMS keys, but doesn't
+     * change them. However, Amazon Web Services services use <code>DescribeKey</code> to create <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a> from a <i>predefined Amazon Web Services alias</i> with no key ID.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DescribeKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListKeys</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DescribeKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link DescribeKeyRequest#builder()}
+     * </p>
+     *
+     * @param describeKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DescribeKeyRequest.Builder} to create a request.
+     * @return Result of the DescribeKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DescribeKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DescribeKeyResponse describeKey(Consumer<DescribeKeyRequest.Builder> describeKeyRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, AwsServiceException, SdkClientException,
+            KmsException {
+        return describeKey(DescribeKeyRequest.builder().applyMutation(describeKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+     * <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>EnableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRequest
+     * @return Result of the DisableKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DisableKeyResponse disableKey(DisableKeyRequest disableKeyRequest) throws NotFoundException, InvalidArnException,
+            DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+     * <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>EnableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DisableKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link DisableKeyRequest#builder()}
+     * </p>
+     *
+     * @param disableKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DisableKeyRequest.Builder} to create a request.
+     * @return Result of the DisableKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DisableKeyResponse disableKey(Consumer<DisableKeyRequest.Builder> disableKeyRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        return disableKey(DisableKeyRequest.builder().applyMutation(disableKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation
+     * of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+     * with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation of the key material in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material for every year. Rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disableKeyRotationRequest
+     * @return Result of the DisableKeyRotation operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DisableKeyRotationResponse disableKeyRotation(DisableKeyRotationRequest disableKeyRotationRequest)
+            throws NotFoundException, DisabledException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation
+     * of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+     * with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation of the key material in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material for every year. Rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DisableKeyRotationRequest.Builder} avoiding the
+     * need to create one manually via {@link DisableKeyRotationRequest#builder()}
+     * </p>
+     *
+     * @param disableKeyRotationRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest.Builder} to create a request.
+     * @return Result of the DisableKeyRotation operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default DisableKeyRotationResponse disableKeyRotation(Consumer<DisableKeyRotationRequest.Builder> disableKeyRotationRequest)
+            throws NotFoundException, DisabledException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        return disableKeyRotation(DisableKeyRotationRequest.builder().applyMutation(disableKeyRotationRequest).build());
+    }
+
+    /**
+     * <p>
+     * Disconnects the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster
+     * or disconnects an external key store from the external key store proxy that communicates with your external key
+     * manager.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot
+     * create or use its KMS keys. You can reconnect the custom key store at any time.
+     * </p>
+     * <note>
+     * <p>
+     * While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use
+     * existing KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> will fail. This action can prevent users from storing and accessing sensitive data.
+     * </p>
+     * </note>
+     * <p>
+     * When you disconnect a custom key store, its <code>ConnectionState</code> changes to <code>Disconnected</code>. To
+     * find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a
+     * custom key store, use the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisconnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param disconnectCustomKeyStoreRequest
+     * @return Result of the DisconnectCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisconnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DisconnectCustomKeyStoreResponse disconnectCustomKeyStore(
+            DisconnectCustomKeyStoreRequest disconnectCustomKeyStoreRequest) throws CustomKeyStoreInvalidStateException,
+            CustomKeyStoreNotFoundException, KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Disconnects the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster
+     * or disconnects an external key store from the external key store proxy that communicates with your external key
+     * manager.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <p>
+     * While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot
+     * create or use its KMS keys. You can reconnect the custom key store at any time.
+     * </p>
+     * <note>
+     * <p>
+     * While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use
+     * existing KMS keys in <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> will fail. This action can prevent users from storing and accessing sensitive data.
+     * </p>
+     * </note>
+     * <p>
+     * When you disconnect a custom key store, its <code>ConnectionState</code> changes to <code>Disconnected</code>. To
+     * find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a
+     * custom key store, use the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:DisconnectCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link DisconnectCustomKeyStoreRequest.Builder} avoiding
+     * the need to create one manually via {@link DisconnectCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param disconnectCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest.Builder} to create a
+     *        request.
+     * @return Result of the DisconnectCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.DisconnectCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default DisconnectCustomKeyStoreResponse disconnectCustomKeyStore(
+            Consumer<DisconnectCustomKeyStoreRequest.Builder> disconnectCustomKeyStoreRequest)
+            throws CustomKeyStoreInvalidStateException, CustomKeyStoreNotFoundException, KmsInternalException,
+            AwsServiceException, SdkClientException, KmsException {
+        return disconnectCustomKeyStore(DisconnectCustomKeyStoreRequest.builder().applyMutation(disconnectCustomKeyStoreRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>DisableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRequest
+     * @return Result of the EnableKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.EnableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default EnableKeyResponse enableKey(EnableKeyRequest enableKeyRequest) throws NotFoundException, InvalidArnException,
+            DependencyTimeoutException, KmsInternalException, LimitExceededException, KmsInvalidStateException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>DisableKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link EnableKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link EnableKeyRequest#builder()}
+     * </p>
+     *
+     * @param enableKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.EnableKeyRequest.Builder} to create a request.
+     * @return Result of the EnableKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.EnableKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default EnableKeyResponse enableKey(Consumer<EnableKeyRequest.Builder> enableKeyRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, LimitExceededException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return enableKey(EnableKeyRequest.builder().applyMutation(enableKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation of a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * key</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the
+     * <a>DisableKeyRotation</a> operation.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You cannot enable or disable automatic rotation <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a>. KMS always rotates the key material of Amazon Web Services managed keys every year.
+     * Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
+     * Web Services owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years
+     * (approximately 1,095 days) to every year (approximately 365 days).
+     * </p>
+     * <p>
+     * New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately
+     * every year thereafter.
+     * </p>
+     * <p>
+     * Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation,
+     * and every year thereafter.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:EnableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param enableKeyRotationRequest
+     * @return Result of the EnableKeyRotation operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.EnableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default EnableKeyRotationResponse enableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest)
+            throws NotFoundException, DisabledException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of
+     * the key material</a> of the specified symmetric encryption KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation of a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * key</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the
+     * <a>DisableKeyRotation</a> operation.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * You cannot enable or disable automatic rotation <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a>. KMS always rotates the key material of Amazon Web Services managed keys every year.
+     * Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
+     * Web Services owned KMS keys</a> varies.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years
+     * (approximately 1,095 days) to every year (approximately 365 days).
+     * </p>
+     * <p>
+     * New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately
+     * every year thereafter.
+     * </p>
+     * <p>
+     * Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation,
+     * and every year thereafter.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:EnableKeyRotation</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetKeyRotationStatus</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link EnableKeyRotationRequest.Builder} avoiding the need
+     * to create one manually via {@link EnableKeyRotationRequest#builder()}
+     * </p>
+     *
+     * @param enableKeyRotationRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest.Builder} to create a request.
+     * @return Result of the EnableKeyRotation operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.EnableKeyRotation
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default EnableKeyRotationResponse enableKeyRotation(Consumer<EnableKeyRotationRequest.Builder> enableKeyRotationRequest)
+            throws NotFoundException, DisabledException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        return enableKeyRotation(EnableKeyRotationRequest.builder().applyMutation(enableKeyRotationRequest).build());
+    }
+
+    /**
+     * <p>
+     * Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a
+     * <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database
+     * password, or other sensitive information. You don't need to use the <code>Encrypt</code> operation to encrypt a
+     * data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a plaintext data key and an
+     * encrypted copy of that data key.
+     * </p>
+     * <p>
+     * If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your
+     * encryption operation. If you specify an <code>EncryptionContext</code> when encrypting data, you must specify the
+     * same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to
+     * decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be
+     * compatible with the KMS key spec.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important>
+     * <p>
+     * The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm
+     * that you choose.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption KMS keys
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>: 4096 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 214 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 190 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 342 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 318 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 470 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 446 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SM2PKE</code>: 1024 bytes (China Regions only)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param encryptRequest
+     * @return Result of the Encrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Encrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default EncryptResponse encrypt(EncryptRequest encryptRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a
+     * <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database
+     * password, or other sensitive information. You don't need to use the <code>Encrypt</code> operation to encrypt a
+     * data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a plaintext data key and an
+     * encrypted copy of that data key.
+     * </p>
+     * <p>
+     * If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your
+     * encryption operation. If you specify an <code>EncryptionContext</code> when encrypting data, you must specify the
+     * same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to
+     * decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be
+     * compatible with the KMS key spec.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important>
+     * <p>
+     * The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm
+     * that you choose.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption KMS keys
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>: 4096 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 214 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 190 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 342 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 318 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_1</code>: 470 bytes
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSAES_OAEP_SHA_256</code>: 446 bytes
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SM2PKE</code>: 1024 bytes (China Regions only)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link EncryptRequest.Builder} avoiding the need to create
+     * one manually via {@link EncryptRequest#builder()}
+     * </p>
+     *
+     * @param encryptRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.EncryptRequest.Builder} to create a request.
+     * @return Result of the Encrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Encrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default EncryptResponse encrypt(Consumer<EncryptRequest.Builder> encryptRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return encrypt(EncryptRequest.builder().applyMutation(encryptRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data
+     * key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the
+     * plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to
+     * encrypt your data outside of KMS and store the encrypted data key with the encrypted data.
+     * </p>
+     * <p>
+     * To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You
+     * cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate a 128-bit SM4 data key (China Regions only), specify a <code>KeySpec</code> value of
+     * <code>AES_128</code> or a <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used
+     * in China Regions to encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an
+     * asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * operation. To get a cryptographically secure random byte string, use <a>GenerateRandom</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKey</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateDataKey</code>
+     * for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKey</code> returns a copy of the data key encrypted under
+     * the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of
+     * the data key encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>How to use your data key</b>
+     * </p>
+     * <p>
+     * We recommend that you use the following pattern to encrypt data locally in your application. You can write your
+     * own code or use a client-side encryption library, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>,
+     * the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption
+     * Client</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
+     * client-side encryption</a> to do these tasks for you.
+     * </p>
+     * <p>
+     * To encrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <code>GenerateDataKey</code> operation to get a data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key (in the <code>Plaintext</code> field of the response) to encrypt your data outside of
+     * KMS. Then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Store the encrypted data key (in the <code>CiphertextBlob</code> field of the response) with the encrypted data.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * To decrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The operation returns a plaintext copy of the
+     * data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyRequest
+     * @return Result of the GenerateDataKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateDataKeyResponse generateDataKey(GenerateDataKeyRequest generateDataKeyRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException,
+            InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data
+     * key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the
+     * plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to
+     * encrypt your data outside of KMS and store the encrypted data key with the encrypted data.
+     * </p>
+     * <p>
+     * To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You
+     * cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate a 128-bit SM4 data key (China Regions only), specify a <code>KeySpec</code> value of
+     * <code>AES_128</code> or a <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used
+     * in China Regions to encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an
+     * asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * operation. To get a cryptographically secure random byte string, use <a>GenerateRandom</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKey</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateDataKey</code>
+     * for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKey</code> returns a copy of the data key encrypted under
+     * the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of
+     * the data key encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>How to use your data key</b>
+     * </p>
+     * <p>
+     * We recommend that you use the following pattern to encrypt data locally in your application. You can write your
+     * own code or use a client-side encryption library, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>,
+     * the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption
+     * Client</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
+     * client-side encryption</a> to do these tasks for you.
+     * </p>
+     * <p>
+     * To encrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <code>GenerateDataKey</code> operation to get a data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key (in the <code>Plaintext</code> field of the response) to encrypt your data outside of
+     * KMS. Then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Store the encrypted data key (in the <code>CiphertextBlob</code> field of the response) with the encrypted data.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * To decrypt data outside of KMS:
+     * </p>
+     * <ol>
+     * <li>
+     * <p>
+     * Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The operation returns a plaintext copy of the
+     * data key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.
+     * </p>
+     * </li>
+     * </ol>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyRequest.Builder} avoiding the need
+     * to create one manually via {@link GenerateDataKeyRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest.Builder} to create a request.
+     * @return Result of the GenerateDataKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateDataKeyResponse generateDataKey(Consumer<GenerateDataKeyRequest.Builder> generateDataKeyRequest)
+            throws NotFoundException, DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        return generateDataKey(GenerateDataKeyRequest.builder().applyMutation(generateDataKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key,
+     * a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key
+     * you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures
+     * outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is
+     * used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data or verify a signature
+     * outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a
+     * message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a
+     * private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an encrypted private key, but
+     * omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need
+     * to decrypt the data or sign a message, use the <a>Decrypt</a> operation to decrypt the encrypted private key in
+     * the data key pair.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The bytes in the keys are
+     * random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key
+     * is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a
+     * href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call
+     * <code>GenerateDataKeyPair</code> for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKeyPair</code> returns the public data key and a copy of
+     * the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the
+     * private data key (<code>PrivateKeyPlaintext</code>), the response includes a copy of the private data key
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPair</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairRequest
+     * @return Result of the GenerateDataKeyPair operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyPair
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateDataKeyPairResponse generateDataKeyPair(GenerateDataKeyPairRequest generateDataKeyPairRequest)
+            throws NotFoundException, DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key,
+     * a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key
+     * you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures
+     * outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is
+     * used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data or verify a signature
+     * outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a
+     * message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a
+     * private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an encrypted private key, but
+     * omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need
+     * to decrypt the data or sign a message, use the <a>Decrypt</a> operation to decrypt the encrypted private key in
+     * the data key pair.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The bytes in the keys are
+     * random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key
+     * is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a
+     * href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPair</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call
+     * <code>GenerateDataKeyPair</code> for an Amazon Web Services Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. <code>GenerateDataKeyPair</code> returns the public data key and a copy of
+     * the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the
+     * private data key (<code>PrivateKeyPlaintext</code>), the response includes a copy of the private data key
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>). For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>..
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPair</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyPairRequest.Builder} avoiding the
+     * need to create one manually via {@link GenerateDataKeyPairRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyPairRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest.Builder} to create a request.
+     * @return Result of the GenerateDataKeyPair operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyPair
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPair" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateDataKeyPairResponse generateDataKeyPair(
+            Consumer<GenerateDataKeyPairRequest.Builder> generateDataKeyPairRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        return generateDataKeyPair(GenerateDataKeyPairRequest.builder().applyMutation(generateDataKeyPairRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key
+     * and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike
+     * <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private key. The bytes in the keys are
+     * random; they are not related to the caller or to the KMS key that is used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns to encrypt data or
+     * verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to
+     * decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each request. The bytes in
+     * the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a
+     * DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyPairWithoutPlaintextRequest
+     * @return Result of the GenerateDataKeyPairWithoutPlaintext operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyPairWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPairWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default GenerateDataKeyPairWithoutPlaintextResponse generateDataKeyPairWithoutPlaintext(
+            GenerateDataKeyPairWithoutPlaintextRequest generateDataKeyPairWithoutPlaintextRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException,
+            InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key
+     * and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike
+     * <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private key. The bytes in the keys are
+     * random; they are not related to the caller or to the KMS key that is used to encrypt the private key.
+     * </p>
+     * <p>
+     * You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns to encrypt data or
+     * verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to
+     * decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.
+     * </p>
+     * <p>
+     * To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data
+     * key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China
+     * Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use
+     * RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any
+     * restrictions on the use of data key pairs outside of KMS.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each request. The bytes in
+     * the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a
+     * DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC
+     * 5280</a>.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyPairWithoutPlaintextRequest.Builder}
+     * avoiding the need to create one manually via {@link GenerateDataKeyPairWithoutPlaintextRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyPairWithoutPlaintextRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest.Builder} to
+     *        create a request.
+     * @return Result of the GenerateDataKeyPairWithoutPlaintext operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyPairWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyPairWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default GenerateDataKeyPairWithoutPlaintextResponse generateDataKeyPairWithoutPlaintext(
+            Consumer<GenerateDataKeyPairWithoutPlaintextRequest.Builder> generateDataKeyPairWithoutPlaintextRequest)
+            throws NotFoundException, DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        return generateDataKeyPairWithoutPlaintext(GenerateDataKeyPairWithoutPlaintextRequest.builder()
+                .applyMutation(generateDataKeyPairWithoutPlaintextRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted
+     * under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to
+     * the caller or to the KMS key.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that it
+     * does not return a plaintext copy of the data key.
+     * </p>
+     * <p>
+     * This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need
+     * to encrypt the data, you call the <a>Decrypt</a> operation on the encrypted copy of the key.
+     * </p>
+     * <p>
+     * It's also useful in distributed systems with different levels of trust. For example, you might store encrypted
+     * data in containers. One component of your system creates new containers and stores an encrypted data key with
+     * each container. Then, a different component puts the data into the containers. That component first decrypts the
+     * data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then
+     * destroys the plaintext data key. In this system, the component that creates the containers never sees the
+     * plaintext data key.
+     * </p>
+     * <p>
+     * To request an asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or
+     * <a>GenerateDataKeyPairWithoutPlaintext</a> operations.
+     * </p>
+     * <p>
+     * To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key.
+     * You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate an SM4 data key (China Regions only), specify a <code>KeySpec</code> value of <code>AES_128</code> or
+     * <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used in China Regions to
+     * encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * If the operation succeeds, you will find the encrypted copy of the data key in the <code>CiphertextBlob</code>
+     * field.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateDataKeyWithoutPlaintextRequest
+     * @return Result of the GenerateDataKeyWithoutPlaintext operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default GenerateDataKeyWithoutPlaintextResponse generateDataKeyWithoutPlaintext(
+            GenerateDataKeyWithoutPlaintextRequest generateDataKeyWithoutPlaintextRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException,
+            InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted
+     * under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to
+     * the caller or to the KMS key.
+     * </p>
+     * <p>
+     * <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that it
+     * does not return a plaintext copy of the data key.
+     * </p>
+     * <p>
+     * This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need
+     * to encrypt the data, you call the <a>Decrypt</a> operation on the encrypted copy of the key.
+     * </p>
+     * <p>
+     * It's also useful in distributed systems with different levels of trust. For example, you might store encrypted
+     * data in containers. One component of your system creates new containers and stores an encrypted data key with
+     * each container. Then, a different component puts the data into the containers. That component first decrypts the
+     * data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then
+     * destroys the plaintext data key. In this system, the component that creates the containers never sees the
+     * plaintext data key.
+     * </p>
+     * <p>
+     * To request an asymmetric data key pair, use the <a>GenerateDataKeyPair</a> or
+     * <a>GenerateDataKeyPairWithoutPlaintext</a> operations.
+     * </p>
+     * <p>
+     * To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key.
+     * You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of
+     * your KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * You must also specify the length of the data key. Use either the <code>KeySpec</code> or
+     * <code>NumberOfBytes</code> parameters (but not both). For 128-bit and 256-bit data keys, use the
+     * <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * To generate an SM4 data key (China Regions only), specify a <code>KeySpec</code> value of <code>AES_128</code> or
+     * <code>NumberOfBytes</code> value of <code>16</code>. The symmetric encryption key used in China Regions to
+     * encrypt your data key is an SM4 encryption key.
+     * </p>
+     * <p>
+     * If the operation succeeds, you will find the encrypted copy of the data key in the <code>CiphertextBlob</code>
+     * field.
+     * </p>
+     * <p>
+     * You can use an optional encryption context to add additional security to the encryption operation. If you specify
+     * an <code>EncryptionContext</code>, you must specify the same encryption context (a case-sensitive exact match)
+     * when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an
+     * <code>InvalidCiphertextException</code>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateDataKeyWithoutPlaintext</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPairWithoutPlaintext</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateDataKeyWithoutPlaintextRequest.Builder}
+     * avoiding the need to create one manually via {@link GenerateDataKeyWithoutPlaintextRequest#builder()}
+     * </p>
+     *
+     * @param generateDataKeyWithoutPlaintextRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest.Builder} to create
+     *        a request.
+     * @return Result of the GenerateDataKeyWithoutPlaintext operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateDataKeyWithoutPlaintext
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext"
+     *      target="_top">AWS API Documentation</a>
+     */
+    default GenerateDataKeyWithoutPlaintextResponse generateDataKeyWithoutPlaintext(
+            Consumer<GenerateDataKeyWithoutPlaintextRequest.Builder> generateDataKeyWithoutPlaintextRequest)
+            throws NotFoundException, DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        return generateDataKeyWithoutPlaintext(GenerateDataKeyWithoutPlaintextRequest.builder()
+                .applyMutation(generateDataKeyWithoutPlaintextRequest).build());
+    }
+
+    /**
+     * <p>
+     * Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm
+     * that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined
+     * in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * You can use value that GenerateMac returns in the <a>VerifyMac</a> operation to demonstrate that the original
+     * message has not changed. Also, because a secret key is used to create the hash, you can verify that the party
+     * that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based
+     * algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For
+     * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is
+     * effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long
+     * after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the
+     * token or message to help you detect when its time to refresh the HMAC.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateMac</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>VerifyMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateMacRequest
+     * @return Result of the GenerateMac operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateMacResponse generateMac(GenerateMacRequest generateMacRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm
+     * that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined
+     * in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * You can use value that GenerateMac returns in the <a>VerifyMac</a> operation to demonstrate that the original
+     * message has not changed. Also, because a secret key is used to create the hash, you can verify that the party
+     * that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based
+     * algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For
+     * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in
+     * the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is
+     * effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long
+     * after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the
+     * token or message to help you detect when its time to refresh the HMAC.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateMac</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>VerifyMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateMacRequest.Builder} avoiding the need to
+     * create one manually via {@link GenerateMacRequest#builder()}
+     * </p>
+     *
+     * @param generateMacRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateMacRequest.Builder} to create a request.
+     * @return Result of the GenerateMac operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateMacResponse generateMac(Consumer<GenerateMacRequest.Builder> generateMacRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return generateMac(GenerateMacRequest.builder().applyMutation(generateMacRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param generateRandomRequest
+     * @return Result of the GenerateRandom operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateRandomResponse generateRandom(GenerateRandomRequest generateRandomRequest) throws DependencyTimeoutException,
+            KmsInternalException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            CustomKeyStoreNotFoundException, CustomKeyStoreInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GenerateRandomRequest.Builder} avoiding the need to
+     * create one manually via {@link GenerateRandomRequest#builder()}
+     * </p>
+     *
+     * @param generateRandomRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GenerateRandomRequest.Builder} to create a request.
+     * @return Result of the GenerateRandom operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateRandom
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateRandomResponse generateRandom(Consumer<GenerateRandomRequest.Builder> generateRandomRequest)
+            throws DependencyTimeoutException, KmsInternalException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, CustomKeyStoreNotFoundException,
+            CustomKeyStoreInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return generateRandom(GenerateRandomRequest.builder().applyMutation(generateRandomRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns a random byte string that is cryptographically secure.
+     * </p>
+     * <p>
+     * You must use the <code>NumberOfBytes</code> parameter to specify the length of the random byte string. There is
+     * no default value for string length.
+     * </p>
+     * <p>
+     * By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster
+     * associated with an CloudHSM key store, use the <code>CustomKeyStoreId</code> parameter.
+     * </p>
+     * <p>
+     * <code>GenerateRandom</code> also supports <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro
+     * Enclaves</a>, which provide an isolated compute environment in Amazon EC2. To call <code>GenerateRandom</code>
+     * for a Nitro enclave, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK. Use the <code>Recipient</code> parameter to provide the
+     * attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes
+     * encrypted under the public key from the attestation document (<code>CiphertextForRecipient</code>).For
+     * information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For more information about entropy and random number generation, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/cryptographic-details/">Key Management Service Cryptographic
+     * Details</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Not applicable. <code>GenerateRandom</code> does not use any account-specific
+     * resources, such as KMS keys.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GenerateRandom</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return Result of the GenerateRandom operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GenerateRandom
+     * @see #generateRandom(GenerateRandomRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GenerateRandomResponse generateRandom() throws DependencyTimeoutException, KmsInternalException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, CustomKeyStoreNotFoundException,
+            CustomKeyStoreInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return generateRandom(GenerateRandomRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * Gets a key policy attached to the specified KMS key.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyPolicyRequest
+     * @return Result of the GetKeyPolicy operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GetKeyPolicyResponse getKeyPolicy(GetKeyPolicyRequest getKeyPolicyRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a key policy attached to the specified KMS key.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetKeyPolicyRequest.Builder} avoiding the need to
+     * create one manually via {@link GetKeyPolicyRequest#builder()}
+     * </p>
+     *
+     * @param getKeyPolicyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest.Builder} to create a request.
+     * @return Result of the GetKeyPolicy operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GetKeyPolicyResponse getKeyPolicy(Consumer<GetKeyPolicyRequest.Builder> getKeyPolicyRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return getKeyPolicy(GetKeyPolicyRequest.builder().applyMutation(getKeyPolicyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a Boolean value that indicates whether <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of the key
+     * material</a> is enabled for the specified KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key..
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation (<a>DisableKeyRotation</a>) of the key
+     * material in customer managed KMS keys. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS
+     * keys every year. The key rotation status for Amazon Web Services managed KMS keys is always <code>true</code>.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is
+     * disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key
+     * material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year
+     * thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS
+     * key resumes its prior rotation schedule.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Pending deletion: While a KMS key is pending deletion, its key rotation status is <code>false</code> and KMS does
+     * not rotate the key material. If you cancel the deletion, the original key rotation status returns to
+     * <code>true</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyRotationStatus</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getKeyRotationStatusRequest
+     * @return Result of the GetKeyRotationStatus operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetKeyRotationStatus
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GetKeyRotationStatusResponse getKeyRotationStatus(GetKeyRotationStatusRequest getKeyRotationStatusRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a Boolean value that indicates whether <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation of the key
+     * material</a> is enabled for the specified KMS key.
+     * </p>
+     * <p>
+     * When you enable automatic rotation for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed KMS
+     * keys</a>, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and
+     * every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon
+     * CloudWatch.
+     * </p>
+     * <p>
+     * Automatic key rotation is supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks">symmetric encryption
+     * KMS keys</a>. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key..
+     * </p>
+     * <p>
+     * You can enable (<a>EnableKeyRotation</a>) and disable automatic rotation (<a>DisableKeyRotation</a>) of the key
+     * material in customer managed KMS keys. Key material rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed KMS keys</a> is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS
+     * keys every year. The key rotation status for Amazon Web Services managed KMS keys is always <code>true</code>.
+     * </p>
+     * <note>
+     * <p>
+     * In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to
+     * every year. For details, see <a>EnableKeyRotation</a>.
+     * </p>
+     * </note>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is
+     * disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key
+     * material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year
+     * thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS
+     * key resumes its prior rotation schedule.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Pending deletion: While a KMS key is pending deletion, its key rotation status is <code>false</code> and KMS does
+     * not rotate the key material. If you cancel the deletion, the original key rotation status returns to
+     * <code>true</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetKeyRotationStatus</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DisableKeyRotation</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>EnableKeyRotation</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetKeyRotationStatusRequest.Builder} avoiding the
+     * need to create one manually via {@link GetKeyRotationStatusRequest#builder()}
+     * </p>
+     *
+     * @param getKeyRotationStatusRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest.Builder} to create a request.
+     * @return Result of the GetKeyRotationStatus operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetKeyRotationStatus
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GetKeyRotationStatusResponse getKeyRotationStatus(
+            Consumer<GetKeyRotationStatusRequest.Builder> getKeyRotationStatusRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return getKeyRotationStatus(GetKeyRotationStatusRequest.builder().applyMutation(getKeyRotationStatusRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns the public key and an import token you need to import or reimport key material for a KMS key.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Before calling <code>GetParametersForImport</code>, use the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code> to create a KMS key with no key material. You can import key
+     * material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing
+     * KMS key. You can also import key material into a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a>
+     * of any supported type. However, you can't import key material into a KMS key in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * You can also use <code>GetParametersForImport</code> to get a public key and import token to <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the original key material</a> into a KMS key whose key material expired or was deleted.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> returns the items that you need to import your key material.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The public key (or "wrapping key") of an RSA key pair that KMS generates.
+     * </p>
+     * <p>
+     * You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The public key and its import token are permanently linked and must be used together. Each public key and import
+     * token set is valid for 24 hours. The expiration date and time appear in the <code>ParametersValidTo</code> field
+     * in the <code>GetParametersForImport</code> response. You cannot use an expired public key or import token in an
+     * <a>ImportKeyMaterial</a> request. If your key and token expire, send another <code>GetParametersForImport</code>
+     * request.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> requires the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID of the KMS key for which you are importing the key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The wrapping algorithm that you will use with the public key to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the
+     * same key material.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetParametersForImport</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getParametersForImportRequest
+     * @return Result of the GetParametersForImport operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetParametersForImport
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default GetParametersForImportResponse getParametersForImport(GetParametersForImportRequest getParametersForImportRequest)
+            throws InvalidArnException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            DependencyTimeoutException, NotFoundException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns the public key and an import token you need to import or reimport key material for a KMS key.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Before calling <code>GetParametersForImport</code>, use the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code> to create a KMS key with no key material. You can import key
+     * material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing
+     * KMS key. You can also import key material into a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a>
+     * of any supported type. However, you can't import key material into a KMS key in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * You can also use <code>GetParametersForImport</code> to get a public key and import token to <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the original key material</a> into a KMS key whose key material expired or was deleted.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> returns the items that you need to import your key material.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The public key (or "wrapping key") of an RSA key pair that KMS generates.
+     * </p>
+     * <p>
+     * You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * The public key and its import token are permanently linked and must be used together. Each public key and import
+     * token set is valid for 24 hours. The expiration date and time appear in the <code>ParametersValidTo</code> field
+     * in the <code>GetParametersForImport</code> response. You cannot use an expired public key or import token in an
+     * <a>ImportKeyMaterial</a> request. If your key and token expire, send another <code>GetParametersForImport</code>
+     * request.
+     * </p>
+     * <p>
+     * <code>GetParametersForImport</code> requires the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID of the KMS key for which you are importing the key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The wrapping algorithm that you will use with the public key to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the
+     * same key material.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetParametersForImport</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ImportKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetParametersForImportRequest.Builder} avoiding the
+     * need to create one manually via {@link GetParametersForImportRequest#builder()}
+     * </p>
+     *
+     * @param getParametersForImportRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetParametersForImportRequest.Builder} to create a
+     *        request.
+     * @return Result of the GetParametersForImport operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetParametersForImport
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport" target="_top">AWS
+     *      API Documentation</a>
+     */
+    default GetParametersForImportResponse getParametersForImport(
+            Consumer<GetParametersForImportRequest.Builder> getParametersForImportRequest) throws InvalidArnException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, DependencyTimeoutException,
+            NotFoundException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        return getParametersForImport(GetParametersForImportRequest.builder().applyMutation(getParametersForImportRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never
+     * leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission can download the public key of an
+     * asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures
+     * outside of KMS. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You do not need to download the public key. Instead, you can use the public key within KMS by calling the
+     * <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When
+     * you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part
+     * of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are
+     * not effective outside of KMS.
+     * </p>
+     * <p>
+     * To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns important information
+     * about the public key in the response, including:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec"
+     * >KeySpec</a>: The type of key material in the public key, such as <code>RSA_4096</code> or
+     * <code>ECC_NIST_P521</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage"
+     * >KeyUsage</a>: Whether the key is used for encryption or signing.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms"
+     * >EncryptionAlgorithms</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms"
+     * >SigningAlgorithms</a>: A list of the encryption algorithms or the signing algorithms for the key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this
+     * information to prevent the public key from being used improperly. For example, you can prevent a public signing
+     * key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is
+     * not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification
+     * operation.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetPublicKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>CreateKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param getPublicKeyRequest
+     * @return Result of the GetPublicKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetPublicKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetPublicKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GetPublicKeyResponse getPublicKey(GetPublicKeyRequest getPublicKeyRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, InvalidArnException,
+            InvalidGrantTokenException, InvalidKeyUsageException, KmsInternalException, KmsInvalidStateException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never
+     * leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission can download the public key of an
+     * asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures
+     * outside of KMS. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You do not need to download the public key. Instead, you can use the public key within KMS by calling the
+     * <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When
+     * you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part
+     * of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are
+     * not effective outside of KMS.
+     * </p>
+     * <p>
+     * To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns important information
+     * about the public key in the response, including:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec"
+     * >KeySpec</a>: The type of key material in the public key, such as <code>RSA_4096</code> or
+     * <code>ECC_NIST_P521</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage"
+     * >KeyUsage</a>: Whether the key is used for encryption or signing.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms"
+     * >EncryptionAlgorithms</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms"
+     * >SigningAlgorithms</a>: A list of the encryption algorithms or the signing algorithms for the key.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this
+     * information to prevent the public key from being used improperly. For example, you can prevent a public signing
+     * key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is
+     * not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification
+     * operation.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:GetPublicKey</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>CreateKey</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link GetPublicKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link GetPublicKeyRequest#builder()}
+     * </p>
+     *
+     * @param getPublicKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.GetPublicKeyRequest.Builder} to create a request.
+     * @return Result of the GetPublicKey operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.GetPublicKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetPublicKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default GetPublicKeyResponse getPublicKey(Consumer<GetPublicKeyRequest.Builder> getPublicKeyRequest)
+            throws NotFoundException, DisabledException, KeyUnavailableException, DependencyTimeoutException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, InvalidArnException,
+            InvalidGrantTokenException, InvalidKeyUsageException, KmsInternalException, KmsInvalidStateException,
+            AwsServiceException, SdkClientException, KmsException {
+        return getPublicKey(GetPublicKeyRequest.builder().applyMutation(getPublicKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Imports or reimports key material into an existing KMS key that was created without key material.
+     * <code>ImportKeyMaterial</code> also sets the expiration model and expiration date of the imported key material.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * After you successfully import key material into a KMS key, you can <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the same key material</a> into that KMS key, but you cannot import different key material. You might reimport key
+     * material to replace key material that expired or key material that you deleted. You might also reimport key
+     * material to change the expiration model or expiration date of the key material. Before reimporting key material,
+     * if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material.
+     * </p>
+     * <p>
+     * Each time you import key material into KMS, you can determine whether (<code>ExpirationModel</code>) and when (
+     * <code>ValidTo</code>) the key material expires. To change the expiration of your key material, you must import it
+     * again, either by calling <code>ImportKeyMaterial</code> or using the <a href=
+     * "kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-import-key-material-console"
+     * >import features</a> of the KMS console.
+     * </p>
+     * <p>
+     * Before calling <code>ImportKeyMaterial</code>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Create or identify a KMS key with no key material. The KMS key must have an <code>Origin</code> value of
+     * <code>EXTERNAL</code>, which indicates that the KMS key is designed for imported key material.
+     * </p>
+     * <p>
+     * To create an new KMS key for imported key material, call the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code>. You can create a symmetric encryption KMS key, HMAC KMS key,
+     * asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a <a
+     * href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported type.
+     * However, you can't import key material into a KMS key in a <a
+     * href="kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <a>DescribeKey</a> operation to verify that the <code>KeyState</code> of the KMS key is
+     * <code>PendingImport</code>, which indicates that the KMS key has no key material.
+     * </p>
+     * <p>
+     * If you are reimporting the same key material into an existing KMS key, you might need to call the
+     * <a>DeleteImportedKeyMaterial</a> to delete its existing key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Call the <a>GetParametersForImport</a> operation to get a public key and import token set for importing key
+     * material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the public key in the <a>GetParametersForImport</a> response to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key material and import token. When
+     * calling this operation, you must specify the following values:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID or key ARN of the KMS key to associate with the imported key material. Its <code>Origin</code> must be
+     * <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. You cannot perform this
+     * operation on a KMS key in a <a href="kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a>, or on a KMS key in a different Amazon Web Services account. To get the <code>Origin</code> and
+     * <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The encrypted key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The import token that <a>GetParametersForImport</a> returned. You must use a public key and token from the same
+     * <code>GetParametersForImport</code> response.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether the key material expires (<code>ExpirationModel</code>) and, if so, when (<code>ValidTo</code>). For help
+     * with this choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the
+     * KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material.
+     * However, you can delete and reimport the key material at any time, including before the key material expires.
+     * Each time you reimport, you can eliminate or reset the expiration time.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When this operation is successful, the key state of the KMS key changes from <code>PendingImport</code> to
+     * <code>Enabled</code>, and you can use the KMS key in cryptographic operations.
+     * </p>
+     * <p>
+     * If this operation fails, use the exception to help determine the problem. If the error is related to the key
+     * material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import
+     * token for the KMS key and repeat the import procedure. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To
+     * Import Key Material</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ImportKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param importKeyMaterialRequest
+     * @return Result of the ImportKeyMaterial operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws IncorrectKeyMaterialException
+     *         The request was rejected because the key material in the request is, expired, invalid, or is not the same
+     *         key material that was previously imported into this KMS key.
+     * @throws ExpiredImportTokenException
+     *         The request was rejected because the specified import token is expired. Use <a>GetParametersForImport</a>
+     *         to get a new import token and public key, use the new public key to encrypt the key material, and then
+     *         try the request again.
+     * @throws InvalidImportTokenException
+     *         The request was rejected because the provided import token is invalid or is associated with a different
+     *         KMS key.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ImportKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ImportKeyMaterialResponse importKeyMaterial(ImportKeyMaterialRequest importKeyMaterialRequest)
+            throws InvalidArnException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            DependencyTimeoutException, NotFoundException, KmsInternalException, KmsInvalidStateException,
+            InvalidCiphertextException, IncorrectKeyMaterialException, ExpiredImportTokenException, InvalidImportTokenException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Imports or reimports key material into an existing KMS key that was created without key material.
+     * <code>ImportKeyMaterial</code> also sets the expiration model and expiration date of the imported key material.
+     * </p>
+     * <p>
+     * By default, KMS keys are created with key material that KMS generates. This operation supports <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a>, an
+     * advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key material</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * After you successfully import key material into a KMS key, you can <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
+     * the same key material</a> into that KMS key, but you cannot import different key material. You might reimport key
+     * material to replace key material that expired or key material that you deleted. You might also reimport key
+     * material to change the expiration model or expiration date of the key material. Before reimporting key material,
+     * if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material.
+     * </p>
+     * <p>
+     * Each time you import key material into KMS, you can determine whether (<code>ExpirationModel</code>) and when (
+     * <code>ValidTo</code>) the key material expires. To change the expiration of your key material, you must import it
+     * again, either by calling <code>ImportKeyMaterial</code> or using the <a href=
+     * "kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-import-key-material-console"
+     * >import features</a> of the KMS console.
+     * </p>
+     * <p>
+     * Before calling <code>ImportKeyMaterial</code>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Create or identify a KMS key with no key material. The KMS key must have an <code>Origin</code> value of
+     * <code>EXTERNAL</code>, which indicates that the KMS key is designed for imported key material.
+     * </p>
+     * <p>
+     * To create an new KMS key for imported key material, call the <a>CreateKey</a> operation with an
+     * <code>Origin</code> value of <code>EXTERNAL</code>. You can create a symmetric encryption KMS key, HMAC KMS key,
+     * asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a <a
+     * href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported type.
+     * However, you can't import key material into a KMS key in a <a
+     * href="kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <a>DescribeKey</a> operation to verify that the <code>KeyState</code> of the KMS key is
+     * <code>PendingImport</code>, which indicates that the KMS key has no key material.
+     * </p>
+     * <p>
+     * If you are reimporting the same key material into an existing KMS key, you might need to call the
+     * <a>DeleteImportedKeyMaterial</a> to delete its existing key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Call the <a>GetParametersForImport</a> operation to get a public key and import token set for importing key
+     * material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the public key in the <a>GetParametersForImport</a> response to encrypt your key material.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key material and import token. When
+     * calling this operation, you must specify the following values:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key ID or key ARN of the KMS key to associate with the imported key material. Its <code>Origin</code> must be
+     * <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. You cannot perform this
+     * operation on a KMS key in a <a href="kms/latest/developerguide/custom-key-store-overview.html">custom key
+     * store</a>, or on a KMS key in a different Amazon Web Services account. To get the <code>Origin</code> and
+     * <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The encrypted key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The import token that <a>GetParametersForImport</a> returned. You must use a public key and token from the same
+     * <code>GetParametersForImport</code> response.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Whether the key material expires (<code>ExpirationModel</code>) and, if so, when (<code>ValidTo</code>). For help
+     * with this choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the
+     * KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material.
+     * However, you can delete and reimport the key material at any time, including before the key material expires.
+     * Each time you reimport, you can eliminate or reset the expiration time.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When this operation is successful, the key state of the KMS key changes from <code>PendingImport</code> to
+     * <code>Enabled</code>, and you can use the KMS key in cryptographic operations.
+     * </p>
+     * <p>
+     * If this operation fails, use the exception to help determine the problem. If the error is related to the key
+     * material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import
+     * token for the KMS key and repeat the import procedure. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To
+     * Import Key Material</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ImportKeyMaterial</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>DeleteImportedKeyMaterial</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GetParametersForImport</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ImportKeyMaterialRequest.Builder} avoiding the need
+     * to create one manually via {@link ImportKeyMaterialRequest#builder()}
+     * </p>
+     *
+     * @param importKeyMaterialRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest.Builder} to create a request.
+     * @return Result of the ImportKeyMaterial operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws IncorrectKeyMaterialException
+     *         The request was rejected because the key material in the request is, expired, invalid, or is not the same
+     *         key material that was previously imported into this KMS key.
+     * @throws ExpiredImportTokenException
+     *         The request was rejected because the specified import token is expired. Use <a>GetParametersForImport</a>
+     *         to get a new import token and public key, use the new public key to encrypt the key material, and then
+     *         try the request again.
+     * @throws InvalidImportTokenException
+     *         The request was rejected because the provided import token is invalid or is associated with a different
+     *         KMS key.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ImportKeyMaterial
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ImportKeyMaterialResponse importKeyMaterial(Consumer<ImportKeyMaterialRequest.Builder> importKeyMaterialRequest)
+            throws InvalidArnException, software.amazon.awssdk.services.kms.model.UnsupportedOperationException,
+            DependencyTimeoutException, NotFoundException, KmsInternalException, KmsInvalidStateException,
+            InvalidCiphertextException, IncorrectKeyMaterialException, ExpiredImportTokenException, InvalidImportTokenException,
+            AwsServiceException, SdkClientException, KmsException {
+        return importKeyMaterial(ImportKeyMaterialRequest.builder().applyMutation(importKeyMaterialRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listAliasesRequest
+     * @return Result of the ListAliases operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesResponse listAliases(ListAliasesRequest listAliasesRequest) throws DependencyTimeoutException,
+            InvalidMarkerException, KmsInternalException, InvalidArnException, NotFoundException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListAliasesRequest.Builder} avoiding the need to
+     * create one manually via {@link ListAliasesRequest#builder()}
+     * </p>
+     *
+     * @param listAliasesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListAliasesRequest.Builder} to create a request.
+     * @return Result of the ListAliases operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesResponse listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
+            throws DependencyTimeoutException, InvalidMarkerException, KmsInternalException, InvalidArnException,
+            NotFoundException, AwsServiceException, SdkClientException, KmsException {
+        return listAliases(ListAliasesRequest.builder().applyMutation(listAliasesRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
+     * aliases, see <a>CreateAlias</a>.
+     * </p>
+     * <p>
+     * By default, the <code>ListAliases</code> operation returns all aliases in the account and region. To get only the
+     * aliases associated with a particular KMS key, use the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * The <code>ListAliases</code> response can include aliases that you created and associated with your customer
+     * managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys
+     * in your account. You can recognize Amazon Web Services aliases because their names have the format
+     * <code>aws/&lt;service-name&gt;</code>, such as <code>aws/dynamodb</code>.
+     * </p>
+     * <p>
+     * The response might also include aliases that have no <code>TargetKeyId</code> field. These are predefined aliases
+     * that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services
+     * creates in your account, including predefined aliases, do not count against your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases quota</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. <code>ListAliases</code> does not return aliases in other Amazon Web Services
+     * accounts.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListAliases</a> (IAM policy)
+     * </p>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdateAlias</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return Result of the ListAliases operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see #listAliases(ListAliasesRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesResponse listAliases() throws DependencyTimeoutException, InvalidMarkerException, KmsInternalException,
+            InvalidArnException, NotFoundException, AwsServiceException, SdkClientException, KmsException {
+        return listAliases(ListAliasesRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListAliasesResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+     * </p>
+     *
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see #listAliasesPaginator(ListAliasesRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesIterable listAliasesPaginator() throws DependencyTimeoutException, InvalidMarkerException,
+            KmsInternalException, InvalidArnException, NotFoundException, AwsServiceException, SdkClientException, KmsException {
+        return listAliasesPaginator(ListAliasesRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListAliasesResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+     * </p>
+     *
+     * @param listAliasesRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesIterable listAliasesPaginator(ListAliasesRequest listAliasesRequest) throws DependencyTimeoutException,
+            InvalidMarkerException, KmsInternalException, InvalidArnException, NotFoundException, AwsServiceException,
+            SdkClientException, KmsException {
+        return new ListAliasesIterable(this, listAliasesRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListAliasesResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListAliasesRequest.Builder} avoiding the need to
+     * create one manually via {@link ListAliasesRequest#builder()}
+     * </p>
+     *
+     * @param listAliasesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListAliasesRequest.Builder} to create a request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListAliases
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListAliasesIterable listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
+            throws DependencyTimeoutException, InvalidMarkerException, KmsInternalException, InvalidArnException,
+            NotFoundException, AwsServiceException, SdkClientException, KmsException {
+        return listAliasesPaginator(ListAliasesRequest.builder().applyMutation(listAliasesRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of all grants for the specified KMS key.
+     * </p>
+     * <p>
+     * You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <note>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListGrants</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listGrantsRequest
+     * @return Result of the ListGrants operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListGrantsResponse listGrants(ListGrantsRequest listGrantsRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidMarkerException, InvalidGrantIdException, InvalidArnException,
+            KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a list of all grants for the specified KMS key.
+     * </p>
+     * <p>
+     * You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <note>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListGrants</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListGrantsRequest.Builder} avoiding the need to
+     * create one manually via {@link ListGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListGrantsRequest.Builder} to create a request.
+     * @return Result of the ListGrants operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListGrantsResponse listGrants(Consumer<ListGrantsRequest.Builder> listGrantsRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidMarkerException, InvalidGrantIdException, InvalidArnException,
+            KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return listGrants(ListGrantsRequest.builder().applyMutation(listGrantsRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.
+     * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
+     * handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListGrantsResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.</b>
+     * </p>
+     *
+     * @param listGrantsRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListGrantsIterable listGrantsPaginator(ListGrantsRequest listGrantsRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidMarkerException, InvalidGrantIdException, InvalidArnException,
+            KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return new ListGrantsIterable(this, listGrantsRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.
+     * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
+     * handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListGrantsResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListGrantsRequest.Builder} avoiding the need to
+     * create one manually via {@link ListGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListGrantsRequest.Builder} to create a request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListGrantsIterable listGrantsPaginator(Consumer<ListGrantsRequest.Builder> listGrantsRequest)
+            throws NotFoundException, DependencyTimeoutException, InvalidMarkerException, InvalidGrantIdException,
+            InvalidArnException, KmsInternalException, KmsInvalidStateException, AwsServiceException, SdkClientException,
+            KmsException {
+        return listGrantsPaginator(ListGrantsRequest.builder().applyMutation(listGrantsRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names
+     * that you can use in a <a>GetKeyPolicy</a> operation. However, the only valid policy name is <code>default</code>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListKeyPolicies</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     * @return Result of the ListKeyPolicies operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeyPoliciesResponse listKeyPolicies(ListKeyPoliciesRequest listKeyPoliciesRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names
+     * that you can use in a <a>GetKeyPolicy</a> operation. However, the only valid policy name is <code>default</code>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListKeyPolicies</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>GetKeyPolicy</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeyPoliciesRequest.Builder} avoiding the need
+     * to create one manually via {@link ListKeyPoliciesRequest#builder()}
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest.Builder} to create a request.
+     * @return Result of the ListKeyPolicies operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeyPoliciesResponse listKeyPolicies(Consumer<ListKeyPoliciesRequest.Builder> listKeyPoliciesRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return listKeyPolicies(ListKeyPoliciesRequest.builder().applyMutation(listKeyPoliciesRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)} operation.</b>
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeyPoliciesIterable listKeyPoliciesPaginator(ListKeyPoliciesRequest listKeyPoliciesRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return new ListKeyPoliciesIterable(this, listKeyPoliciesRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeyPoliciesRequest.Builder} avoiding the need
+     * to create one manually via {@link ListKeyPoliciesRequest#builder()}
+     * </p>
+     *
+     * @param listKeyPoliciesRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest.Builder} to create a request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeyPolicies
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeyPoliciesIterable listKeyPoliciesPaginator(Consumer<ListKeyPoliciesRequest.Builder> listKeyPoliciesRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return listKeyPoliciesPaginator(ListKeyPoliciesRequest.builder().applyMutation(listKeyPoliciesRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listKeysRequest
+     * @return Result of the ListKeys operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysResponse listKeys(ListKeysRequest listKeysRequest) throws DependencyTimeoutException, KmsInternalException,
+            InvalidMarkerException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeysRequest.Builder} avoiding the need to
+     * create one manually via {@link ListKeysRequest#builder()}
+     * </p>
+     *
+     * @param listKeysRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeysRequest.Builder} to create a request.
+     * @return Result of the ListKeys operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysResponse listKeys(Consumer<ListKeysRequest.Builder> listKeysRequest) throws DependencyTimeoutException,
+            KmsInternalException, InvalidMarkerException, AwsServiceException, SdkClientException, KmsException {
+        return listKeys(ListKeysRequest.builder().applyMutation(listKeysRequest).build());
+    }
+
+    /**
+     * <p>
+     * Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a>
+     * (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return Result of the ListKeys operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see #listKeys(ListKeysRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysResponse listKeys() throws DependencyTimeoutException, KmsInternalException, InvalidMarkerException,
+            AwsServiceException, SdkClientException, KmsException {
+        return listKeys(ListKeysRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation. The
+     * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
+     * making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListKeysResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+     * </p>
+     *
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see #listKeysPaginator(ListKeysRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysIterable listKeysPaginator() throws DependencyTimeoutException, KmsInternalException, InvalidMarkerException,
+            AwsServiceException, SdkClientException, KmsException {
+        return listKeysPaginator(ListKeysRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation. The
+     * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
+     * making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListKeysResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+     * </p>
+     *
+     * @param listKeysRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysIterable listKeysPaginator(ListKeysRequest listKeysRequest) throws DependencyTimeoutException,
+            KmsInternalException, InvalidMarkerException, AwsServiceException, SdkClientException, KmsException {
+        return new ListKeysIterable(this, listKeysRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation. The
+     * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
+     * making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListKeysResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListKeysRequest.Builder} avoiding the need to
+     * create one manually via {@link ListKeysRequest#builder()}
+     * </p>
+     *
+     * @param listKeysRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListKeysRequest.Builder} to create a request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListKeys
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListKeysIterable listKeysPaginator(Consumer<ListKeysRequest.Builder> listKeysRequest)
+            throws DependencyTimeoutException, KmsInternalException, InvalidMarkerException, AwsServiceException,
+            SdkClientException, KmsException {
+        return listKeysPaginator(ListKeysRequest.builder().applyMutation(listKeysRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns all tags on the specified KMS key.
+     * </p>
+     * <p>
+     * For general information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>. For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListResourceTags</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     * @return Result of the ListResourceTags operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListResourceTagsResponse listResourceTags(ListResourceTagsRequest listResourceTagsRequest)
+            throws KmsInternalException, NotFoundException, InvalidArnException, InvalidMarkerException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns all tags on the specified KMS key.
+     * </p>
+     * <p>
+     * For general information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>. For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListResourceTags</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListResourceTagsRequest.Builder} avoiding the need
+     * to create one manually via {@link ListResourceTagsRequest#builder()}
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListResourceTagsRequest.Builder} to create a request.
+     * @return Result of the ListResourceTags operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListResourceTagsResponse listResourceTags(Consumer<ListResourceTagsRequest.Builder> listResourceTagsRequest)
+            throws KmsInternalException, NotFoundException, InvalidArnException, InvalidMarkerException, AwsServiceException,
+            SdkClientException, KmsException {
+        return listResourceTags(ListResourceTagsRequest.builder().applyMutation(listResourceTagsRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListResourceTagsResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)} operation.</b>
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListResourceTagsIterable listResourceTagsPaginator(ListResourceTagsRequest listResourceTagsRequest)
+            throws KmsInternalException, NotFoundException, InvalidArnException, InvalidMarkerException, AwsServiceException,
+            SdkClientException, KmsException {
+        return new ListResourceTagsIterable(this, listResourceTagsRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)}
+     * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
+     * internally handle making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListResourceTagsResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListResourceTagsRequest.Builder} avoiding the need
+     * to create one manually via {@link ListResourceTagsRequest#builder()}
+     * </p>
+     *
+     * @param listResourceTagsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListResourceTagsRequest.Builder} to create a request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListResourceTags
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListResourceTagsIterable listResourceTagsPaginator(Consumer<ListResourceTagsRequest.Builder> listResourceTagsRequest)
+            throws KmsInternalException, NotFoundException, InvalidArnException, InvalidMarkerException, AwsServiceException,
+            SdkClientException, KmsException {
+        return listResourceTagsPaginator(ListResourceTagsRequest.builder().applyMutation(listResourceTagsRequest).build());
+    }
+
+    /**
+     * <p>
+     * Returns information about all grants in the Amazon Web Services account and Region that have the specified
+     * retiring principal.
+     * </p>
+     * <p>
+     * You can specify any principal in your Amazon Web Services account. The grants that are returned include grants
+     * for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
+     * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: You must specify a principal in your Amazon Web Services account. This operation
+     * returns a list of grants where the retiring principal specified in the <code>ListRetirableGrants</code> request
+     * is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web
+     * Services accounts, but you do not need <code>kms:ListRetirableGrants</code> permission (or any other additional
+     * permission) in any Amazon Web Services account other than your own.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.
+     * </p>
+     * <note>
+     * <p>
+     * KMS authorizes <code>ListRetirableGrants</code> requests by evaluating the caller account's
+     * kms:ListRetirableGrants permissions. The authorized resource in <code>ListRetirableGrants</code> calls is the
+     * retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their
+     * access to any KMS keys or grants that might be returned by the <code>ListRetirableGrants</code> call.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     * @return Result of the ListRetirableGrants operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListRetirableGrantsResponse listRetirableGrants(ListRetirableGrantsRequest listRetirableGrantsRequest)
+            throws DependencyTimeoutException, InvalidMarkerException, InvalidArnException, NotFoundException,
+            KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Returns information about all grants in the Amazon Web Services account and Region that have the specified
+     * retiring principal.
+     * </p>
+     * <p>
+     * You can specify any principal in your Amazon Web Services account. The grants that are returned include grants
+     * for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
+     * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: You must specify a principal in your Amazon Web Services account. This operation
+     * returns a list of grants where the retiring principal specified in the <code>ListRetirableGrants</code> request
+     * is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web
+     * Services accounts, but you do not need <code>kms:ListRetirableGrants</code> permission (or any other additional
+     * permission) in any Amazon Web Services account other than your own.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.
+     * </p>
+     * <note>
+     * <p>
+     * KMS authorizes <code>ListRetirableGrants</code> requests by evaluating the caller account's
+     * kms:ListRetirableGrants permissions. The authorized resource in <code>ListRetirableGrants</code> calls is the
+     * retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their
+     * access to any KMS keys or grants that might be returned by the <code>ListRetirableGrants</code> call.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListRetirableGrantsRequest.Builder} avoiding the
+     * need to create one manually via {@link ListRetirableGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest.Builder} to create a request.
+     * @return Result of the ListRetirableGrants operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListRetirableGrantsResponse listRetirableGrants(
+            Consumer<ListRetirableGrantsRequest.Builder> listRetirableGrantsRequest) throws DependencyTimeoutException,
+            InvalidMarkerException, InvalidArnException, NotFoundException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        return listRetirableGrants(ListRetirableGrantsRequest.builder().applyMutation(listRetirableGrantsRequest).build());
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation. The
+     * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
+     * making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client.listRetirableGrantsPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client
+     *             .listRetirableGrantsPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client.listRetirableGrantsPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation.</b>
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListRetirableGrantsIterable listRetirableGrantsPaginator(ListRetirableGrantsRequest listRetirableGrantsRequest)
+            throws DependencyTimeoutException, InvalidMarkerException, InvalidArnException, NotFoundException,
+            KmsInternalException, AwsServiceException, SdkClientException, KmsException {
+        return new ListRetirableGrantsIterable(this, listRetirableGrantsRequest);
+    }
+
+    /**
+     * <p>
+     * This is a variant of
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation. The
+     * return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
+     * making service calls for you.
+     * </p>
+     * <p>
+     * When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no
+     * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response
+     * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your
+     * request, you will see the failures only after you start iterating through the iterable.
+     * </p>
+     *
+     * <p>
+     * The following are few ways to iterate through the response pages:
+     * </p>
+     * 1) Using a Stream
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client.listRetirableGrantsPaginator(request);
+     * responses.stream().forEach(....);
+     * }
+     * </pre>
+     *
+     * 2) Using For loop
+     * 
+     * <pre>
+     * {
+     *     &#064;code
+     *     software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client
+     *             .listRetirableGrantsPaginator(request);
+     *     for (software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse response : responses) {
+     *         // do something;
+     *     }
+     * }
+     * </pre>
+     *
+     * 3) Use iterator directly
+     * 
+     * <pre>
+     * {@code
+     * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client.listRetirableGrantsPaginator(request);
+     * responses.iterator().forEachRemaining(....);
+     * }
+     * </pre>
+     * <p>
+     * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+     * only limits the number of results in each page.</b>
+     * </p>
+     * <p>
+     * <b>Note: If you prefer to have control on service calls, use the
+     * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation.</b>
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ListRetirableGrantsRequest.Builder} avoiding the
+     * need to create one manually via {@link ListRetirableGrantsRequest#builder()}
+     * </p>
+     *
+     * @param listRetirableGrantsRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest.Builder} to create a request.
+     * @return A custom iterable that can be used to iterate through all the response pages.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidMarkerException
+     *         The request was rejected because the marker that specifies where pagination should next begin is not
+     *         valid.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ListRetirableGrants
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ListRetirableGrantsIterable listRetirableGrantsPaginator(
+            Consumer<ListRetirableGrantsRequest.Builder> listRetirableGrantsRequest) throws DependencyTimeoutException,
+            InvalidMarkerException, InvalidArnException, NotFoundException, KmsInternalException, AwsServiceException,
+            SdkClientException, KmsException {
+        return listRetirableGrantsPaginator(ListRetirableGrantsRequest.builder().applyMutation(listRetirableGrantsRequest)
+                .build());
+    }
+
+    /**
+     * <p>
+     * Attaches a key policy to the specified KMS key.
+     * </p>
+     * <p>
+     * For more information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key
+     * Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple
+     * programming languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a
+     * key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:PutKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GetKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param putKeyPolicyRequest
+     * @return Result of the PutKeyPolicy operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.PutKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default PutKeyPolicyResponse putKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest) throws NotFoundException,
+            InvalidArnException, MalformedPolicyDocumentException, DependencyTimeoutException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, KmsInternalException,
+            LimitExceededException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Attaches a key policy to the specified KMS key.
+     * </p>
+     * <p>
+     * For more information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key
+     * Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple
+     * programming languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a
+     * key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:PutKeyPolicy</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GetKeyPolicy</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link PutKeyPolicyRequest.Builder} avoiding the need to
+     * create one manually via {@link PutKeyPolicyRequest#builder()}
+     * </p>
+     *
+     * @param putKeyPolicyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest.Builder} to create a request.
+     * @return Result of the PutKeyPolicy operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.PutKeyPolicy
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default PutKeyPolicyResponse putKeyPolicy(Consumer<PutKeyPolicyRequest.Builder> putKeyPolicyRequest)
+            throws NotFoundException, InvalidArnException, MalformedPolicyDocumentException, DependencyTimeoutException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, KmsInternalException,
+            LimitExceededException, KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return putKeyPolicy(PutKeyPolicyRequest.builder().applyMutation(putKeyPolicyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key
+     * under which data is encrypted, such as when you <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
+     * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt
+     * ciphertext under the same KMS key, such as to change the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>
+     * of a ciphertext.
+     * </p>
+     * <p>
+     * The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS
+     * operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by
+     * using the public key of an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
+     * KMS key</a> outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>
+     * or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * When you use the <code>ReEncrypt</code> operation, you need to provide information for the decrypt operation and
+     * the subsequent encrypt operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under an asymmetric KMS key, you must use the <code>SourceKeyId</code> parameter
+     * to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was
+     * used. This information is required to decrypt the data.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under a symmetric encryption KMS key, the <code>SourceKeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always
+     * recommended as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key, KMS
+     * uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the
+     * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter to specify the KMS key that
+     * re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also
+     * provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important></li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services
+     * accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a
+     * different account, you must use its key ARN or alias ARN.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:
+     * ReEncryptFrom</a> permission on the source KMS key (key policy)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo
+     * </a> permission on the destination KMS key (key policy)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code> permission in your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
+     * automatically included in the key policy when you use the console to create a KMS key. But you must include it
+     * manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a
+     * key policy.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param reEncryptRequest
+     * @return Result of the ReEncrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws IncorrectKeyException
+     *         The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in
+     *         a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the
+     *         same KMS key that was used to encrypt the ciphertext.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ReEncrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ReEncryptResponse reEncrypt(ReEncryptRequest reEncryptRequest) throws NotFoundException, DisabledException,
+            InvalidCiphertextException, KeyUnavailableException, IncorrectKeyException, DependencyTimeoutException,
+            InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key
+     * under which data is encrypted, such as when you <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
+     * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt
+     * ciphertext under the same KMS key, such as to change the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>
+     * of a ciphertext.
+     * </p>
+     * <p>
+     * The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS
+     * operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by
+     * using the public key of an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
+     * KMS key</a> outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the <a
+     * href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>
+     * or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side
+     * encryption</a>. These libraries return a ciphertext format that is incompatible with KMS.
+     * </p>
+     * <p>
+     * When you use the <code>ReEncrypt</code> operation, you need to provide information for the decrypt operation and
+     * the subsequent encrypt operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under an asymmetric KMS key, you must use the <code>SourceKeyId</code> parameter
+     * to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was
+     * used. This information is required to decrypt the data.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * If your ciphertext was encrypted under a symmetric encryption KMS key, the <code>SourceKeyId</code> parameter is
+     * optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature
+     * adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it
+     * was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always
+     * recommended as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key, KMS
+     * uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the
+     * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter to specify the KMS key that
+     * re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also
+     * provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption
+     * algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you
+     * decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt
+     * operation fails.
+     * </p>
+     * <p>
+     * You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS
+     * keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext
+     * generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable
+     * fields.
+     * </p>
+     * </important></li>
+     * </ul>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services
+     * accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a
+     * different account, you must use its key ARN or alias ARN.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:
+     * ReEncryptFrom</a> permission on the source KMS key (key policy)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo
+     * </a> permission on the destination KMS key (key policy)
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code> permission in your <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
+     * automatically included in the key policy when you use the console to create a KMS key. But you must include it
+     * manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a
+     * key policy.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>Decrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>Encrypt</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>GenerateDataKeyPair</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ReEncryptRequest.Builder} avoiding the need to
+     * create one manually via {@link ReEncryptRequest#builder()}
+     * </p>
+     *
+     * @param reEncryptRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ReEncryptRequest.Builder} to create a request.
+     * @return Result of the ReEncrypt operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidCiphertextException
+     *         From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified
+     *         ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption
+     *         context, is corrupted, missing, or otherwise invalid.</p>
+     *         <p>
+     *         From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the
+     *         encrypted (wrapped) key material.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws IncorrectKeyException
+     *         The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in
+     *         a <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the
+     *         same KMS key that was used to encrypt the ciphertext.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ReEncrypt
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ReEncryptResponse reEncrypt(Consumer<ReEncryptRequest.Builder> reEncryptRequest) throws NotFoundException,
+            DisabledException, InvalidCiphertextException, KeyUnavailableException, IncorrectKeyException,
+            DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        return reEncrypt(ReEncryptRequest.builder().applyMutation(reEncryptRequest).build());
+    }
+
+    /**
+     * <p>
+     * Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based
+     * on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create
+     * multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key,
+     * use the <a>CreateKey</a> operation.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * A <i>replica key</i> is a fully-functional KMS key that can be used independently of its primary and peer replica
+     * keys. A primary key and its replica keys share properties that make them interoperable. They have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key
+     * material. They also have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation
+     * status</a>. KMS automatically synchronizes these shared properties among related multi-Region keys. All other
+     * properties of a replica key can differ, including its <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. KMS
+     * pricing and quotas for KMS keys apply to each primary key and replica key.
+     * </p>
+     * <p>
+     * When this operation completes, the new replica key has a transient key state of <code>Creating</code>. This key
+     * state changes to <code>Enabled</code> (or <code>PendingImport</code>) after a few seconds when the process of
+     * creating the new replica key is complete. While the key state is <code>Creating</code>, you can manage key, but
+     * you cannot yet use it in cryptographic operations. If you are creating and using the replica key
+     * programmatically, retry on <code>KMSInvalidStateException</code> or call <code>DescribeKey</code> to check its
+     * <code>KeyState</code> value before using it. For details about the <code>Creating</code> key state, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica
+     * of the key you're trying to replicate, <code>ReplicateKey</code> returns an <code>AlreadyExistsException</code>
+     * error. If the key state of the existing replica is <code>PendingDeletion</code>, you can cancel the scheduled key
+     * deletion (<a>CancelKeyDeletion</a>) or wait for the key to be deleted. The new replica key you create will have
+     * the same <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties"
+     * >shared properties</a> as the original replica key.
+     * </p>
+     * <p>
+     * The CloudTrail log of a <code>ReplicateKey</code> operation records a <code>ReplicateKey</code> operation in the
+     * primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.
+     * </p>
+     * <p>
+     * If you replicate a multi-Region primary key with imported key material, the replica key is created with no key
+     * material. You must import the same key material that you imported into the primary key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html">Importing key material
+     * into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <note>
+     * <p>
+     * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and <code>Tags</code>
+     * parameters than those used in the KMS console. For details, see the parameter descriptions.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a replica key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this permission in the
+     * primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:CreateKey</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To use the <code>Tags</code> parameter, <code>kms:TagResource</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdatePrimaryRegion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param replicateKeyRequest
+     * @return Result of the ReplicateKey operation returned by the service.
+     * @throws AlreadyExistsException
+     *         The request was rejected because it attempted to create a resource that already exists.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ReplicateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReplicateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ReplicateKeyResponse replicateKey(ReplicateKeyRequest replicateKeyRequest) throws AlreadyExistsException,
+            DisabledException, InvalidArnException, KmsInvalidStateException, KmsInternalException, LimitExceededException,
+            MalformedPolicyDocumentException, NotFoundException, TagException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based
+     * on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create
+     * multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key,
+     * use the <a>CreateKey</a> operation.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * A <i>replica key</i> is a fully-functional KMS key that can be used independently of its primary and peer replica
+     * keys. A primary key and its replica keys share properties that make them interoperable. They have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key
+     * material. They also have the same <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation
+     * status</a>. KMS automatically synchronizes these shared properties among related multi-Region keys. All other
+     * properties of a replica key can differ, including its <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. KMS
+     * pricing and quotas for KMS keys apply to each primary key and replica key.
+     * </p>
+     * <p>
+     * When this operation completes, the new replica key has a transient key state of <code>Creating</code>. This key
+     * state changes to <code>Enabled</code> (or <code>PendingImport</code>) after a few seconds when the process of
+     * creating the new replica key is complete. While the key state is <code>Creating</code>, you can manage key, but
+     * you cannot yet use it in cryptographic operations. If you are creating and using the replica key
+     * programmatically, retry on <code>KMSInvalidStateException</code> or call <code>DescribeKey</code> to check its
+     * <code>KeyState</code> value before using it. For details about the <code>Creating</code> key state, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica
+     * of the key you're trying to replicate, <code>ReplicateKey</code> returns an <code>AlreadyExistsException</code>
+     * error. If the key state of the existing replica is <code>PendingDeletion</code>, you can cancel the scheduled key
+     * deletion (<a>CancelKeyDeletion</a>) or wait for the key to be deleted. The new replica key you create will have
+     * the same <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties"
+     * >shared properties</a> as the original replica key.
+     * </p>
+     * <p>
+     * The CloudTrail log of a <code>ReplicateKey</code> operation records a <code>ReplicateKey</code> operation in the
+     * primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.
+     * </p>
+     * <p>
+     * If you replicate a multi-Region primary key with imported key material, the replica key is created with no key
+     * material. You must import the same key material that you imported into the primary key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html">Importing key material
+     * into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a> operation.
+     * </p>
+     * <note>
+     * <p>
+     * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and <code>Tags</code>
+     * parameters than those used in the KMS console. For details, see the parameter descriptions.
+     * </p>
+     * </note>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation to create a replica key in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this permission in the
+     * primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:CreateKey</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * To use the <code>Tags</code> parameter, <code>kms:TagResource</code> in an IAM policy in the replica Region.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UpdatePrimaryRegion</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ReplicateKeyRequest.Builder} avoiding the need to
+     * create one manually via {@link ReplicateKeyRequest#builder()}
+     * </p>
+     *
+     * @param replicateKeyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ReplicateKeyRequest.Builder} to create a request.
+     * @return Result of the ReplicateKey operation returned by the service.
+     * @throws AlreadyExistsException
+     *         The request was rejected because it attempted to create a resource that already exists.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws MalformedPolicyDocumentException
+     *         The request was rejected because the specified policy is not syntactically or semantically correct.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ReplicateKey
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReplicateKey" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ReplicateKeyResponse replicateKey(Consumer<ReplicateKeyRequest.Builder> replicateKeyRequest)
+            throws AlreadyExistsException, DisabledException, InvalidArnException, KmsInvalidStateException,
+            KmsInternalException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return replicateKey(ReplicateKeyRequest.builder().applyMutation(replicateKeyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param retireGrantRequest
+     * @return Result of the RetireGrant operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default RetireGrantResponse retireGrant(RetireGrantRequest retireGrantRequest) throws InvalidArnException,
+            InvalidGrantTokenException, InvalidGrantIdException, NotFoundException, DependencyTimeoutException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link RetireGrantRequest.Builder} avoiding the need to
+     * create one manually via {@link RetireGrantRequest#builder()}
+     * </p>
+     *
+     * @param retireGrantRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.RetireGrantRequest.Builder} to create a request.
+     * @return Result of the RetireGrant operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RetireGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default RetireGrantResponse retireGrant(Consumer<RetireGrantRequest.Builder> retireGrantRequest) throws InvalidArnException,
+            InvalidGrantTokenException, InvalidGrantIdException, NotFoundException, DependencyTimeoutException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return retireGrant(RetireGrantRequest.builder().applyMutation(retireGrantRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to
+     * retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant
+     * token</a>, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a>
+     * operation returns both values.
+     * </p>
+     * <p>
+     * This operation can be called by the <i>retiring principal</i> for a grant, by the <i>grantee principal</i> if the
+     * grant allows the <code>RetireGrant</code> operation, and by the Amazon Web Services account in which the grant is
+     * created. It can also be called by principals to whom permission for retiring a grant is delegated. For details,
+     * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: Permission to retire a grant is determined primarily by the grant. For details, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RevokeGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @return Result of the RetireGrant operation returned by the service.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RetireGrant
+     * @see #retireGrant(RetireGrantRequest)
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default RetireGrantResponse retireGrant() throws InvalidArnException, InvalidGrantTokenException, InvalidGrantIdException,
+            NotFoundException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException,
+            DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        return retireGrant(RetireGrantRequest.builder().build());
+    }
+
+    /**
+     * <p>
+     * Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more
+     * information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:RevokeGrant</a> (key policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param revokeGrantRequest
+     * @return Result of the RevokeGrant operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RevokeGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default RevokeGrantResponse revokeGrant(RevokeGrantRequest revokeGrantRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidArnException, InvalidGrantIdException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more
+     * information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and
+     * revoking grants</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until
+     * the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * For detailed information about grants, including grant terminology, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Grants in KMS</a> in the <i> <i>Key
+     * Management Service Developer Guide</i> </i>. For examples of working with grants in several programming
+     * languages, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account,
+     * specify the key ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:RevokeGrant</a> (key policy).
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateGrant</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListRetirableGrants</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>RetireGrant</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link RevokeGrantRequest.Builder} avoiding the need to
+     * create one manually via {@link RevokeGrantRequest#builder()}
+     * </p>
+     *
+     * @param revokeGrantRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.RevokeGrantRequest.Builder} to create a request.
+     * @return Result of the RevokeGrant operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws InvalidGrantIdException
+     *         The request was rejected because the specified <code>GrantId</code> is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.RevokeGrant
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default RevokeGrantResponse revokeGrant(Consumer<RevokeGrantRequest.Builder> revokeGrantRequest) throws NotFoundException,
+            DependencyTimeoutException, InvalidArnException, InvalidGrantIdException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        return revokeGrant(RevokeGrantRequest.builder().applyMutation(revokeGrantRequest).build());
+    }
+
+    /**
+     * <p>
+     * Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a
+     * waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to
+     * <code>PendingDeletion</code> and the key can't be used in any cryptographic operations. It remains in this state
+     * for the duration of the waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
+     * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and
+     * all KMS data associated with it, including all aliases that refer to it.
+     * </p>
+     * <important>
+     * <p>
+     * Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that
+     * was encrypted under the KMS key is unrecoverable. (The only exception is a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">multi-Region replica
+     * key</a>, or an <a href="kms/latest/developerguide/importing-keys-managing.html#import-delete-key">asymmetric or
+     * HMAC KMS key with imported key material</a>.) To prevent the use of a KMS key without deleting it, use
+     * <a>DisableKey</a>.
+     * </p>
+     * </important>
+     * <p>
+     * You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will
+     * not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key
+     * with replicas, its key state changes to <code>PendingReplicaDeletion</code> and it cannot be replicated or used
+     * in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted
+     * (not just scheduled), the key state of the primary key changes to <code>PendingDeletion</code> and its waiting
+     * period (<code>PendingWindowInDays</code>) begins. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region
+     * keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-cmk-keystore.html">deletes a KMS
+     * key from an CloudHSM key store</a>, it makes a best effort to delete the associated key material from the
+     * associated CloudHSM cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-xks-key.html">Deleting a KMS key from an
+     * external key store</a> has no effect on the associated external key. However, for both types of custom key
+     * stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS
+     * key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external
+     * key store by creating a new KMS key with the same key material.
+     * </p>
+     * <p>
+     * For more information about scheduling a KMS key for deletion, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CancelKeyDeletion</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisableKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param scheduleKeyDeletionRequest
+     * @return Result of the ScheduleKeyDeletion operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ScheduleKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ScheduleKeyDeletionResponse scheduleKeyDeletion(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a
+     * waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to
+     * <code>PendingDeletion</code> and the key can't be used in any cryptographic operations. It remains in this state
+     * for the duration of the waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
+     * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and
+     * all KMS data associated with it, including all aliases that refer to it.
+     * </p>
+     * <important>
+     * <p>
+     * Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that
+     * was encrypted under the KMS key is unrecoverable. (The only exception is a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">multi-Region replica
+     * key</a>, or an <a href="kms/latest/developerguide/importing-keys-managing.html#import-delete-key">asymmetric or
+     * HMAC KMS key with imported key material</a>.) To prevent the use of a KMS key without deleting it, use
+     * <a>DisableKey</a>.
+     * </p>
+     * </important>
+     * <p>
+     * You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will
+     * not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key
+     * with replicas, its key state changes to <code>PendingReplicaDeletion</code> and it cannot be replicated or used
+     * in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted
+     * (not just scheduled), the key state of the primary key changes to <code>PendingDeletion</code> and its waiting
+     * period (<code>PendingWindowInDays</code>) begins. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region
+     * keys</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-cmk-keystore.html">deletes a KMS
+     * key from an CloudHSM key store</a>, it makes a best effort to delete the associated key material from the
+     * associated CloudHSM cluster. However, you might need to manually <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete
+     * the orphaned key material</a> from the cluster and its backups. <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/delete-xks-key.html">Deleting a KMS key from an
+     * external key store</a> has no effect on the associated external key. However, for both types of custom key
+     * stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS
+     * key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external
+     * key store by creating a new KMS key with the same key material.
+     * </p>
+     * <p>
+     * For more information about scheduling a KMS key for deletion, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CancelKeyDeletion</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisableKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link ScheduleKeyDeletionRequest.Builder} avoiding the
+     * need to create one manually via {@link ScheduleKeyDeletionRequest#builder()}
+     * </p>
+     *
+     * @param scheduleKeyDeletionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest.Builder} to create a request.
+     * @return Result of the ScheduleKeyDeletion operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.ScheduleKeyDeletion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default ScheduleKeyDeletionResponse scheduleKeyDeletion(
+            Consumer<ScheduleKeyDeletionRequest.Builder> scheduleKeyDeletionRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        return scheduleKeyDeletion(ScheduleKeyDeletionRequest.builder().applyMutation(scheduleKeyDeletionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signature</a> for a message or
+     * message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the
+     * <a>Verify</a> operation, or use the public key in the same asymmetric KMS key outside of KMS. For information
+     * about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is
+     * represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a
+     * message. Anyone with the public key can verify that the message was signed with that particular private key and
+     * that the message hasn't changed since it was signed.
+     * </p>
+     * <p>
+     * To use the <code>Sign</code> operation, provide the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a <code>KeyUsage</code> value of
+     * <code>SIGN_VERIFY</code>. To get the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
+     * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <code>Message</code> parameter to specify the message or message digest to sign. You can submit messages
+     * of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash
+     * digest in the <code>Message</code> parameter. To indicate whether the message is a full message or a digest, use
+     * the <code>MessageType</code> parameter.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Choose a signing algorithm that is compatible with the KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <important>
+     * <p>
+     * When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to
+     * verify the signature.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signature is effective. This deters an attack
+     * where the actor uses a signed message to establish validity repeatedly or long after the message is superseded.
+     * Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect
+     * when its time to refresh the signature.
+     * </p>
+     * </note>
+     * <p>
+     * To verify the signature that this operation generates, use the <a>Verify</a> operation. Or use the
+     * <a>GetPublicKey</a> operation to download the public key and then use the public key to verify the signature
+     * outside of KMS.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key
+     * policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Verify</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param signRequest
+     * @return Result of the Sign operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Sign
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Sign" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default SignResponse sign(SignRequest signRequest) throws NotFoundException, DisabledException, KeyUnavailableException,
+            DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signature</a> for a message or
+     * message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the
+     * <a>Verify</a> operation, or use the public key in the same asymmetric KMS key outside of KMS. For information
+     * about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is
+     * represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a
+     * message. Anyone with the public key can verify that the message was signed with that particular private key and
+     * that the message hasn't changed since it was signed.
+     * </p>
+     * <p>
+     * To use the <code>Sign</code> operation, provide the following information:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a <code>KeyUsage</code> value of
+     * <code>SIGN_VERIFY</code>. To get the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
+     * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Use the <code>Message</code> parameter to specify the message or message digest to sign. You can submit messages
+     * of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash
+     * digest in the <code>Message</code> parameter. To indicate whether the message is a full message or a digest, use
+     * the <code>MessageType</code> parameter.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Choose a signing algorithm that is compatible with the KMS key.
+     * </p>
+     * </li>
+     * </ul>
+     * <important>
+     * <p>
+     * When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to
+     * verify the signature.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Best practices recommend that you limit the time during which any signature is effective. This deters an attack
+     * where the actor uses a signed message to establish validity repeatedly or long after the message is superseded.
+     * Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect
+     * when its time to refresh the signature.
+     * </p>
+     * </note>
+     * <p>
+     * To verify the signature that this operation generates, use the <a>Verify</a> operation. Or use the
+     * <a>GetPublicKey</a> operation to download the public key and then use the public key to verify the signature
+     * outside of KMS.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key
+     * policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Verify</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link SignRequest.Builder} avoiding the need to create
+     * one manually via {@link SignRequest#builder()}
+     * </p>
+     *
+     * @param signRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.SignRequest.Builder} to create a request.
+     * @return Result of the Sign operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Sign
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Sign" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default SignResponse sign(Consumer<SignRequest.Builder> signRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return sign(SignRequest.builder().applyMutation(signRequest).build());
+    }
+
+    /**
+     * <p>
+     * Adds or edits tags on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an
+     * empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
+     * key and a new tag value.
+     * </p>
+     * <p>
+     * You can use this operation to tag a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>,
+     * but you cannot tag an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>, an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned key</a>, a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>,
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.
+     * </p>
+     * <p>
+     * You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param tagResourceRequest
+     * @return Result of the TagResource operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.TagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws KmsInternalException,
+            NotFoundException, InvalidArnException, KmsInvalidStateException, LimitExceededException, TagException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Adds or edits tags on a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an
+     * empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
+     * key and a new tag value.
+     * </p>
+     * <p>
+     * You can use this operation to tag a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>,
+     * but you cannot tag an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>, an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services
+     * owned key</a>, a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>,
+     * or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.
+     * </p>
+     * <p>
+     * You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>UntagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
+     * create one manually via {@link TagResourceRequest#builder()}
+     * </p>
+     *
+     * @param tagResourceRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.TagResourceRequest.Builder} to create a request.
+     * @return Result of the TagResource operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.TagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws KmsInternalException,
+            NotFoundException, InvalidArnException, KmsInvalidStateException, LimitExceededException, TagException,
+            AwsServiceException, SdkClientException, KmsException {
+        return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
+    }
+
+    /**
+     * <p>
+     * Deletes tags from a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * To delete a tag, specify the tag key and the KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * When it succeeds, the <code>UntagResource</code> operation doesn't return any output. Also, if the specified tag
+     * key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation
+     * worked, use the <a>ListResourceTags</a> operation.
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UntagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param untagResourceRequest
+     * @return Result of the UntagResource operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UntagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws KmsInternalException,
+            NotFoundException, InvalidArnException, KmsInvalidStateException, TagException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Deletes tags from a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * To delete a tag, specify the tag key and the KMS key.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * When it succeeds, the <code>UntagResource</code> operation doesn't return any output. Also, if the specified tag
+     * key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation
+     * worked, use the <a>ListResourceTags</a> operation.
+     * </p>
+     * <p>
+     * For information about using tags in KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general
+     * information about tags, including the format and syntax, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
+     * in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UntagResource</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListResourceTags</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>TagResource</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
+     * create one manually via {@link UntagResourceRequest#builder()}
+     * </p>
+     *
+     * @param untagResourceRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UntagResourceRequest.Builder} to create a request.
+     * @return Result of the UntagResource operation returned by the service.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws TagException
+     *         The request was rejected because one or more tags are not valid.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UntagResource
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
+            throws KmsInternalException, NotFoundException, InvalidArnException, KmsInvalidStateException, TagException,
+            AwsServiceException, SdkClientException, KmsException {
+        return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
+    }
+
+    /**
+     * <p>
+     * Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a
+     * time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web
+     * Services account and Region.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must
+     * have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias
+     * to a different type of KMS key, use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to create a
+     * new alias.
+     * </p>
+     * <p>
+     * You cannot use <code>UpdateAlias</code> to change an alias name. To change an alias name, use <a>DeleteAlias</a>
+     * to delete the old alias and <a>CreateAlias</a> to create a new alias.
+     * </p>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key
+     * without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation.
+     * To get the aliases of all KMS keys in the account, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the current KMS key (key policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the new KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateAliasRequest
+     * @return Result of the UpdateAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdateAliasResponse updateAlias(UpdateAliasRequest updateAliasRequest) throws DependencyTimeoutException,
+            NotFoundException, KmsInternalException, LimitExceededException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a
+     * time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web
+     * Services account and Region.
+     * </p>
+     * <note>
+     * <p>
+     * Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must
+     * have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias
+     * to a different type of KMS key, use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to create a
+     * new alias.
+     * </p>
+     * <p>
+     * You cannot use <code>UpdateAlias</code> to change an alias name. To change an alias name, use <a>DeleteAlias</a>
+     * to delete the old alias and <a>CreateAlias</a> to create a new alias.
+     * </p>
+     * <p>
+     * Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key
+     * without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation.
+     * To get the aliases of all KMS keys in the account, use the <a>ListAliases</a> operation.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the alias (IAM policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the current KMS key (key policy).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias
+     * </a> on the new KMS key (key policy).
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to
+     * aliases</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteAlias</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ListAliases</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdateAliasRequest.Builder} avoiding the need to
+     * create one manually via {@link UpdateAliasRequest#builder()}
+     * </p>
+     *
+     * @param updateAliasRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdateAliasRequest.Builder} to create a request.
+     * @return Result of the UpdateAlias operation returned by the service.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws LimitExceededException
+     *         The request was rejected because a quota was exceeded. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateAlias
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdateAliasResponse updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest)
+            throws DependencyTimeoutException, NotFoundException, KmsInternalException, LimitExceededException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        return updateAlias(UpdateAliasRequest.builder().applyMutation(updateAliasRequest).build());
+    }
+
+    /**
+     * <p>
+     * Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM
+     * key store or an external key store.
+     * </p>
+     * <p>
+     * Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store. Use the remaining
+     * optional parameters to change its properties. This operation does not return any property values. To verify the
+     * updated property values, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <important>
+     * <p>
+     * When updating the properties of an external key store, verify that the updated settings connect your key store,
+     * via the external key store proxy, to the same external key manager as the previous settings, or to a backup or
+     * snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail,
+     * you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if
+     * KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.
+     * </p>
+     * </important> <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for updating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot upload the proxy configuration file to the <code>UpdateCustomKeyStore</code>
+     * operation. However, you can use the file to help you determine the correct values for the
+     * <code>UpdateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * For an CloudHSM key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), to tell KMS about a change to the <code>kmsuser</code> crypto user password
+     * (<code>KeyStorePassword</code>), or to associate the custom key store with a different, but related, CloudHSM
+     * cluster (<code>CloudHsmClusterId</code>). To update any property of an CloudHSM key store, the
+     * <code>ConnectionState</code> of the CloudHSM key store must be <code>DISCONNECTED</code>.
+     * </p>
+     * <p>
+     * For an external key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), or to tell KMS about a change to the external key store proxy authentication
+     * credentials (<code>XksProxyAuthenticationCredential</code>), connection method (<code>XksProxyConnectivity</code>
+     * ), external proxy endpoint (<code>XksProxyUriEndpoint</code>) and path (<code>XksProxyUriPath</code>). For
+     * external key stores with an <code>XksProxyConnectivity</code> of <code>VPC_ENDPOINT_SERVICE</code>, you can also
+     * update the Amazon VPC endpoint service name (<code>XksProxyVpcEndpointServiceName</code>). To update most
+     * properties of an external key store, the <code>ConnectionState</code> of the external key store must be
+     * <code>DISCONNECTED</code>. However, you can update the <code>CustomKeyStoreName</code>,
+     * <code>XksProxyAuthenticationCredential</code>, and <code>XksProxyUriPath</code> of an external key store when it
+     * is in the CONNECTED or DISCONNECTED state.
+     * </p>
+     * <p>
+     * If your update requires a <code>DISCONNECTED</code> state, before using <code>UpdateCustomKeyStore</code>, use
+     * the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store. After the
+     * <code>UpdateCustomKeyStore</code> operation completes, use the <a>ConnectCustomKeyStore</a> to reconnect the
+     * custom key store. To find the <code>ConnectionState</code> of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * </p>
+     * <p>
+     * Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its
+     * backing key store. For example, before you change the <code>XksProxyUriPath</code> value, verify that the
+     * external key store proxy is reachable at the new path.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateCustomKeyStoreRequest
+     * @return Result of the UpdateCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreNameInUseException
+     *         The request was rejected because the specified custom key store name is already assigned to another
+     *         custom key store in the account. Try again with a custom key store name that is unique in the account.
+     * @throws CloudHsmClusterNotFoundException
+     *         The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         Retry the request with a different cluster ID.
+     * @throws CloudHsmClusterNotRelatedException
+     *         The request was rejected because the specified CloudHSM cluster has a different cluster certificate than
+     *         the original cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key
+     *         store.</p>
+     *         <p>
+     *         Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes
+     *         clusters that were created from a backup of the current cluster, and clusters that were created from the
+     *         same backup that produced the current cluster.
+     *         </p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+     *         </p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksProxyUriInUseException
+     *         The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+     *         <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. Each external key store in a Region must use a unique external key store proxy API
+     *         address.
+     * @throws XksProxyUriEndpointInUseException
+     *         The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. To identify the cause, see the error message that
+     *         accompanies the exception.
+     * @throws XksProxyUriUnreachableException
+     *         KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you
+     *         create the external key store or update its settings.
+     *         </p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.
+     * @throws XksProxyIncorrectAuthenticationCredentialException
+     *         The request was rejected because the proxy credentials failed to authenticate to the specified external
+     *         key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid
+     *         credentials. This can indicate an error in the credentials or in the identification of the external key
+     *         store proxy.
+     * @throws XksProxyVpcEndpointServiceInUseException
+     *         The request was rejected because the specified Amazon VPC endpoint service is already associated with
+     *         another external key store in this Amazon Web Services Region. Each external key store in a Region must
+     *         use a different Amazon VPC endpoint service.
+     * @throws XksProxyVpcEndpointServiceNotFoundException
+     *         The request was rejected because KMS could not find the specified VPC endpoint service. Use
+     *         <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also,
+     *         confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service
+     *         principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * @throws XksProxyVpcEndpointServiceInvalidConfigurationException
+     *         The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the
+     *         requirements for an external key store. To identify the cause, see the error message that accompanies the
+     *         exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+     * @throws XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.
+     * @throws XksProxyInvalidConfigurationException
+     *         The request was rejected because the external key store proxy is not configured correctly. To identify
+     *         the cause, see the error message that accompanies the exception.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdateCustomKeyStoreResponse updateCustomKeyStore(UpdateCustomKeyStoreRequest updateCustomKeyStoreRequest)
+            throws CustomKeyStoreNotFoundException, CustomKeyStoreNameInUseException, CloudHsmClusterNotFoundException,
+            CloudHsmClusterNotRelatedException, CustomKeyStoreInvalidStateException, KmsInternalException,
+            CloudHsmClusterNotActiveException, CloudHsmClusterInvalidConfigurationException, XksProxyUriInUseException,
+            XksProxyUriEndpointInUseException, XksProxyUriUnreachableException,
+            XksProxyIncorrectAuthenticationCredentialException, XksProxyVpcEndpointServiceInUseException,
+            XksProxyVpcEndpointServiceNotFoundException, XksProxyVpcEndpointServiceInvalidConfigurationException,
+            XksProxyInvalidResponseException, XksProxyInvalidConfigurationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM
+     * key store or an external key store.
+     * </p>
+     * <p>
+     * Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store. Use the remaining
+     * optional parameters to change its properties. This operation does not return any property values. To verify the
+     * updated property values, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This operation is part of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a>
+     * feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of
+     * a key store that you own and manage.
+     * </p>
+     * <important>
+     * <p>
+     * When updating the properties of an external key store, verify that the updated settings connect your key store,
+     * via the external key store proxy, to the same external key manager as the previous settings, or to a backup or
+     * snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail,
+     * you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if
+     * KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.
+     * </p>
+     * </important> <note>
+     * <p>
+     * For external key stores:
+     * </p>
+     * <p>
+     * Some external key managers provide a simpler method for updating an external key store. For details, see your
+     * external key manager documentation.
+     * </p>
+     * <p>
+     * When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with
+     * the desired values. You cannot upload the proxy configuration file to the <code>UpdateCustomKeyStore</code>
+     * operation. However, you can use the file to help you determine the correct values for the
+     * <code>UpdateCustomKeyStore</code> parameters.
+     * </p>
+     * </note>
+     * <p>
+     * For an CloudHSM key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), to tell KMS about a change to the <code>kmsuser</code> crypto user password
+     * (<code>KeyStorePassword</code>), or to associate the custom key store with a different, but related, CloudHSM
+     * cluster (<code>CloudHsmClusterId</code>). To update any property of an CloudHSM key store, the
+     * <code>ConnectionState</code> of the CloudHSM key store must be <code>DISCONNECTED</code>.
+     * </p>
+     * <p>
+     * For an external key store, you can use this operation to change the custom key store friendly name (
+     * <code>NewCustomKeyStoreName</code>), or to tell KMS about a change to the external key store proxy authentication
+     * credentials (<code>XksProxyAuthenticationCredential</code>), connection method (<code>XksProxyConnectivity</code>
+     * ), external proxy endpoint (<code>XksProxyUriEndpoint</code>) and path (<code>XksProxyUriPath</code>). For
+     * external key stores with an <code>XksProxyConnectivity</code> of <code>VPC_ENDPOINT_SERVICE</code>, you can also
+     * update the Amazon VPC endpoint service name (<code>XksProxyVpcEndpointServiceName</code>). To update most
+     * properties of an external key store, the <code>ConnectionState</code> of the external key store must be
+     * <code>DISCONNECTED</code>. However, you can update the <code>CustomKeyStoreName</code>,
+     * <code>XksProxyAuthenticationCredential</code>, and <code>XksProxyUriPath</code> of an external key store when it
+     * is in the CONNECTED or DISCONNECTED state.
+     * </p>
+     * <p>
+     * If your update requires a <code>DISCONNECTED</code> state, before using <code>UpdateCustomKeyStore</code>, use
+     * the <a>DisconnectCustomKeyStore</a> operation to disconnect the custom key store. After the
+     * <code>UpdateCustomKeyStore</code> operation completes, use the <a>ConnectCustomKeyStore</a> to reconnect the
+     * custom key store. To find the <code>ConnectionState</code> of the custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * </p>
+     * <p>
+     * Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its
+     * backing key store. For example, before you change the <code>XksProxyUriPath</code> value, verify that the
+     * external key store proxy is reachable at the new path.
+     * </p>
+     * <p>
+     * If the operation succeeds, it returns a JSON object with no properties.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web
+     * Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateCustomKeyStore</a> (IAM policy)
+     * </p>
+     * <p>
+     * <b>Related operations:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>ConnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>CreateCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DeleteCustomKeyStore</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeCustomKeyStores</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DisconnectCustomKeyStore</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdateCustomKeyStoreRequest.Builder} avoiding the
+     * need to create one manually via {@link UpdateCustomKeyStoreRequest#builder()}
+     * </p>
+     *
+     * @param updateCustomKeyStoreRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest.Builder} to create a request.
+     * @return Result of the UpdateCustomKeyStore operation returned by the service.
+     * @throws CustomKeyStoreNotFoundException
+     *         The request was rejected because KMS cannot find a custom key store with the specified key store name or
+     *         ID.
+     * @throws CustomKeyStoreNameInUseException
+     *         The request was rejected because the specified custom key store name is already assigned to another
+     *         custom key store in the account. Try again with a custom key store name that is unique in the account.
+     * @throws CloudHsmClusterNotFoundException
+     *         The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         Retry the request with a different cluster ID.
+     * @throws CloudHsmClusterNotRelatedException
+     *         The request was rejected because the specified CloudHSM cluster has a different cluster certificate than
+     *         the original cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key
+     *         store.</p>
+     *         <p>
+     *         Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes
+     *         clusters that were created from a backup of the current cluster, and clusters that were created from the
+     *         same backup that produced the current cluster.
+     *         </p>
+     *         <p>
+     *         CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster
+     *         certificate of an CloudHSM cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     * @throws CustomKeyStoreInvalidStateException
+     *         The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+     *         <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+     *         </p>
+     *         <p>
+     *         This exception is thrown under the following conditions:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is
+     *         valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a
+     *         <code>FAILED</code> state, disconnect it (<a>DisconnectCustomKeyStore</a>), then connect it (
+     *         <code>ConnectCustomKeyStore</code>).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations
+     *         is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a
+     *         <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation
+     *         is valid for all other <code>ConnectionState</code> values.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key
+     *         store that is not disconnected. This operation is valid only when the custom key store
+     *         <code>ConnectionState</code> is <code>DISCONNECTED</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This
+     *         operation is valid only when the CloudHSM key store <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws CloudHsmClusterNotActiveException
+     *         The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not
+     *         active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in
+     *         the <i>CloudHSM User Guide</i>.
+     * @throws CloudHsmClusterInvalidConfigurationException
+     *         The request was rejected because the associated CloudHSM cluster did not meet the configuration
+     *         requirements for an CloudHSM key store.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones
+     *         in the Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for
+     *         the cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound
+     *         rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the
+     *         <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default
+     *         when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular
+     *         security group, use the <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+     *         >DescribeSecurityGroups</a> operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the
+     *         CloudHSM <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a>
+     *         operation.
+     *         </p>
+     *         <p>
+     *         For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the
+     *         CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the
+     *         <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key
+     *         store, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+     *         >Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information
+     *         about creating a private subnet for an CloudHSM cluster, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private
+     *         Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default
+     *         Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.
+     * @throws XksProxyUriInUseException
+     *         The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+     *         <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web
+     *         Services Region. Each external key store in a Region must use a unique external key store proxy API
+     *         address.
+     * @throws XksProxyUriEndpointInUseException
+     *         The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another
+     *         external key store in this Amazon Web Services Region. To identify the cause, see the error message that
+     *         accompanies the exception.
+     * @throws XksProxyUriUnreachableException
+     *         KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you
+     *         create the external key store or update its settings.
+     *         </p>
+     *         <p>
+     *         This exception is also thrown when the external key store proxy response to a
+     *         <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.
+     * @throws XksProxyIncorrectAuthenticationCredentialException
+     *         The request was rejected because the proxy credentials failed to authenticate to the specified external
+     *         key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid
+     *         credentials. This can indicate an error in the credentials or in the identification of the external key
+     *         store proxy.
+     * @throws XksProxyVpcEndpointServiceInUseException
+     *         The request was rejected because the specified Amazon VPC endpoint service is already associated with
+     *         another external key store in this Amazon Web Services Region. Each external key store in a Region must
+     *         use a different Amazon VPC endpoint service.
+     * @throws XksProxyVpcEndpointServiceNotFoundException
+     *         The request was rejected because KMS could not find the specified VPC endpoint service. Use
+     *         <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also,
+     *         confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service
+     *         principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * @throws XksProxyVpcEndpointServiceInvalidConfigurationException
+     *         The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the
+     *         requirements for an external key store. To identify the cause, see the error message that accompanies the
+     *         exception and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements"
+     *         >review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+     * @throws XksProxyInvalidResponseException
+     *         <p>
+     *         KMS cannot interpret the response it received from the external key store proxy. The problem might be a
+     *         poorly constructed response, but it could also be a transient network issue. If you see this error
+     *         repeatedly, report it to the proxy vendor.
+     * @throws XksProxyInvalidConfigurationException
+     *         The request was rejected because the external key store proxy is not configured correctly. To identify
+     *         the cause, see the error message that accompanies the exception.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateCustomKeyStore
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdateCustomKeyStoreResponse updateCustomKeyStore(
+            Consumer<UpdateCustomKeyStoreRequest.Builder> updateCustomKeyStoreRequest) throws CustomKeyStoreNotFoundException,
+            CustomKeyStoreNameInUseException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException,
+            CustomKeyStoreInvalidStateException, KmsInternalException, CloudHsmClusterNotActiveException,
+            CloudHsmClusterInvalidConfigurationException, XksProxyUriInUseException, XksProxyUriEndpointInUseException,
+            XksProxyUriUnreachableException, XksProxyIncorrectAuthenticationCredentialException,
+            XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceNotFoundException,
+            XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyInvalidResponseException,
+            XksProxyInvalidConfigurationException, AwsServiceException, SdkClientException, KmsException {
+        return updateCustomKeyStore(UpdateCustomKeyStoreRequest.builder().applyMutation(updateCustomKeyStoreRequest).build());
+    }
+
+    /**
+     * <p>
+     * Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateKeyDescription</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updateKeyDescriptionRequest
+     * @return Result of the UpdateKeyDescription operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateKeyDescription
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdateKeyDescriptionResponse updateKeyDescription(UpdateKeyDescriptionRequest updateKeyDescriptionRequest)
+            throws NotFoundException, InvalidArnException, DependencyTimeoutException, KmsInternalException,
+            KmsInvalidStateException, AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:UpdateKeyDescription</a> (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>DescribeKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdateKeyDescriptionRequest.Builder} avoiding the
+     * need to create one manually via {@link UpdateKeyDescriptionRequest#builder()}
+     * </p>
+     *
+     * @param updateKeyDescriptionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest.Builder} to create a request.
+     * @return Result of the UpdateKeyDescription operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdateKeyDescription
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdateKeyDescriptionResponse updateKeyDescription(
+            Consumer<UpdateKeyDescriptionRequest.Builder> updateKeyDescriptionRequest) throws NotFoundException,
+            InvalidArnException, DependencyTimeoutException, KmsInternalException, KmsInvalidStateException, AwsServiceException,
+            SdkClientException, KmsException {
+        return updateKeyDescription(UpdateKeyDescriptionRequest.builder().applyMutation(updateKeyDescriptionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Changes the primary key of a multi-Region key.
+     * </p>
+     * <p>
+     * This operation changes the replica key in the specified Region to a primary key and changes the former primary
+     * key to a replica key. For example, suppose you have a primary key in <code>us-east-1</code> and a replica key in
+     * <code>eu-west-2</code>. If you run <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
+     * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the key in
+     * <code>us-east-1</code> becomes a replica key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update"
+     * >Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <i>primary key</i> of a multi-Region key is the source for properties that are always shared by primary and
+     * replica keys, including the key material, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation</a>.
+     * It's the only key that can be replicated. You cannot <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
+     * key</a> until all replica keys are deleted.
+     * </p>
+     * <p>
+     * The key ID and primary Region that you specify uniquely identify the replica key that will become the primary
+     * key. The primary Region must already have a replica key. This operation does not create a KMS key in the
+     * specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any
+     * replica key. To create a replica key, use the <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation
+     * should not delay, interrupt, or cause failures in cryptographic operations.
+     * </p>
+     * <p>
+     * Even after this operation completes, the process of updating the primary Region might still be in progress for a
+     * few more seconds. Operations such as <code>DescribeKey</code> might display both the old and new primary keys as
+     * replicas. The old and new primary keys have a transient key state of <code>Updating</code>. The original key
+     * state is restored when the update is complete. While the key state is <code>Updating</code>, you can use the keys
+     * in cryptographic operations, but you cannot replicate the new primary key or perform certain management
+     * operations, such as enabling or disabling these keys. For details about the <code>Updating</code> key state, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return any output. To verify that primary key is changed, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's Region). Include this
+     * permission primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's Region). Include this
+     * permission in the replica key's key policy.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param updatePrimaryRegionRequest
+     * @return Result of the UpdatePrimaryRegion operation returned by the service.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdatePrimaryRegion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdatePrimaryRegion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdatePrimaryRegionResponse updatePrimaryRegion(UpdatePrimaryRegionRequest updatePrimaryRegionRequest)
+            throws DisabledException, InvalidArnException, KmsInvalidStateException, KmsInternalException, NotFoundException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Changes the primary key of a multi-Region key.
+     * </p>
+     * <p>
+     * This operation changes the replica key in the specified Region to a primary key and changes the former primary
+     * key to a replica key. For example, suppose you have a primary key in <code>us-east-1</code> and a replica key in
+     * <code>eu-west-2</code>. If you run <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
+     * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the key in
+     * <code>us-east-1</code> becomes a replica key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update"
+     * >Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The <i>primary key</i> of a multi-Region key is the source for properties that are always shared by primary and
+     * replica keys, including the key material, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material origin</a>,
+     * and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation</a>.
+     * It's the only key that can be replicated. You cannot <a
+     * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
+     * key</a> until all replica keys are deleted.
+     * </p>
+     * <p>
+     * The key ID and primary Region that you specify uniquely identify the replica key that will become the primary
+     * key. The primary Region must already have a replica key. This operation does not create a KMS key in the
+     * specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any
+     * replica key. To create a replica key, use the <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation
+     * should not delay, interrupt, or cause failures in cryptographic operations.
+     * </p>
+     * <p>
+     * Even after this operation completes, the process of updating the primary Region might still be in progress for a
+     * few more seconds. Operations such as <code>DescribeKey</code> might display both the old and new primary keys as
+     * replicas. The old and new primary keys have a transient key state of <code>Updating</code>. The original key
+     * state is restored when the update is complete. While the key state is <code>Updating</code>, you can use the keys
+     * in cryptographic operations, but you cannot replicate the new primary key or perform certain management
+     * operations, such as enabling or disabling these keys. For details about the <code>Updating</code> key state, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This operation does not return any output. To verify that primary key is changed, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: No. You cannot use this operation in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's Region). Include this
+     * permission primary key's key policy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's Region). Include this
+     * permission in the replica key's key policy.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Related operations</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <a>CreateKey</a>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <a>ReplicateKey</a>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link UpdatePrimaryRegionRequest.Builder} avoiding the
+     * need to create one manually via {@link UpdatePrimaryRegionRequest#builder()}
+     * </p>
+     *
+     * @param updatePrimaryRegionRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest.Builder} to create a request.
+     * @return Result of the UpdatePrimaryRegion operation returned by the service.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws InvalidArnException
+     *         The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.</p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws UnsupportedOperationException
+     *         The request was rejected because a specified parameter is not supported or a specified resource is not
+     *         valid for this operation.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.UpdatePrimaryRegion
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdatePrimaryRegion" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default UpdatePrimaryRegionResponse updatePrimaryRegion(
+            Consumer<UpdatePrimaryRegionRequest.Builder> updatePrimaryRegionRequest) throws DisabledException,
+            InvalidArnException, KmsInvalidStateException, KmsInternalException, NotFoundException,
+            software.amazon.awssdk.services.kms.model.UnsupportedOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        return updatePrimaryRegion(UpdatePrimaryRegionRequest.builder().applyMutation(updatePrimaryRegionRequest).build());
+    }
+
+    /**
+     * <p>
+     * Verifies a digital signature that was generated by the <a>Sign</a> operation.
+     * </p>
+     * <p/>
+     * <p>
+     * Verification confirms that an authorized user signed the message with the specified KMS key and signing
+     * algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the
+     * <code>SignatureValid</code> field in the response is <code>True</code>. If the signature verification fails, the
+     * <code>Verify</code> operation fails with an <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * <p>
+     * A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by
+     * using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To use the <code>Verify</code> operation, specify the same asymmetric KMS key, message, and signing algorithm
+     * that were used to produce the signature. The message type does not need to be the same as the one used for
+     * signing, but it must indicate whether the value of the <code>Message</code> parameter should be hashed as part of
+     * the verification process.
+     * </p>
+     * <p>
+     * You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the
+     * <a>GetPublicKey</a> operation to download the public key in the asymmetric KMS key and then use the public key to
+     * verify the signature outside of KMS. The advantage of using the <code>Verify</code> operation is that it is
+     * performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is
+     * logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key
+     * to verify signatures.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Sign</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyRequest
+     * @return Result of the Verify operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInvalidSignatureException
+     *         The request was rejected because the signature verification failed. Signature verification fails when it
+     *         cannot confirm that signature was produced by signing the specified message with the specified KMS key
+     *         and signing algorithm.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Verify
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Verify" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default VerifyResponse verify(VerifyRequest verifyRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, KmsInvalidSignatureException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Verifies a digital signature that was generated by the <a>Sign</a> operation.
+     * </p>
+     * <p/>
+     * <p>
+     * Verification confirms that an authorized user signed the message with the specified KMS key and signing
+     * algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the
+     * <code>SignatureValid</code> field in the response is <code>True</code>. If the signature verification fails, the
+     * <code>Verify</code> operation fails with an <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * <p>
+     * A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by
+     * using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Asymmetric KMS keys</a> in
+     * the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * To use the <code>Verify</code> operation, specify the same asymmetric KMS key, message, and signing algorithm
+     * that were used to produce the signature. The message type does not need to be the same as the one used for
+     * signing, but it must indicate whether the value of the <code>Message</code> parameter should be hashed as part of
+     * the verification process.
+     * </p>
+     * <p>
+     * You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the
+     * <a>GetPublicKey</a> operation to download the public key in the asymmetric KMS key and then use the public key to
+     * verify the signature outside of KMS. The advantage of using the <code>Verify</code> operation is that it is
+     * performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is
+     * logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key
+     * to verify signatures.
+     * </p>
+     * <p>
+     * To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the
+     * distinguishing ID. By default, KMS uses <code>1234567812345678</code> as the distinguishing ID. For more
+     * information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>Sign</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link VerifyRequest.Builder} avoiding the need to create
+     * one manually via {@link VerifyRequest#builder()}
+     * </p>
+     *
+     * @param verifyRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.VerifyRequest.Builder} to create a request.
+     * @return Result of the Verify operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws DependencyTimeoutException
+     *         The system timed out while trying to fulfill the request. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws KmsInvalidSignatureException
+     *         The request was rejected because the signature verification failed. Signature verification fails when it
+     *         cannot confirm that signature was produced by signing the specified message with the specified KMS key
+     *         and signing algorithm.
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.Verify
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Verify" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default VerifyResponse verify(Consumer<VerifyRequest.Builder> verifyRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, DependencyTimeoutException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidStateException, KmsInvalidSignatureException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        return verify(VerifyRequest.builder().applyMutation(verifyRequest).build());
+    }
+
+    /**
+     * <p>
+     * Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC
+     * algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using the message, HMAC KMS key, and MAC
+     * algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are
+     * identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed
+     * since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.
+     * </p>
+     * <p>
+     * HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in <a
+     * href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * This operation is part of KMS support for HMAC KMS keys. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GenerateMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     *
+     * @param verifyMacRequest
+     * @return Result of the VerifyMac operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidMacException
+     *         The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC
+     *         computed by using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC
+     *         specified in the request.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.VerifyMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default VerifyMacResponse verifyMac(VerifyMacRequest verifyMacRequest) throws NotFoundException, DisabledException,
+            KeyUnavailableException, InvalidKeyUsageException, InvalidGrantTokenException, KmsInternalException,
+            KmsInvalidMacException, KmsInvalidStateException, DryRunOperationException, AwsServiceException, SdkClientException,
+            KmsException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <p>
+     * Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC
+     * algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using the message, HMAC KMS key, and MAC
+     * algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are
+     * identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed
+     * since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.
+     * </p>
+     * <p>
+     * HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in <a
+     * href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * This operation is part of KMS support for HMAC KMS keys. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The KMS key that you use for this operation must be in a compatible key state. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services
+     * account, specify the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * <b>Required permissions</b>: <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a>
+     * (key policy)
+     * </p>
+     * <p>
+     * <b>Related operations</b>: <a>GenerateMac</a>
+     * </p>
+     * <p>
+     * <b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-eventual-consistency.html">KMS eventual
+     * consistency</a>.
+     * </p>
+     * <br/>
+     * <p>
+     * This is a convenience which creates an instance of the {@link VerifyMacRequest.Builder} avoiding the need to
+     * create one manually via {@link VerifyMacRequest#builder()}
+     * </p>
+     *
+     * @param verifyMacRequest
+     *        A {@link Consumer} that will call methods on
+     *        {@link software.amazon.awssdk.services.kms.model.VerifyMacRequest.Builder} to create a request.
+     * @return Result of the VerifyMac operation returned by the service.
+     * @throws NotFoundException
+     *         The request was rejected because the specified entity or resource could not be found.
+     * @throws DisabledException
+     *         The request was rejected because the specified KMS key is not enabled.
+     * @throws KeyUnavailableException
+     *         The request was rejected because the specified KMS key was not available. You can retry the request.
+     * @throws InvalidKeyUsageException
+     *         The request was rejected for one of the following reasons: </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The encryption algorithm or signing algorithm specified for the operation is incompatible with the type
+     *         of key material in the KMS key <code>(KeySpec</code>).
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+     *         <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+     *         <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the
+     *         <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a
+     *         KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <p>
+     *         To find the encryption or signing algorithms supported for a particular KMS key, use the
+     *         <a>DescribeKey</a> operation.
+     * @throws InvalidGrantTokenException
+     *         The request was rejected because the specified grant token is not valid.
+     * @throws KmsInternalException
+     *         The request was rejected because an internal exception occurred. The request can be retried.
+     * @throws KmsInvalidMacException
+     *         The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC
+     *         computed by using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC
+     *         specified in the request.
+     * @throws KmsInvalidStateException
+     *         The request was rejected because the state of the specified resource is not valid for this request.
+     *         </p>
+     *         <p>
+     *         This exceptions means one of the following:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key state of the KMS key is not compatible with the operation.
+     *         </p>
+     *         <p>
+     *         To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states
+     *         are compatible with each KMS operation, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For cryptographic operations on KMS keys in custom key stores, this exception represents a general
+     *         failure with many possible causes. To identify the cause, see the error message that accompanies the
+     *         exception.
+     *         </p>
+     *         </li>
+     * @throws DryRunOperationException
+     *         The request was rejected because the DryRun parameter was specified.
+     * @throws SdkException
+     *         Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
+     *         catch all scenarios.
+     * @throws SdkClientException
+     *         If any client side error occurs such as an IO related failure, failure to get credentials, etc.
+     * @throws KmsException
+     *         Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
+     * @sample KmsClient.VerifyMac
+     * @see <a href="https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac" target="_top">AWS API
+     *      Documentation</a>
+     */
+    default VerifyMacResponse verifyMac(Consumer<VerifyMacRequest.Builder> verifyMacRequest) throws NotFoundException,
+            DisabledException, KeyUnavailableException, InvalidKeyUsageException, InvalidGrantTokenException,
+            KmsInternalException, KmsInvalidMacException, KmsInvalidStateException, DryRunOperationException,
+            AwsServiceException, SdkClientException, KmsException {
+        return verifyMac(VerifyMacRequest.builder().applyMutation(verifyMacRequest).build());
+    }
+
+    /**
+     * Create a {@link KmsClient} with the region loaded from the
+     * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
+     * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
+     */
+    static KmsClient create() {
+        return builder().build();
+    }
+
+    /**
+     * Create a builder that can be used to configure and create a {@link KmsClient}.
+     */
+    static KmsClientBuilder builder() {
+        return new DefaultKmsClientBuilder();
+    }
+
+    static ServiceMetadata serviceMetadata() {
+        return ServiceMetadata.of(SERVICE_METADATA_ID);
+    }
+
+    @Override
+    default KmsServiceClientConfiguration serviceClientConfiguration() {
+        throw new UnsupportedOperationException();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsClientBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsClientBuilder.java
new file mode 100644
index 0000000..0d68651
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsClientBuilder.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder;
+
+/**
+ * A builder for creating an instance of {@link KmsClient}. This can be created with the static
+ * {@link KmsClient#builder()} method.
+ */
+@Generated("software.amazon.awssdk:codegen")
+public interface KmsClientBuilder extends AwsSyncClientBuilder<KmsClientBuilder, KmsClient>,
+        KmsBaseClientBuilder<KmsClientBuilder, KmsClient> {
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsServiceClientConfiguration.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsServiceClientConfiguration.java
new file mode 100644
index 0000000..edc288a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/KmsServiceClientConfiguration.java
@@ -0,0 +1,140 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms;
+
+import java.net.URI;
+import java.util.Map;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.awscore.AwsServiceClientConfiguration;
+import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration;
+import software.amazon.awssdk.endpoints.EndpointProvider;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthScheme;
+import software.amazon.awssdk.identity.spi.AwsCredentialsIdentity;
+import software.amazon.awssdk.identity.spi.IdentityProvider;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeProvider;
+import software.amazon.awssdk.services.kms.internal.KmsServiceClientConfigurationBuilder;
+
+/**
+ * Class to expose the service client settings to the user. Implementation of {@link AwsServiceClientConfiguration}
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public final class KmsServiceClientConfiguration extends AwsServiceClientConfiguration {
+    private final KmsAuthSchemeProvider authSchemeProvider;
+
+    public KmsServiceClientConfiguration(Builder builder) {
+        super(builder);
+        this.authSchemeProvider = builder.authSchemeProvider();
+    }
+
+    public static Builder builder() {
+        return new KmsServiceClientConfigurationBuilder();
+    }
+
+    /**
+     * Gets the value for auth scheme provider
+     */
+    public KmsAuthSchemeProvider authSchemeProvider() {
+        return authSchemeProvider;
+    }
+
+    /**
+     * A builder for creating a {@link KmsServiceClientConfiguration}
+     */
+    public interface Builder extends AwsServiceClientConfiguration.Builder {
+        /**
+         * Sets the value for client override configuration
+         */
+        @Override
+        Builder overrideConfiguration(ClientOverrideConfiguration overrideConfiguration);
+
+        /**
+         * Gets the value for client override configuration
+         */
+        @Override
+        ClientOverrideConfiguration overrideConfiguration();
+
+        /**
+         * Sets the value for endpoint override
+         */
+        @Override
+        Builder endpointOverride(URI endpointOverride);
+
+        /**
+         * Gets the value for endpoint override
+         */
+        @Override
+        URI endpointOverride();
+
+        /**
+         * Sets the value for endpoint provider
+         */
+        @Override
+        Builder endpointProvider(EndpointProvider endpointProvider);
+
+        /**
+         * Gets the value for endpoint provider
+         */
+        @Override
+        EndpointProvider endpointProvider();
+
+        /**
+         * Sets the value for AWS region
+         */
+        @Override
+        Builder region(Region region);
+
+        /**
+         * Gets the value for AWS region
+         */
+        @Override
+        Region region();
+
+        /**
+         * Sets the value for credentials provider
+         */
+        @Override
+        Builder credentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider);
+
+        /**
+         * Gets the value for credentials provider
+         */
+        @Override
+        IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider();
+
+        @Override
+        Builder putAuthScheme(AuthScheme<?> authScheme);
+
+        /**
+         * Gets the value for auth schemes
+         */
+        @Override
+        Map<String, AuthScheme<?>> authSchemes();
+
+        /**
+         * Sets the value for auth scheme provider
+         */
+        Builder authSchemeProvider(KmsAuthSchemeProvider authSchemeProvider);
+
+        /**
+         * Gets the value for auth scheme provider
+         */
+        KmsAuthSchemeProvider authSchemeProvider();
+
+        @Override
+        KmsServiceClientConfiguration build();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/KmsAuthSchemeParams.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/KmsAuthSchemeParams.java
new file mode 100644
index 0000000..5aa4d50
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/KmsAuthSchemeParams.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.auth.scheme;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.services.kms.auth.scheme.internal.DefaultKmsAuthSchemeParams;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * The parameters object used to resolve the auth schemes for the Kms service.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public interface KmsAuthSchemeParams extends ToCopyableBuilder<KmsAuthSchemeParams.Builder, KmsAuthSchemeParams> {
+    /**
+     * Get a new builder for creating a {@link KmsAuthSchemeParams}.
+     */
+    static Builder builder() {
+        return DefaultKmsAuthSchemeParams.builder();
+    }
+
+    /**
+     * Returns the operation for which to resolve the auth scheme.
+     */
+    String operation();
+
+    /**
+     * Returns the region. The region parameter may be used with the "aws.auth#sigv4" auth scheme.
+     */
+    Region region();
+
+    /**
+     * Returns a {@link Builder} to customize the parameters.
+     */
+    Builder toBuilder();
+
+    /**
+     * A builder for a {@link KmsAuthSchemeParams}.
+     */
+    interface Builder extends CopyableBuilder<Builder, KmsAuthSchemeParams> {
+        /**
+         * Set the operation for which to resolve the auth scheme.
+         */
+        Builder operation(String operation);
+
+        /**
+         * Set the region. The region parameter may be used with the "aws.auth#sigv4" auth scheme.
+         */
+        Builder region(Region region);
+
+        /**
+         * Returns a {@link KmsAuthSchemeParams} object that is created from the properties that have been set on the
+         * builder.
+         */
+        KmsAuthSchemeParams build();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/KmsAuthSchemeProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/KmsAuthSchemeProvider.java
new file mode 100644
index 0000000..1afb4de
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/KmsAuthSchemeProvider.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.auth.scheme;
+
+import java.util.List;
+import java.util.function.Consumer;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthSchemeOption;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthSchemeProvider;
+import software.amazon.awssdk.services.kms.auth.scheme.internal.DefaultKmsAuthSchemeProvider;
+
+/**
+ * An auth scheme provider for Kms service. The auth scheme provider takes a set of parameters using
+ * {@link KmsAuthSchemeParams}, and resolves a list of {@link AuthSchemeOption} based on the given parameters.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public interface KmsAuthSchemeProvider extends AuthSchemeProvider {
+    /**
+     * Resolve the auth schemes based on the given set of parameters.
+     */
+    List<AuthSchemeOption> resolveAuthScheme(KmsAuthSchemeParams authSchemeParams);
+
+    /**
+     * Resolve the auth schemes based on the given set of parameters.
+     */
+    default List<AuthSchemeOption> resolveAuthScheme(Consumer<KmsAuthSchemeParams.Builder> consumer) {
+        KmsAuthSchemeParams.Builder builder = KmsAuthSchemeParams.builder();
+        consumer.accept(builder);
+        return resolveAuthScheme(builder.build());
+    }
+
+    /**
+     * Get the default auth scheme provider.
+     */
+    static KmsAuthSchemeProvider defaultProvider() {
+        return DefaultKmsAuthSchemeProvider.create();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/DefaultKmsAuthSchemeParams.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/DefaultKmsAuthSchemeParams.java
new file mode 100644
index 0000000..4d83b86
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/DefaultKmsAuthSchemeParams.java
@@ -0,0 +1,83 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.auth.scheme.internal;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeParams;
+import software.amazon.awssdk.utils.Validate;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class DefaultKmsAuthSchemeParams implements KmsAuthSchemeParams {
+    private final String operation;
+
+    private final Region region;
+
+    private DefaultKmsAuthSchemeParams(Builder builder) {
+        this.operation = Validate.paramNotNull(builder.operation, "operation");
+        this.region = builder.region;
+    }
+
+    public static KmsAuthSchemeParams.Builder builder() {
+        return new Builder();
+    }
+
+    @Override
+    public String operation() {
+        return operation;
+    }
+
+    @Override
+    public Region region() {
+        return region;
+    }
+
+    @Override
+    public KmsAuthSchemeParams.Builder toBuilder() {
+        return new Builder(this);
+    }
+
+    private static final class Builder implements KmsAuthSchemeParams.Builder {
+        private String operation;
+
+        private Region region;
+
+        Builder() {
+        }
+
+        Builder(DefaultKmsAuthSchemeParams params) {
+            this.operation = params.operation;
+            this.region = params.region;
+        }
+
+        @Override
+        public Builder operation(String operation) {
+            this.operation = operation;
+            return this;
+        }
+
+        @Override
+        public Builder region(Region region) {
+            this.region = region;
+            return this;
+        }
+
+        @Override
+        public KmsAuthSchemeParams build() {
+            return new DefaultKmsAuthSchemeParams(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/DefaultKmsAuthSchemeProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/DefaultKmsAuthSchemeProvider.java
new file mode 100644
index 0000000..5cd6da8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/DefaultKmsAuthSchemeProvider.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.auth.scheme.internal;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.http.auth.aws.signer.AwsV4HttpSigner;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthSchemeOption;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeParams;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeProvider;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class DefaultKmsAuthSchemeProvider implements KmsAuthSchemeProvider {
+    private static final DefaultKmsAuthSchemeProvider DEFAULT = new DefaultKmsAuthSchemeProvider();
+
+    private DefaultKmsAuthSchemeProvider() {
+    }
+
+    public static DefaultKmsAuthSchemeProvider create() {
+        return DEFAULT;
+    }
+
+    @Override
+    public List<AuthSchemeOption> resolveAuthScheme(KmsAuthSchemeParams params) {
+        List<AuthSchemeOption> options = new ArrayList<>();
+        options.add(AuthSchemeOption.builder().schemeId("aws.auth#sigv4")
+                .putSignerProperty(AwsV4HttpSigner.SERVICE_SIGNING_NAME, "kms")
+                .putSignerProperty(AwsV4HttpSigner.REGION_NAME, params.region().id()).build());
+        return Collections.unmodifiableList(options);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/KmsAuthSchemeInterceptor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/KmsAuthSchemeInterceptor.java
new file mode 100644
index 0000000..473c34d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/auth/scheme/internal/KmsAuthSchemeInterceptor.java
@@ -0,0 +1,152 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.auth.scheme.internal;
+
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.AwsExecutionAttribute;
+import software.amazon.awssdk.core.SdkRequest;
+import software.amazon.awssdk.core.SelectedAuthScheme;
+import software.amazon.awssdk.core.exception.SdkException;
+import software.amazon.awssdk.core.interceptor.Context;
+import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
+import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
+import software.amazon.awssdk.core.interceptor.SdkExecutionAttribute;
+import software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute;
+import software.amazon.awssdk.core.internal.util.MetricUtils;
+import software.amazon.awssdk.core.metrics.CoreMetric;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthScheme;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthSchemeOption;
+import software.amazon.awssdk.identity.spi.AwsCredentialsIdentity;
+import software.amazon.awssdk.identity.spi.Identity;
+import software.amazon.awssdk.identity.spi.IdentityProvider;
+import software.amazon.awssdk.identity.spi.IdentityProviders;
+import software.amazon.awssdk.identity.spi.ResolveIdentityRequest;
+import software.amazon.awssdk.identity.spi.TokenIdentity;
+import software.amazon.awssdk.metrics.MetricCollector;
+import software.amazon.awssdk.metrics.SdkMetric;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeParams;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeProvider;
+import software.amazon.awssdk.utils.Logger;
+import software.amazon.awssdk.utils.Validate;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class KmsAuthSchemeInterceptor implements ExecutionInterceptor {
+    private static Logger LOG = Logger.loggerFor(KmsAuthSchemeInterceptor.class);
+
+    @Override
+    public void beforeExecution(Context.BeforeExecution context, ExecutionAttributes executionAttributes) {
+        List<AuthSchemeOption> authOptions = resolveAuthOptions(context, executionAttributes);
+        SelectedAuthScheme<? extends Identity> selectedAuthScheme = selectAuthScheme(authOptions, executionAttributes);
+        putSelectedAuthScheme(executionAttributes, selectedAuthScheme);
+    }
+
+    private List<AuthSchemeOption> resolveAuthOptions(Context.BeforeExecution context, ExecutionAttributes executionAttributes) {
+        KmsAuthSchemeProvider authSchemeProvider = Validate.isInstanceOf(KmsAuthSchemeProvider.class,
+                executionAttributes.getAttribute(SdkInternalExecutionAttribute.AUTH_SCHEME_RESOLVER),
+                "Expected an instance of KmsAuthSchemeProvider");
+        KmsAuthSchemeParams params = authSchemeParams(context.request(), executionAttributes);
+        return authSchemeProvider.resolveAuthScheme(params);
+    }
+
+    private SelectedAuthScheme<? extends Identity> selectAuthScheme(List<AuthSchemeOption> authOptions,
+            ExecutionAttributes executionAttributes) {
+        MetricCollector metricCollector = executionAttributes.getAttribute(SdkExecutionAttribute.API_CALL_METRIC_COLLECTOR);
+        Map<String, AuthScheme<?>> authSchemes = executionAttributes.getAttribute(SdkInternalExecutionAttribute.AUTH_SCHEMES);
+        IdentityProviders identityProviders = executionAttributes.getAttribute(SdkInternalExecutionAttribute.IDENTITY_PROVIDERS);
+        List<Supplier<String>> discardedReasons = new ArrayList<>();
+        for (AuthSchemeOption authOption : authOptions) {
+            AuthScheme<?> authScheme = authSchemes.get(authOption.schemeId());
+            SelectedAuthScheme<? extends Identity> selectedAuthScheme = trySelectAuthScheme(authOption, authScheme,
+                    identityProviders, discardedReasons, metricCollector, executionAttributes);
+            if (selectedAuthScheme != null) {
+                if (!discardedReasons.isEmpty()) {
+                    LOG.debug(() -> String.format("%s auth will be used, discarded: '%s'", authOption.schemeId(),
+                            discardedReasons.stream().map(Supplier::get).collect(Collectors.joining(", "))));
+                }
+                return selectedAuthScheme;
+            }
+        }
+        throw SdkException
+                .builder()
+                .message(
+                        "Failed to determine how to authenticate the user: "
+                                + discardedReasons.stream().map(Supplier::get).collect(Collectors.joining(", "))).build();
+    }
+
+    private KmsAuthSchemeParams authSchemeParams(SdkRequest request, ExecutionAttributes executionAttributes) {
+        String operation = executionAttributes.getAttribute(SdkExecutionAttribute.OPERATION_NAME);
+        Region region = executionAttributes.getAttribute(AwsExecutionAttribute.AWS_REGION);
+        return KmsAuthSchemeParams.builder().operation(operation).region(region).build();
+    }
+
+    private <T extends Identity> SelectedAuthScheme<T> trySelectAuthScheme(AuthSchemeOption authOption, AuthScheme<T> authScheme,
+            IdentityProviders identityProviders, List<Supplier<String>> discardedReasons, MetricCollector metricCollector,
+            ExecutionAttributes executionAttributes) {
+        if (authScheme == null) {
+            discardedReasons.add(() -> String.format("'%s' is not enabled for this request.", authOption.schemeId()));
+            return null;
+        }
+        IdentityProvider<T> identityProvider = authScheme.identityProvider(identityProviders);
+        if (identityProvider == null) {
+            discardedReasons
+                    .add(() -> String.format("'%s' does not have an identity provider configured.", authOption.schemeId()));
+            return null;
+        }
+        ResolveIdentityRequest.Builder identityRequestBuilder = ResolveIdentityRequest.builder();
+        authOption.forEachIdentityProperty(identityRequestBuilder::putProperty);
+        CompletableFuture<? extends T> identity;
+        SdkMetric<Duration> metric = getIdentityMetric(identityProvider);
+        if (metric == null) {
+            identity = identityProvider.resolveIdentity(identityRequestBuilder.build());
+        } else {
+            identity = MetricUtils.reportDuration(() -> identityProvider.resolveIdentity(identityRequestBuilder.build()),
+                    metricCollector, metric);
+        }
+        return new SelectedAuthScheme<>(identity, authScheme.signer(), authOption);
+    }
+
+    private SdkMetric<Duration> getIdentityMetric(IdentityProvider<?> identityProvider) {
+        Class<?> identityType = identityProvider.identityType();
+        if (identityType == AwsCredentialsIdentity.class) {
+            return CoreMetric.CREDENTIALS_FETCH_DURATION;
+        }
+        if (identityType == TokenIdentity.class) {
+            return CoreMetric.TOKEN_FETCH_DURATION;
+        }
+        return null;
+    }
+
+    private <T extends Identity> void putSelectedAuthScheme(ExecutionAttributes attributes,
+            SelectedAuthScheme<T> selectedAuthScheme) {
+        SelectedAuthScheme<?> existingAuthScheme = attributes.getAttribute(SdkInternalExecutionAttribute.SELECTED_AUTH_SCHEME);
+        if (existingAuthScheme != null) {
+            AuthSchemeOption.Builder selectedOption = selectedAuthScheme.authSchemeOption().toBuilder();
+            existingAuthScheme.authSchemeOption().forEachIdentityProperty(selectedOption::putIdentityPropertyIfAbsent);
+            existingAuthScheme.authSchemeOption().forEachSignerProperty(selectedOption::putSignerPropertyIfAbsent);
+            selectedAuthScheme = new SelectedAuthScheme<>(selectedAuthScheme.identity(), selectedAuthScheme.signer(),
+                    selectedOption.build());
+        }
+        attributes.putAttribute(SdkInternalExecutionAttribute.SELECTED_AUTH_SCHEME, selectedAuthScheme);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/KmsEndpointParams.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/KmsEndpointParams.java
new file mode 100644
index 0000000..289eaf5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/KmsEndpointParams.java
@@ -0,0 +1,133 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * The parameters object used to resolve an endpoint for the Kms service.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public final class KmsEndpointParams implements ToCopyableBuilder<KmsEndpointParams.Builder, KmsEndpointParams> {
+    private final Region region;
+
+    private final Boolean useDualStack;
+
+    private final Boolean useFIPS;
+
+    private final String endpoint;
+
+    private KmsEndpointParams(BuilderImpl builder) {
+        this.region = builder.region;
+        this.useDualStack = builder.useDualStack;
+        this.useFIPS = builder.useFIPS;
+        this.endpoint = builder.endpoint;
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public Region region() {
+        return region;
+    }
+
+    public Boolean useDualStack() {
+        return useDualStack;
+    }
+
+    public Boolean useFips() {
+        return useFIPS;
+    }
+
+    public String endpoint() {
+        return endpoint;
+    }
+
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public interface Builder extends CopyableBuilder<Builder, KmsEndpointParams> {
+        Builder region(Region region);
+
+        Builder useDualStack(Boolean useDualStack);
+
+        Builder useFips(Boolean useFIPS);
+
+        Builder endpoint(String endpoint);
+
+        KmsEndpointParams build();
+    }
+
+    private static class BuilderImpl implements Builder {
+        private Region region;
+
+        private Boolean useDualStack = false;
+
+        private Boolean useFIPS = false;
+
+        private String endpoint;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KmsEndpointParams builder) {
+            this.region = builder.region;
+            this.useDualStack = builder.useDualStack;
+            this.useFIPS = builder.useFIPS;
+            this.endpoint = builder.endpoint;
+        }
+
+        @Override
+        public Builder region(Region region) {
+            this.region = region;
+            return this;
+        }
+
+        @Override
+        public Builder useDualStack(Boolean useDualStack) {
+            this.useDualStack = useDualStack;
+            if (this.useDualStack == null) {
+                this.useDualStack = false;
+            }
+            return this;
+        }
+
+        @Override
+        public Builder useFips(Boolean useFIPS) {
+            this.useFIPS = useFIPS;
+            if (this.useFIPS == null) {
+                this.useFIPS = false;
+            }
+            return this;
+        }
+
+        @Override
+        public Builder endpoint(String endpoint) {
+            this.endpoint = endpoint;
+            return this;
+        }
+
+        @Override
+        public KmsEndpointParams build() {
+            return new KmsEndpointParams(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/KmsEndpointProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/KmsEndpointProvider.java
new file mode 100644
index 0000000..25bd453
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/KmsEndpointProvider.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints;
+
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Consumer;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.endpoints.Endpoint;
+import software.amazon.awssdk.endpoints.EndpointProvider;
+import software.amazon.awssdk.services.kms.endpoints.internal.DefaultKmsEndpointProvider;
+
+/**
+ * An endpoint provider for Kms. The endpoint provider takes a set of parameters using {@link KmsEndpointParams}, and
+ * resolves an {@link Endpoint} base on the given parameters.
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public interface KmsEndpointProvider extends EndpointProvider {
+    /**
+     * Compute the endpoint based on the given set of parameters.
+     */
+    CompletableFuture<Endpoint> resolveEndpoint(KmsEndpointParams endpointParams);
+
+    /**
+     * Compute the endpoint based on the given set of parameters.
+     */
+    default CompletableFuture<Endpoint> resolveEndpoint(Consumer<KmsEndpointParams.Builder> endpointParamsConsumer) {
+        KmsEndpointParams.Builder paramsBuilder = KmsEndpointParams.builder();
+        endpointParamsConsumer.accept(paramsBuilder);
+        return resolveEndpoint(paramsBuilder.build());
+    }
+
+    static KmsEndpointProvider defaultProvider() {
+        return new DefaultKmsEndpointProvider();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Arn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Arn.java
new file mode 100644
index 0000000..bba2f5a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Arn.java
@@ -0,0 +1,122 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * An AWS Arn.
+ */
+@SdkInternalApi
+public final class Arn {
+    private final String partition;
+    private final String service;
+    private final String region;
+    private final String accountId;
+    private final List<String> resource;
+
+    public Arn(String partition, String service, String region, String accountId, List<String> resource) {
+        this.partition = partition;
+        this.service = service;
+        this.region = region;
+        this.accountId = accountId;
+        this.resource = resource;
+    }
+
+    public static Optional<Arn> parse(String arn) {
+        String[] base = arn.split(":", 6);
+        if (base.length != 6) {
+            return Optional.empty();
+        }
+        // service, resource and `arn` may not be null
+        if (!base[0].equals("arn")) {
+            return Optional.empty();
+        }
+        if (base[1].isEmpty() || base[2].isEmpty()) {
+            return Optional.empty();
+        }
+        if (base[5].isEmpty()) {
+            return Optional.empty();
+        }
+        return Optional.of(new Arn(base[1], base[2], base[3], base[4], Arrays.stream(base[5].split("[:/]", -1)).collect(
+                Collectors.toList())));
+    }
+
+    public String partition() {
+        return partition;
+    }
+
+    public String service() {
+        return service;
+    }
+
+    public String region() {
+        return region;
+    }
+
+    public String accountId() {
+        return accountId;
+    }
+
+    public List<String> resource() {
+        return resource;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Arn arn = (Arn) o;
+
+        if (partition != null ? !partition.equals(arn.partition) : arn.partition != null) {
+            return false;
+        }
+        if (service != null ? !service.equals(arn.service) : arn.service != null) {
+            return false;
+        }
+        if (region != null ? !region.equals(arn.region) : arn.region != null) {
+            return false;
+        }
+        if (accountId != null ? !accountId.equals(arn.accountId) : arn.accountId != null) {
+            return false;
+        }
+        return resource != null ? resource.equals(arn.resource) : arn.resource == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = partition != null ? partition.hashCode() : 0;
+        result = 31 * result + (service != null ? service.hashCode() : 0);
+        result = 31 * result + (region != null ? region.hashCode() : 0);
+        result = 31 * result + (accountId != null ? accountId.hashCode() : 0);
+        result = 31 * result + (resource != null ? resource.hashCode() : 0);
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        return "Arn[" + "partition=" + partition + ", " + "service=" + service + ", " + "region=" + region + ", " + "accountId="
+                + accountId + ", " + "resource=" + resource + ']';
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/AwsEndpointProviderUtils.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/AwsEndpointProviderUtils.java
new file mode 100644
index 0000000..32770ec
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/AwsEndpointProviderUtils.java
@@ -0,0 +1,178 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import static software.amazon.awssdk.utils.FunctionalUtils.invokeSafely;
+
+import java.net.URI;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.AwsExecutionAttribute;
+
+import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
+import software.amazon.awssdk.core.interceptor.SdkExecutionAttribute;
+import software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute;
+import software.amazon.awssdk.endpoints.Endpoint;
+import software.amazon.awssdk.http.SdkHttpRequest;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.utils.HostnameValidator;
+import software.amazon.awssdk.utils.Logger;
+import software.amazon.awssdk.utils.StringUtils;
+import software.amazon.awssdk.utils.http.SdkHttpUtils;
+
+@SdkInternalApi
+public final class AwsEndpointProviderUtils {
+    private static final Logger LOG = Logger.loggerFor(AwsEndpointProviderUtils.class);
+
+    private AwsEndpointProviderUtils() {
+    }
+
+    public static Region regionBuiltIn(ExecutionAttributes executionAttributes) {
+        return executionAttributes.getAttribute(AwsExecutionAttribute.AWS_REGION);
+    }
+
+    public static Boolean dualStackEnabledBuiltIn(ExecutionAttributes executionAttributes) {
+        return executionAttributes.getAttribute(AwsExecutionAttribute.DUALSTACK_ENDPOINT_ENABLED);
+    }
+
+    public static Boolean fipsEnabledBuiltIn(ExecutionAttributes executionAttributes) {
+        return executionAttributes.getAttribute(AwsExecutionAttribute.FIPS_ENDPOINT_ENABLED);
+    }
+
+    /**
+     * Returns the endpoint set on the client. Note that this strips off the query part of the URI because the endpoint
+     * rules library, e.g. {@code ParseURL} will return an exception if the URI it parses has query parameters.
+     */
+    public static String endpointBuiltIn(ExecutionAttributes executionAttributes) {
+        if (endpointIsOverridden(executionAttributes)) {
+            return invokeSafely(() -> {
+                URI endpointOverride = executionAttributes.getAttribute(SdkExecutionAttribute.CLIENT_ENDPOINT);
+                return new URI(endpointOverride.getScheme(), null, endpointOverride.getHost(), endpointOverride.getPort(),
+                        endpointOverride.getPath(), null, endpointOverride.getFragment()).toString();
+            });
+        }
+        return null;
+    }
+
+    public static Boolean useGlobalEndpointBuiltIn(ExecutionAttributes executionAttributes) {
+        return executionAttributes.getAttribute(AwsExecutionAttribute.USE_GLOBAL_ENDPOINT);
+    }
+
+    /**
+     * True if the the {@link SdkExecutionAttribute#ENDPOINT_OVERRIDDEN} attribute is present and its value is
+     * {@code true}, {@code false} otherwise.
+     */
+    public static boolean endpointIsOverridden(ExecutionAttributes attrs) {
+        return attrs.getOptionalAttribute(SdkExecutionAttribute.ENDPOINT_OVERRIDDEN).orElse(false);
+    }
+
+    /**
+     * True if the the {@link SdkInternalExecutionAttribute#IS_DISCOVERED_ENDPOINT} attribute is present and its value
+     * is {@code true}, {@code false} otherwise.
+     */
+    public static boolean endpointIsDiscovered(ExecutionAttributes attrs) {
+        return attrs.getOptionalAttribute(SdkInternalExecutionAttribute.IS_DISCOVERED_ENDPOINT).orElse(false);
+    }
+
+    /**
+     * True if the the {@link SdkInternalExecutionAttribute#DISABLE_HOST_PREFIX_INJECTION} attribute is present and its
+     * value is {@code true}, {@code false} otherwise.
+     */
+    public static boolean disableHostPrefixInjection(ExecutionAttributes attrs) {
+        return attrs.getOptionalAttribute(SdkInternalExecutionAttribute.DISABLE_HOST_PREFIX_INJECTION).orElse(false);
+    }
+
+    /**
+     * Apply the given endpoint prefix to the endpoint.
+     */
+    public static Endpoint addHostPrefix(Endpoint endpoint, String prefix) {
+        if (StringUtils.isBlank(prefix)) {
+            return endpoint;
+        }
+
+        validatePrefixIsHostNameCompliant(prefix);
+
+        URI originalUrl = endpoint.url();
+        String newHost = prefix + endpoint.url().getHost();
+        URI newUrl = invokeSafely(() -> new URI(originalUrl.getScheme(), null, newHost, originalUrl.getPort(),
+                originalUrl.getPath(), originalUrl.getQuery(), originalUrl.getFragment()));
+
+        return endpoint.toBuilder().url(newUrl).build();
+    }
+
+    /**
+     * This sets the request URI to the resolved URI returned by the endpoint provider. There are some things to be
+     * careful about to make this work properly:
+     * <p>
+     * If the client endpoint is an endpoint override, it may contain a path. In addition, the request marshaller itself
+     * may add components to the path if it's modeled for the operation. Unfortunately,
+     * {@link SdkHttpRequest#encodedPath()} returns the combined path from both the endpoint and the request. There is
+     * no way to know, just from the HTTP request object, where the override path ends (if it's even there) and where
+     * the request path starts. Additionally, the rule itself may also append other parts to the endpoint override path.
+     * <p>
+     * To solve this issue, we pass in the endpoint set on the path, which allows us to the strip the path from the
+     * endpoint override from the request path, and then correctly combine the paths.
+     * <p>
+     * For example, let's suppose the endpoint override on the client is {@code https://example.com/a}. Then we call an
+     * operation {@code Foo()}, that marshalls {@code /c} to the path. The resulting request path is {@code /a/c}.
+     * However, we also pass the endpoint to provider as a parameter, and the resolver returns
+     * {@code https://example.com/a/b}. This method takes care of combining the paths correctly so that the resulting
+     * path is {@code https://example.com/a/b/c}.
+     */
+    public static SdkHttpRequest setUri(SdkHttpRequest request, URI clientEndpoint, URI resolvedUri) {
+        // [client endpoint path]
+        String clientEndpointPath = clientEndpoint.getRawPath();
+
+        // [client endpoint path]/[request path]
+        String requestPath = request.encodedPath();
+
+        // [client endpoint path]/[additional path added by resolver]
+        String resolvedUriPath = resolvedUri.getRawPath();
+
+        String finalPath = requestPath;
+
+        // If there is an additional path added by resolver, i.e., [additional path added by resolver] not null,
+        // we need to combine the path
+        if (!resolvedUriPath.equals(clientEndpointPath)) {
+            finalPath = combinePath(clientEndpointPath, requestPath, resolvedUriPath);
+        }
+
+        return request.toBuilder().protocol(resolvedUri.getScheme()).host(resolvedUri.getHost()).port(resolvedUri.getPort())
+                .encodedPath(finalPath).build();
+    }
+
+    /**
+     * Our goal is to construct [client endpoint path]/[additional path added by resolver]/[request path], so we just
+     * need to strip the client endpoint path from the marshalled request path to isolate just the part added by the
+     * marshaller. Trailing slash is removed from client endpoint path before stripping because it could cause the
+     * leading slash to be removed from the request path: e.g., StringUtils.replaceOnce("/", "//test", "") generates
+     * "/test" and the expected result is "//test"
+     */
+    private static String combinePath(String clientEndpointPath, String requestPath, String resolvedUriPath) {
+        String requestPathWithClientPathRemoved = StringUtils.replaceOnce(requestPath, clientEndpointPath, "");
+        String finalPath = SdkHttpUtils.appendUri(resolvedUriPath, requestPathWithClientPathRemoved);
+        return finalPath;
+    }
+
+    private static void validatePrefixIsHostNameCompliant(String prefix) {
+        String[] components = splitHostLabelOnDots(prefix);
+        for (String component : components) {
+            HostnameValidator.validateHostnameCompliant(component, component, "request");
+        }
+    }
+
+    private static String[] splitHostLabelOnDots(String label) {
+        return label.split("\\.");
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/BooleanEqualsFn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/BooleanEqualsFn.java
new file mode 100644
index 0000000..8254990
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/BooleanEqualsFn.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.utils.Pair;
+
+@SdkInternalApi
+public class BooleanEqualsFn extends Fn {
+    public static final String ID = "booleanEquals";
+
+    public BooleanEqualsFn(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitBoolEquals(this);
+    }
+
+    public static BooleanEqualsFn ofExprs(Expr left, Expr right) {
+        return new BooleanEqualsFn(FnNode.ofExprs(ID, left, right));
+    }
+
+    public Expr getLeft() {
+        return expectTwoArgs().left();
+    }
+
+    public Expr getRight() {
+        return expectTwoArgs().right();
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        Pair<Expr, Expr> args = expectTwoArgs();
+        return RuleError.ctx("while evaluating booleanEquals",
+                () -> Value.fromBool(args.left().eval(scope).expectBool() == args.right().eval(scope).expectBool()));
+    }
+
+    public static BooleanEqualsFn fromParam(Parameter param, Expr value) {
+        return ofExprs(param.expr(), value);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Condition.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Condition.java
new file mode 100644
index 0000000..c21f462
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Condition.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Map;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public final class Condition implements Eval, IntoSelf<Condition> {
+    public static final String ASSIGN = "assign";
+
+    private final Expr fn;
+    private final Identifier result;
+
+    private Condition(Builder builder) {
+        this.fn = builder.fn;
+        this.result = builder.result;
+    }
+
+    public Expr getFn() {
+        return fn;
+    }
+
+    public Optional<Identifier> getResult() {
+        return Optional.ofNullable(result);
+    }
+
+    public static Condition fromNode(JsonNode node) {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        Builder b = builder();
+
+        Fn fn = FnNode.fromNode(node).validate();
+
+        b.fn(fn);
+
+        JsonNode assignNode = objNode.get(ASSIGN);
+        if (assignNode != null) {
+            b.result(assignNode.asString());
+        }
+
+        return b.build();
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        this.getResult().ifPresent(res -> sb.append(res).append(" = "));
+        sb.append(this.fn);
+        return sb.toString();
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        Value value = this.fn.eval(scope);
+        if (!value.isNone()) {
+            this.getResult().ifPresent(res -> scope.insert(res, value));
+        }
+        return value;
+    }
+
+    public Expr expr() {
+        if (this.getResult().isPresent()) {
+            return Expr.ref(this.getResult().get());
+        } else {
+            throw new RuntimeException("Cannot generate expr from a condition without a result");
+        }
+    }
+
+    public static class Builder {
+        private Fn fn;
+        private Identifier result;
+
+        public Builder fn(Fn fn) {
+            this.fn = fn;
+            return this;
+        }
+
+        public Builder result(String result) {
+            this.result = Identifier.of(result);
+            return this;
+        }
+
+        public Condition build() {
+            return new Condition(this);
+        }
+
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultEndpointAuthSchemeStrategy.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultEndpointAuthSchemeStrategy.java
new file mode 100644
index 0000000..772d840
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultEndpointAuthSchemeStrategy.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Function;
+import software.amazon.awssdk.awscore.endpoints.authscheme.EndpointAuthScheme;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.utils.Logger;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public final class DefaultEndpointAuthSchemeStrategy implements EndpointAuthSchemeStrategy {
+    private static final Logger LOG = Logger.loggerFor(DefaultEndpointAuthSchemeStrategy.class);
+
+    private final Map<String, Function<Value.Record, EndpointAuthScheme>> knownAuthSchemesMapping;
+
+    public DefaultEndpointAuthSchemeStrategy(Map<String, Function<Value.Record, EndpointAuthScheme>> knownAuthSchemesMapping) {
+        this.knownAuthSchemesMapping = knownAuthSchemesMapping;
+    }
+
+    @Override
+    public EndpointAuthScheme chooseAuthScheme(List<EndpointAuthScheme> authSchemes) {
+        return authSchemes.stream().filter(scheme -> knownAuthSchemesMapping.containsKey(scheme.name())).findFirst()
+                .orElseThrow(() -> SdkClientException.create("Endpoint did not contain any known auth schemes: " + authSchemes));
+    }
+
+    @Override
+    public List<EndpointAuthScheme> createAuthSchemes(Value authSchemesValue) {
+        Value.Array schemesArray = authSchemesValue.expectArray();
+        List<EndpointAuthScheme> authSchemes = new ArrayList<>();
+        for (int i = 0; i < schemesArray.size(); ++i) {
+            Value.Record scheme = schemesArray.get(i).expectRecord();
+            String authSchemeName = scheme.get(Identifier.of("name")).expectString();
+            Function<Value.Record, EndpointAuthScheme> mapper = knownAuthSchemesMapping.get(authSchemeName);
+            if (mapper == null) {
+                LOG.debug(() -> "Ignoring unknown auth scheme: " + authSchemeName);
+                continue;
+            }
+            authSchemes.add(mapper.apply(scheme));
+        }
+        return authSchemes;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultEndpointAuthSchemeStrategyFactory.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultEndpointAuthSchemeStrategyFactory.java
new file mode 100644
index 0000000..a5ab7dc
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultEndpointAuthSchemeStrategyFactory.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
+import software.amazon.awssdk.awscore.endpoints.authscheme.EndpointAuthScheme;
+import software.amazon.awssdk.awscore.endpoints.authscheme.SigV4AuthScheme;
+import software.amazon.awssdk.awscore.endpoints.authscheme.SigV4aAuthScheme;
+
+public final class DefaultEndpointAuthSchemeStrategyFactory implements EndpointAuthSchemeStrategyFactory {
+    private static final String SIGV4_NAME = "sigv4";
+    private static final String SIGV4A_NAME = "sigv4a";
+
+    public EndpointAuthSchemeStrategy endpointAuthSchemeStrategy() {
+        Map<String, Function<Value.Record, EndpointAuthScheme>> knownAuthSchemesMapping = new HashMap<>();
+        knownAuthSchemesMapping.put(SIGV4A_NAME, this::sigV4A);
+        knownAuthSchemesMapping.put(SIGV4_NAME, this::sigV4);
+        return new DefaultEndpointAuthSchemeStrategy(knownAuthSchemesMapping);
+    }
+
+    private EndpointAuthScheme sigV4A(Value.Record scheme) {
+        SigV4aAuthScheme.Builder schemeBuilder = SigV4aAuthScheme.builder();
+
+        Value signingName = scheme.get(Identifier.of("signingName"));
+        if (signingName != null) {
+            schemeBuilder.signingName(signingName.expectString());
+        }
+
+        Value signingRegionSet = scheme.get(Identifier.of("signingRegionSet"));
+        if (signingRegionSet != null) {
+            Value.Array signingRegionSetArray = signingRegionSet.expectArray();
+            for (int j = 0; j < signingRegionSetArray.size(); ++j) {
+                schemeBuilder.addSigningRegion(signingRegionSetArray.get(j).expectString());
+            }
+        }
+
+        Value disableDoubleEncoding = scheme.get(Identifier.of("disableDoubleEncoding"));
+        if (disableDoubleEncoding != null) {
+            schemeBuilder.disableDoubleEncoding(disableDoubleEncoding.expectBool());
+        }
+
+        return schemeBuilder.build();
+    }
+
+    private EndpointAuthScheme sigV4(Value.Record scheme) {
+        SigV4AuthScheme.Builder schemeBuilder = SigV4AuthScheme.builder();
+
+        Value signingName = scheme.get(Identifier.of("signingName"));
+        if (signingName != null) {
+            schemeBuilder.signingName(signingName.expectString());
+        }
+
+        Value signingRegion = scheme.get(Identifier.of("signingRegion"));
+        if (signingRegion != null) {
+            schemeBuilder.signingRegion(signingRegion.expectString());
+        }
+
+        Value disableDoubleEncoding = scheme.get(Identifier.of("disableDoubleEncoding"));
+        if (disableDoubleEncoding != null) {
+            schemeBuilder.disableDoubleEncoding(disableDoubleEncoding.expectBool());
+        }
+
+        return schemeBuilder.build();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultKmsEndpointProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultKmsEndpointProvider.java
new file mode 100644
index 0000000..1322d30
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultKmsEndpointProvider.java
@@ -0,0 +1,361 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.net.URI;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.CompletableFuture;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.endpoints.AwsEndpointAttribute;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.endpoints.Endpoint;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointParams;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointProvider;
+import software.amazon.awssdk.utils.CompletableFutureUtils;
+import software.amazon.awssdk.utils.Logger;
+import software.amazon.awssdk.utils.Validate;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class DefaultKmsEndpointProvider implements KmsEndpointProvider {
+    private static final Logger LOG = Logger.loggerFor(DefaultKmsEndpointProvider.class);
+
+    private static final EndpointRuleset ENDPOINT_RULE_SET = ruleSet();
+
+    private final EndpointAuthSchemeStrategy endpointAuthSchemeStrategy;
+
+    public DefaultKmsEndpointProvider() {
+        EndpointAuthSchemeStrategyFactory endpointAuthSchemeStrategyFactory = new DefaultEndpointAuthSchemeStrategyFactory();
+        this.endpointAuthSchemeStrategy = endpointAuthSchemeStrategyFactory.endpointAuthSchemeStrategy();
+    }
+
+    @Override
+    public CompletableFuture<Endpoint> resolveEndpoint(KmsEndpointParams endpointParams) {
+        Validate.notNull(endpointParams.useDualStack(), "Parameter 'UseDualStack' must not be null");
+        Validate.notNull(endpointParams.useFips(), "Parameter 'UseFIPS' must not be null");
+        Value res = new DefaultRuleEngine().evaluate(ENDPOINT_RULE_SET, toIdentifierValueMap(endpointParams));
+        try {
+            return CompletableFuture.completedFuture(valueAsEndpointOrThrow(res));
+        } catch (Exception error) {
+            return CompletableFutureUtils.failedFuture(error);
+        }
+    }
+
+    private static Map<Identifier, Value> toIdentifierValueMap(KmsEndpointParams params) {
+        Map<Identifier, Value> paramsMap = new HashMap<>();
+        if (params.region() != null) {
+            paramsMap.put(Identifier.of("Region"), Value.fromStr(params.region().id()));
+        }
+        if (params.useDualStack() != null) {
+            paramsMap.put(Identifier.of("UseDualStack"), Value.fromBool(params.useDualStack()));
+        }
+        if (params.useFips() != null) {
+            paramsMap.put(Identifier.of("UseFIPS"), Value.fromBool(params.useFips()));
+        }
+        if (params.endpoint() != null) {
+            paramsMap.put(Identifier.of("Endpoint"), Value.fromStr(params.endpoint()));
+        }
+        return paramsMap;
+    }
+
+    Endpoint valueAsEndpointOrThrow(Value value) {
+        if (value instanceof Value.Endpoint) {
+            Value.Endpoint endpoint = value.expectEndpoint();
+            Endpoint.Builder builder = Endpoint.builder();
+            builder.url(URI.create(endpoint.getUrl()));
+            Map<String, List<String>> headers = endpoint.getHeaders();
+            if (headers != null) {
+                headers.forEach((name, values) -> values.forEach(v -> builder.putHeader(name, v)));
+            }
+            addKnownProperties(builder, endpoint.getProperties());
+            return builder.build();
+        } else if (value instanceof Value.Str) {
+            String errorMsg = value.expectString();
+            if (errorMsg.contains("Invalid ARN") && errorMsg.contains(":s3:::")) {
+                errorMsg += ". Use the bucket name instead of simple bucket ARNs in GetBucketLocationRequest.";
+            }
+            throw SdkClientException.create(errorMsg);
+        } else {
+            throw SdkClientException.create("Rule engine return neither an endpoint result or error value. Returned value was: "
+                    + value);
+        }
+    }
+
+    private static Rule endpointRule_1() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("booleanEquals")
+                                        .argv(Arrays.asList(Expr.ref(Identifier.of("UseFIPS")), Expr.of(true))).build()
+                                        .validate()).build())
+                .error("Invalid Configuration: FIPS and custom endpoint are not supported");
+    }
+
+    private static Rule endpointRule_2() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("booleanEquals")
+                                        .argv(Arrays.asList(Expr.ref(Identifier.of("UseDualStack")), Expr.of(true))).build()
+                                        .validate()).build())
+                .error("Invalid Configuration: Dualstack and custom endpoint are not supported");
+    }
+
+    private static Rule endpointRule_3() {
+        return Rule.builder().endpoint(EndpointResult.builder().url(Expr.ref(Identifier.of("Endpoint"))).build());
+    }
+
+    private static Rule endpointRule_0() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("isSet").argv(Arrays.asList(Expr.ref(Identifier.of("Endpoint")))).build()
+                                        .validate()).build())
+                .treeRule(Arrays.asList(endpointRule_1(), endpointRule_2(), endpointRule_3()));
+    }
+
+    private static Rule endpointRule_8() {
+        return Rule.builder().endpoint(
+                EndpointResult.builder().url(Expr.of("https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}")).build());
+    }
+
+    private static Rule endpointRule_7() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode
+                                        .builder()
+                                        .fn("booleanEquals")
+                                        .argv(Arrays.asList(
+                                                Expr.of(true),
+                                                FnNode.builder()
+                                                        .fn("getAttr")
+                                                        .argv(Arrays.asList(Expr.ref(Identifier.of("PartitionResult")),
+                                                                Expr.of("supportsFIPS"))).build().validate())).build().validate())
+                                .build())
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode
+                                        .builder()
+                                        .fn("booleanEquals")
+                                        .argv(Arrays.asList(
+                                                Expr.of(true),
+                                                FnNode.builder()
+                                                        .fn("getAttr")
+                                                        .argv(Arrays.asList(Expr.ref(Identifier.of("PartitionResult")),
+                                                                Expr.of("supportsDualStack"))).build().validate())).build()
+                                        .validate()).build()).treeRule(Arrays.asList(endpointRule_8()));
+    }
+
+    private static Rule endpointRule_9() {
+        return Rule.builder().error("FIPS and DualStack are enabled, but this partition does not support one or both");
+    }
+
+    private static Rule endpointRule_6() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("booleanEquals")
+                                        .argv(Arrays.asList(Expr.ref(Identifier.of("UseFIPS")), Expr.of(true))).build()
+                                        .validate()).build())
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("booleanEquals")
+                                        .argv(Arrays.asList(Expr.ref(Identifier.of("UseDualStack")), Expr.of(true))).build()
+                                        .validate()).build()).treeRule(Arrays.asList(endpointRule_7(), endpointRule_9()));
+    }
+
+    private static Rule endpointRule_12() {
+        return Rule.builder().endpoint(
+                EndpointResult.builder().url(Expr.of("https://kms-fips.{Region}.{PartitionResult#dnsSuffix}")).build());
+    }
+
+    private static Rule endpointRule_11() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode
+                                        .builder()
+                                        .fn("booleanEquals")
+                                        .argv(Arrays.asList(
+                                                FnNode.builder()
+                                                        .fn("getAttr")
+                                                        .argv(Arrays.asList(Expr.ref(Identifier.of("PartitionResult")),
+                                                                Expr.of("supportsFIPS"))).build().validate(), Expr.of(true)))
+                                        .build().validate()).build()).treeRule(Arrays.asList(endpointRule_12()));
+    }
+
+    private static Rule endpointRule_13() {
+        return Rule.builder().error("FIPS is enabled but this partition does not support FIPS");
+    }
+
+    private static Rule endpointRule_10() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("booleanEquals")
+                                        .argv(Arrays.asList(Expr.ref(Identifier.of("UseFIPS")), Expr.of(true))).build()
+                                        .validate()).build()).treeRule(Arrays.asList(endpointRule_11(), endpointRule_13()));
+    }
+
+    private static Rule endpointRule_16() {
+        return Rule.builder().endpoint(
+                EndpointResult.builder().url(Expr.of("https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}")).build());
+    }
+
+    private static Rule endpointRule_15() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode
+                                        .builder()
+                                        .fn("booleanEquals")
+                                        .argv(Arrays.asList(
+                                                Expr.of(true),
+                                                FnNode.builder()
+                                                        .fn("getAttr")
+                                                        .argv(Arrays.asList(Expr.ref(Identifier.of("PartitionResult")),
+                                                                Expr.of("supportsDualStack"))).build().validate())).build()
+                                        .validate()).build()).treeRule(Arrays.asList(endpointRule_16()));
+    }
+
+    private static Rule endpointRule_17() {
+        return Rule.builder().error("DualStack is enabled but this partition does not support DualStack");
+    }
+
+    private static Rule endpointRule_14() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("booleanEquals")
+                                        .argv(Arrays.asList(Expr.ref(Identifier.of("UseDualStack")), Expr.of(true))).build()
+                                        .validate()).build()).treeRule(Arrays.asList(endpointRule_15(), endpointRule_17()));
+    }
+
+    private static Rule endpointRule_18() {
+        return Rule.builder().endpoint(
+                EndpointResult.builder().url(Expr.of("https://kms.{Region}.{PartitionResult#dnsSuffix}")).build());
+    }
+
+    private static Rule endpointRule_5() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("aws.partition").argv(Arrays.asList(Expr.ref(Identifier.of("Region"))))
+                                        .build().validate()).result("PartitionResult").build())
+                .treeRule(Arrays.asList(endpointRule_6(), endpointRule_10(), endpointRule_14(), endpointRule_18()));
+    }
+
+    private static Rule endpointRule_4() {
+        return Rule
+                .builder()
+                .addCondition(
+                        Condition
+                                .builder()
+                                .fn(FnNode.builder().fn("isSet").argv(Arrays.asList(Expr.ref(Identifier.of("Region")))).build()
+                                        .validate()).build()).treeRule(Arrays.asList(endpointRule_5()));
+    }
+
+    private static Rule endpointRule_19() {
+        return Rule.builder().error("Invalid Configuration: Missing Region");
+    }
+
+    private static EndpointRuleset ruleSet() {
+        return EndpointRuleset
+                .builder()
+                .version("1.0")
+                .serviceId(null)
+                .parameters(
+                        Parameters
+                                .builder()
+                                .addParameter(
+                                        Parameter.builder().name("Region").type(ParameterType.fromValue("String"))
+                                                .required(false).builtIn("AWS::Region")
+                                                .documentation("The AWS region used to dispatch the request.").build())
+                                .addParameter(
+                                        Parameter
+                                                .builder()
+                                                .name("UseDualStack")
+                                                .type(ParameterType.fromValue("Boolean"))
+                                                .required(true)
+                                                .builtIn("AWS::UseDualStack")
+                                                .documentation(
+                                                        "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.")
+                                                .defaultValue(Value.fromBool(false)).build())
+                                .addParameter(
+                                        Parameter
+                                                .builder()
+                                                .name("UseFIPS")
+                                                .type(ParameterType.fromValue("Boolean"))
+                                                .required(true)
+                                                .builtIn("AWS::UseFIPS")
+                                                .documentation(
+                                                        "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.")
+                                                .defaultValue(Value.fromBool(false)).build())
+                                .addParameter(
+                                        Parameter.builder().name("Endpoint").type(ParameterType.fromValue("String"))
+                                                .required(false).builtIn("SDK::Endpoint")
+                                                .documentation("Override the endpoint used to send this request").build())
+                                .build()).addRule(endpointRule_0()).addRule(endpointRule_4()).addRule(endpointRule_19()).build();
+    }
+
+    @Override
+    public boolean equals(Object rhs) {
+        return rhs != null && getClass().equals(rhs.getClass());
+    }
+
+    @Override
+    public int hashCode() {
+        return getClass().hashCode();
+    }
+
+    private void addKnownProperties(Endpoint.Builder builder, Map<String, Value> properties) {
+        properties.forEach((n, v) -> {
+            switch (n) {
+            case "authSchemes":
+                builder.putAttribute(AwsEndpointAttribute.AUTH_SCHEMES, endpointAuthSchemeStrategy.createAuthSchemes(v));
+                break;
+            default:
+                LOG.debug(() -> "Ignoring unknown endpoint property: " + n);
+                break;
+            }
+        });
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultPartitionDataProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultPartitionDataProvider.java
new file mode 100644
index 0000000..6dbce55
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultPartitionDataProvider.java
@@ -0,0 +1,130 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class DefaultPartitionDataProvider implements PartitionDataProvider {
+    @Override
+    public Partitions loadPartitions() {
+        return LazyPartitionsContainer.PARTITIONS;
+    }
+
+    static class LazyPartitionsContainer {
+        static final Partitions PARTITIONS = Partitions
+                .builder()
+                .version("1.1")
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws")
+                                .regionRegex("^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$")
+                                .putRegion("af-south-1", RegionOverride.builder().build())
+                                .putRegion("ap-east-1", RegionOverride.builder().build())
+                                .putRegion("ap-northeast-1", RegionOverride.builder().build())
+                                .putRegion("ap-northeast-2", RegionOverride.builder().build())
+                                .putRegion("ap-northeast-3", RegionOverride.builder().build())
+                                .putRegion("ap-south-1", RegionOverride.builder().build())
+                                .putRegion("ap-south-2", RegionOverride.builder().build())
+                                .putRegion("ap-southeast-1", RegionOverride.builder().build())
+                                .putRegion("ap-southeast-2", RegionOverride.builder().build())
+                                .putRegion("ap-southeast-3", RegionOverride.builder().build())
+                                .putRegion("ap-southeast-4", RegionOverride.builder().build())
+                                .putRegion("aws-global", RegionOverride.builder().build())
+                                .putRegion("ca-central-1", RegionOverride.builder().build())
+                                .putRegion("ca-west-1", RegionOverride.builder().build())
+                                .putRegion("eu-central-1", RegionOverride.builder().build())
+                                .putRegion("eu-central-2", RegionOverride.builder().build())
+                                .putRegion("eu-north-1", RegionOverride.builder().build())
+                                .putRegion("eu-south-1", RegionOverride.builder().build())
+                                .putRegion("eu-south-2", RegionOverride.builder().build())
+                                .putRegion("eu-west-1", RegionOverride.builder().build())
+                                .putRegion("eu-west-2", RegionOverride.builder().build())
+                                .putRegion("eu-west-3", RegionOverride.builder().build())
+                                .putRegion("il-central-1", RegionOverride.builder().build())
+                                .putRegion("me-central-1", RegionOverride.builder().build())
+                                .putRegion("me-south-1", RegionOverride.builder().build())
+                                .putRegion("sa-east-1", RegionOverride.builder().build())
+                                .putRegion("us-east-1", RegionOverride.builder().build())
+                                .putRegion("us-east-2", RegionOverride.builder().build())
+                                .putRegion("us-west-1", RegionOverride.builder().build())
+                                .putRegion("us-west-2", RegionOverride.builder().build())
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("amazonaws.com").dualStackDnsSuffix("api.aws")
+                                                .supportsFips(true).supportsDualStack(true).build()).build())
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws-cn")
+                                .regionRegex("^cn\\-\\w+\\-\\d+$")
+                                .putRegion("aws-cn-global", RegionOverride.builder().build())
+                                .putRegion("cn-north-1", RegionOverride.builder().build())
+                                .putRegion("cn-northwest-1", RegionOverride.builder().build())
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("amazonaws.com.cn")
+                                                .dualStackDnsSuffix("api.amazonwebservices.com.cn").supportsFips(true)
+                                                .supportsDualStack(true).build()).build())
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws-us-gov")
+                                .regionRegex("^us\\-gov\\-\\w+\\-\\d+$")
+                                .putRegion("aws-us-gov-global", RegionOverride.builder().build())
+                                .putRegion("us-gov-east-1", RegionOverride.builder().build())
+                                .putRegion("us-gov-west-1", RegionOverride.builder().build())
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("amazonaws.com").dualStackDnsSuffix("api.aws")
+                                                .supportsFips(true).supportsDualStack(true).build()).build())
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws-iso")
+                                .regionRegex("^us\\-iso\\-\\w+\\-\\d+$")
+                                .putRegion("aws-iso-global", RegionOverride.builder().build())
+                                .putRegion("us-iso-east-1", RegionOverride.builder().build())
+                                .putRegion("us-iso-west-1", RegionOverride.builder().build())
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("c2s.ic.gov").dualStackDnsSuffix("c2s.ic.gov")
+                                                .supportsFips(true).supportsDualStack(false).build()).build())
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws-iso-b")
+                                .regionRegex("^us\\-isob\\-\\w+\\-\\d+$")
+                                .putRegion("aws-iso-b-global", RegionOverride.builder().build())
+                                .putRegion("us-isob-east-1", RegionOverride.builder().build())
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("sc2s.sgov.gov").dualStackDnsSuffix("sc2s.sgov.gov")
+                                                .supportsFips(true).supportsDualStack(false).build()).build())
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws-iso-e")
+                                .regionRegex("^eu\\-isoe\\-\\w+\\-\\d+$")
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("cloud.adc-e.uk").dualStackDnsSuffix("cloud.adc-e.uk")
+                                                .supportsFips(true).supportsDualStack(false).build()).build())
+                .addPartition(
+                        Partition
+                                .builder()
+                                .id("aws-iso-f")
+                                .regionRegex("^us\\-isof\\-\\w+\\-\\d+$")
+                                .outputs(
+                                        Outputs.builder().dnsSuffix("csp.hci.ic.gov").dualStackDnsSuffix("csp.hci.ic.gov")
+                                                .supportsFips(true).supportsDualStack(false).build()).build()).build();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultRuleEngine.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultRuleEngine.java
new file mode 100644
index 0000000..37950cc
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/DefaultRuleEngine.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class DefaultRuleEngine implements RuleEngine {
+    private final RuleEvaluator evaluator = new RuleEvaluator();
+
+    @Override
+    public Value evaluate(EndpointRuleset ruleset, Map<Identifier, Value> args) {
+        return evaluator.evaluateRuleset(ruleset, args);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAttributeProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAttributeProvider.java
new file mode 100644
index 0000000..97ebcf1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAttributeProvider.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.endpoints.EndpointAttributeKey;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * Link between an endpoint property and the {@link AwsEndpointAttribute} it represents.
+ *
+ * @param <T>
+ *        the {@link AwsEndpointAttribute} type
+ */
+@SdkInternalApi
+public interface EndpointAttributeProvider<T> {
+    String propertyName();
+
+    EndpointAttributeKey<T> attributeKey();
+
+    T attributeValue(Value value);
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAuthSchemeStrategy.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAuthSchemeStrategy.java
new file mode 100644
index 0000000..60cc0b8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAuthSchemeStrategy.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import software.amazon.awssdk.awscore.endpoints.authscheme.EndpointAuthScheme;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface EndpointAuthSchemeStrategy {
+    EndpointAuthScheme chooseAuthScheme(List<EndpointAuthScheme> authSchemes);
+
+    List<EndpointAuthScheme> createAuthSchemes(Value authSchemesValue);
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAuthSchemeStrategyFactory.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAuthSchemeStrategyFactory.java
new file mode 100644
index 0000000..e0d63f72
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointAuthSchemeStrategyFactory.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.function.Supplier;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface EndpointAuthSchemeStrategyFactory extends Supplier<EndpointAuthSchemeStrategy> {
+    EndpointAuthSchemeStrategy endpointAuthSchemeStrategy();
+
+    @Override
+    default EndpointAuthSchemeStrategy get() {
+        return endpointAuthSchemeStrategy();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointResult.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointResult.java
new file mode 100644
index 0000000..cb641f6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointResult.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public final class EndpointResult {
+    private static final String URL = "url";
+    private static final String PROPERTIES = "properties";
+    private static final String HEADERS = "headers";
+
+    private Expr url;
+    private Map<Identifier, Expr> properties;
+    private Map<String, List<Expr>> headers;
+
+    private EndpointResult(Builder builder) {
+        this.url = builder.url;
+        this.properties = builder.properties;
+        this.headers = builder.headers;
+    }
+
+    public Expr getUrl() {
+        return url;
+    }
+
+    public Map<Identifier, Expr> getProperties() {
+        return properties;
+    }
+
+    public Map<String, List<Expr>> getHeaders() {
+        return headers;
+    }
+
+    public static EndpointResult fromNode(JsonNode node) {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        Builder b = builder();
+
+        b.url(Expr.fromNode(objNode.get(URL)));
+
+        JsonNode propertiesNode = objNode.get(PROPERTIES);
+        if (propertiesNode != null) {
+            propertiesNode.asObject().forEach((k, v) -> {
+                b.addProperty(Identifier.of(k), Literal.fromNode(v));
+            });
+        }
+
+        JsonNode headersNode = objNode.get(HEADERS);
+        if (headersNode != null) {
+            headersNode.asObject().forEach((k, v) -> {
+                b.addHeader(k, v.asArray().stream().map(Literal::fromNode).collect(Collectors.toList()));
+            });
+        }
+
+        return b.build();
+    }
+
+    @Override
+    public String toString() {
+        return "Endpoint{" + "url=" + url + ", properties=" + properties + ", headers=" + headers + '}';
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        EndpointResult endpoint = (EndpointResult) o;
+
+        if (url != null ? !url.equals(endpoint.url) : endpoint.url != null) {
+            return false;
+        }
+        if (properties != null ? !properties.equals(endpoint.properties) : endpoint.properties != null) {
+            return false;
+        }
+        return headers != null ? headers.equals(endpoint.headers) : endpoint.headers == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = url != null ? url.hashCode() : 0;
+        result = 31 * result + (properties != null ? properties.hashCode() : 0);
+        result = 31 * result + (headers != null ? headers.hashCode() : 0);
+        return result;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static class Builder {
+        private Expr url;
+        private final Map<Identifier, Expr> properties = new HashMap<>();
+        private final Map<String, List<Expr>> headers = new HashMap<>();
+
+        public Builder url(Expr url) {
+            this.url = url;
+            return this;
+        }
+
+        public Builder addProperty(Identifier name, Expr value) {
+            properties.put(name, value);
+            return this;
+        }
+
+        public Builder addHeader(String name, List<Expr> value) {
+            this.headers.put(name, value);
+            return this;
+        }
+
+        public Builder addHeaderValue(String name, Expr value) {
+            List<Expr> values = this.headers.computeIfAbsent(name, n -> new ArrayList<>());
+            values.add(value);
+            return this;
+        }
+
+        public EndpointResult build() {
+            return new EndpointResult(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointRule.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointRule.java
new file mode 100644
index 0000000..6592345
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointRule.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public final class EndpointRule extends Rule {
+    private final EndpointResult endpoint;
+
+    protected EndpointRule(Builder builder, EndpointResult endpoint) {
+        super(builder);
+        this.endpoint = endpoint;
+    }
+
+    public EndpointResult getEndpoint() {
+        return endpoint;
+    }
+
+    @Override
+    public <T> T accept(RuleValueVisitor<T> visitor) {
+        return visitor.visitEndpointRule(this.getEndpoint());
+    }
+
+    @Override
+    public String toString() {
+        return "EndpointRule{" + "endpoint=" + endpoint + ", conditions=" + conditions + ", documentation='" + documentation
+                + '\'' + '}';
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointRuleset.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointRuleset.java
new file mode 100644
index 0000000..8d3214a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/EndpointRuleset.java
@@ -0,0 +1,127 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+/**
+ * The set of rules that are used to compute the endpoint to use for a request.
+ */
+@SdkInternalApi
+public final class EndpointRuleset {
+    private static final String SERVICE_ID = "serviceId";
+    private static final String VERSION = "version";
+    private static final String PARAMETERS = "parameters";
+    private static final String RULES = "rules";
+
+    private final String serviceId;
+    private final List<Rule> rules;
+    private final String version;
+    private final Parameters parameters;
+
+    private EndpointRuleset(Builder b) {
+        this.serviceId = b.serviceId;
+        this.rules = b.rules;
+        this.version = b.version;
+        this.parameters = b.parameters;
+    }
+
+    public String getServiceId() {
+        return serviceId;
+    }
+
+    public List<Rule> getRules() {
+        return rules;
+    }
+
+    public String getVersion() {
+        return version;
+    }
+
+    public Parameters getParameters() {
+        return parameters;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static EndpointRuleset fromNode(JsonNode node) {
+        Builder b = builder();
+
+        Map<String, JsonNode> obj = node.asObject();
+
+        JsonNode serviceIdNode = obj.get(SERVICE_ID);
+        if (serviceIdNode != null) {
+            b.serviceId(serviceIdNode.asString());
+        }
+
+        JsonNode versionNode = obj.get(VERSION);
+        if (versionNode != null) {
+            b.version(versionNode.asString());
+        }
+
+        b.parameters(Parameters.fromNode(obj.get(PARAMETERS)));
+
+        obj.get(RULES).asArray().forEach(rn -> b.addRule(Rule.fromNode(rn)));
+
+        return b.build();
+    }
+
+    @Override
+    public String toString() {
+        return "EndpointRuleset{" + "serviceId='" + serviceId + '\'' + ", rules=" + rules + ", version='" + version + '\''
+                + ", parameters=" + parameters + '}';
+    }
+
+    public static class Builder {
+        private String serviceId;
+        private final List<Rule> rules = new ArrayList<>();
+        private String version;
+        private Parameters parameters;
+
+        public Builder serviceId(String serviceId) {
+            this.serviceId = serviceId;
+            return this;
+        }
+
+        public Builder withDefaultVersion() {
+            this.version = "1.0";
+            return this;
+        }
+
+        public Builder version(String version) {
+            this.version = version;
+            return this;
+        }
+
+        public Builder addRule(Rule rule) {
+            rules.add(rule);
+            return this;
+        }
+
+        public Builder parameters(Parameters parameters) {
+            this.parameters = parameters;
+            return this;
+        }
+
+        public EndpointRuleset build() {
+            return new EndpointRuleset(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ErrorRule.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ErrorRule.java
new file mode 100644
index 0000000..b9a04bd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ErrorRule.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class ErrorRule extends Rule {
+    private final Expr error;
+
+    public ErrorRule(Builder builder, Expr error) {
+        super(builder);
+        this.error = error;
+    }
+
+    @Override
+    public <T> T accept(RuleValueVisitor<T> v) {
+        return v.visitErrorRule(error);
+    }
+
+    @Override
+    public String toString() {
+        return "ErrorRule{" + "error=" + error + ", conditions=" + conditions + ", documentation='" + documentation + '\'' + '}';
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Eval.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Eval.java
new file mode 100644
index 0000000..6065912
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Eval.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface Eval {
+    Value eval(Scope<Value> scope);
+}
\ No newline at end of file
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Expr.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Expr.java
new file mode 100644
index 0000000..63463c4
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Expr.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public abstract class Expr implements Eval {
+
+    public abstract <R> R accept(ExprVisitor<R> visitor);
+
+    public GetAttr getAttr(String path) {
+        return GetAttr.builder().target(this).path(path).build();
+    }
+
+    public GetAttr getAttr(Identifier path) {
+        return GetAttr.builder().target(this).path(path.asString()).build();
+    }
+
+    public static Expr fromNode(JsonNode node) {
+        if (node.isObject()) {
+            Map<String, JsonNode> objNode = node.asObject();
+            JsonNode ref = objNode.get("ref");
+            JsonNode fn = objNode.get("fn");
+            if ((ref != null ? 1 : 0) + (fn != null ? 1 : 0) != 1) {
+                throw SourceException.builder().message("expected exactly one of `ref` or `fn` to be set").build();
+            }
+            if (ref != null) {
+                return ref(Identifier.of(ref.asString()));
+            }
+            return RuleError.ctx("while parsing fn", () -> FnNode.fromNode(node).validate());
+        } else if (node.isString()) {
+            return Literal.fromStr(node.asString());
+        } else {
+            return Literal.fromNode(node);
+        }
+    }
+
+    /**
+     * Parse a value from a "short form" used within a template
+     *
+     * @param shortForm
+     * @return
+     */
+    public static Expr parseShortform(String shortForm) {
+        return RuleError.ctx("while parsing `" + shortForm + "` within a template", () -> {
+            if (shortForm.contains("#")) {
+                String[] parts = shortForm.split("#", 2);
+                String base = parts[0];
+                String pattern = parts[1];
+                return GetAttr.builder().target(ref(Identifier.of(base))).path(pattern).build();
+            } else {
+                return ref(Identifier.of(shortForm));
+            }
+        });
+    }
+
+    public String template() {
+        throw new RuntimeException(String.format("cannot convert %s to a string template", this));
+    }
+
+    public static Ref ref(Identifier name) {
+        return new Ref(name);
+    }
+
+    public static Expr of(boolean value) {
+        return Literal.fromBool(value);
+    }
+
+    public static Expr of(int value) {
+        return Literal.fromInteger(value);
+    }
+
+    public static Expr of(String value) {
+        return Literal.fromStr(value);
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ExprVisitor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ExprVisitor.java
new file mode 100644
index 0000000..9a62c34
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ExprVisitor.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface ExprVisitor<R> {
+
+    R visitLiteral(Literal literal);
+
+    R visitRef(Ref ref);
+
+    R visitFn(Fn fn);
+
+    abstract class Default<R> implements ExprVisitor<R> {
+
+        public abstract R getDefault();
+
+        @Override
+        public R visitLiteral(Literal literal) {
+            return getDefault();
+        }
+
+        @Override
+        public R visitRef(Ref ref) {
+            return getDefault();
+        }
+
+        @Override
+        public R visitFn(Fn fn) {
+            return getDefault();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FatScope.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FatScope.java
new file mode 100644
index 0000000..440a0dd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FatScope.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.HashMap;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public final class FatScope<T> {
+    private final HashMap<Identifier, T> types;
+    private final HashMap<Expr, T> facts;
+
+    public FatScope(HashMap<Identifier, T> types, HashMap<Expr, T> facts) {
+        this.types = types;
+        this.facts = facts;
+    }
+
+    public FatScope() {
+        this(new HashMap<>(), new HashMap<>());
+    }
+
+    public HashMap<Identifier, T> types() {
+        return types;
+    }
+
+    public HashMap<Expr, T> facts() {
+        return facts;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        FatScope<?> fatScope = (FatScope<?>) o;
+
+        if (types != null ? !types.equals(fatScope.types) : fatScope.types != null) {
+            return false;
+        }
+        return facts != null ? facts.equals(fatScope.facts) : fatScope.facts == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = types != null ? types.hashCode() : 0;
+        result = 31 * result + (facts != null ? facts.hashCode() : 0);
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        return "FatScope[" + "types=" + types + ", " + "facts=" + facts + ']';
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Fn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Fn.java
new file mode 100644
index 0000000..8cd7cd2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Fn.java
@@ -0,0 +1,129 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.utils.Pair;
+
+@SdkInternalApi
+public abstract class Fn extends Expr implements Into<Condition> {
+    protected FnNode fnNode;
+
+    public Fn(FnNode fnNode) {
+        this.fnNode = fnNode;
+    }
+
+    /**
+     * Convert this fn into a condition
+     */
+    public Condition condition() {
+        return new Condition.Builder().fn(this).build();
+    }
+
+    public Condition condition(String result) {
+        return new Condition.Builder().fn(this).result(result).build();
+    }
+
+    public abstract <T> T acceptFnVisitor(FnVisitor<T> visitor);
+
+    public <R> R accept(ExprVisitor<R> visitor) {
+        return visitor.visitFn(this);
+    }
+
+    /**
+     * Returns the name of this function, eg. {@code isSet}, {@code parseUrl}
+     * 
+     * @return The name
+     */
+    public String getName() {
+        return fnNode.getId();
+    }
+
+    /**
+     * @return The arguments to this function
+     */
+    public List<Expr> getArgv() {
+        return fnNode.getArgv();
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        if (!super.equals(o)) {
+            return false;
+        }
+
+        Fn fn = (Fn) o;
+
+        return fnNode != null ? fnNode.equals(fn.fnNode) : fn.fnNode == null;
+    }
+
+    @Override
+    public int hashCode() {
+        return fnNode != null ? fnNode.hashCode() : 0;
+    }
+
+    @Override
+    public String toString() {
+        return String.format("%s(%s)", fnNode.getId(),
+                fnNode.getArgv().stream().map(Expr::toString).collect(Collectors.joining(", ")));
+    }
+
+    protected Expr expectOneArg() {
+        List<Expr> argv = this.fnNode.getArgv();
+        if (argv.size() == 1) {
+            return argv.get(0);
+        } else {
+            throw RuleError.builder()
+                    .cause(SourceException.builder().message("expected 1 argument but found " + argv.size()).build()).build();
+        }
+    }
+
+    protected Pair<Expr, Expr> expectTwoArgs() {
+        List<Expr> argv = this.fnNode.getArgv();
+        if (argv.size() == 2) {
+            return Pair.of(argv.get(0), argv.get(1));
+        } else {
+            throw RuleError.builder()
+                    .cause(SourceException.builder().message("expected 2 arguments but found " + argv.size()).build()).build();
+        }
+
+    }
+
+    protected List<Expr> expectVariableArgs(int expectedNumberArgs) {
+        List<Expr> argv = this.fnNode.getArgv();
+        if (argv.size() == expectedNumberArgs) {
+            return argv;
+        } else {
+            throw RuleError
+                    .builder()
+                    .cause(SourceException.builder()
+                            .message(String.format("expected %d arguments but found %d", expectedNumberArgs, argv.size()))
+                            .build()).build();
+        }
+
+    }
+
+    @Override
+    public Condition into() {
+        return this.condition();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FnNode.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FnNode.java
new file mode 100644
index 0000000..51644d0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FnNode.java
@@ -0,0 +1,140 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+/**
+ * Parsed but not validated function contents containing the `fn` name and `argv`
+ */
+@SdkInternalApi
+public final class FnNode {
+    private static final String ARGV = "argv";
+    private static final String FN = "fn";
+
+    private final String fn;
+    private final List<Expr> argv;
+
+    private FnNode(Builder builder) {
+        this.fn = builder.fn;
+        this.argv = builder.argv;
+    }
+
+    public static FnNode ofExprs(String fn, Expr... expr) {
+        return builder().fn(fn).argv(Arrays.stream(expr).collect(Collectors.toList())).build();
+    }
+
+    public Fn validate() {
+        switch (fn) {
+        case BooleanEqualsFn.ID:
+            return new BooleanEqualsFn(this);
+        case PartitionFn.ID:
+            return new PartitionFn(this);
+        case StringEqualsFn.ID:
+            return new StringEqualsFn(this);
+        case IsSet.ID:
+            return new IsSet(this);
+        case IsValidHostLabel.ID:
+            return new IsValidHostLabel(this);
+        case GetAttr.ID:
+            return new GetAttr(this);
+        case ParseArn.ID:
+            return new ParseArn(this);
+        case Not.ID:
+            return new Not(this);
+        case ParseUrl.ID:
+            return new ParseUrl(this);
+        case Substring.ID:
+            return new Substring(this);
+        case UriEncodeFn.ID:
+            return new UriEncodeFn(this);
+        case IsVirtualHostableS3Bucket.ID:
+            return new IsVirtualHostableS3Bucket(this);
+        default:
+            throw RuleError.builder()
+                    .cause(SourceException.builder().message(String.format("`%s` is not a valid function", fn)).build()).build();
+        }
+    }
+
+    public String getId() {
+        return fn;
+    }
+
+    public List<Expr> getArgv() {
+        return argv;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        FnNode fnNode = (FnNode) o;
+
+        if (fn != null ? !fn.equals(fnNode.fn) : fnNode.fn != null) {
+            return false;
+        }
+        return argv != null ? argv.equals(fnNode.argv) : fnNode.argv == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = fn != null ? fn.hashCode() : 0;
+        result = 31 * result + (argv != null ? argv.hashCode() : 0);
+        return result;
+    }
+
+    public static FnNode fromNode(JsonNode node) {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        return builder().fn(objNode.get(FN).asString())
+                .argv(objNode.get(ARGV).asArray().stream().map(Expr::fromNode).collect(Collectors.toList())).build();
+    }
+
+    public static class Builder {
+        private String fn;
+        private List<Expr> argv;
+
+        public Builder() {
+        }
+
+        public Builder argv(List<Expr> argv) {
+            this.argv = argv;
+            return this;
+        }
+
+        public Builder fn(String fn) {
+            this.fn = fn;
+            return this;
+        }
+
+        public FnNode build() {
+            return new FnNode(this);
+        }
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FnVisitor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FnVisitor.java
new file mode 100644
index 0000000..73a315e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/FnVisitor.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface FnVisitor<R> {
+    R visitPartition(PartitionFn fn);
+
+    R visitParseArn(ParseArn fn);
+
+    R visitIsValidHostLabel(IsValidHostLabel fn);
+
+    R visitBoolEquals(BooleanEqualsFn fn);
+
+    R visitStringEquals(StringEqualsFn fn);
+
+    R visitIsSet(IsSet fn);
+
+    R visitNot(Not not);
+
+    R visitGetAttr(GetAttr getAttr);
+
+    R visitParseUrl(ParseUrl parseUrl);
+
+    R visitSubstring(Substring substring);
+
+    R visitUriEncode(UriEncodeFn fn);
+
+    R visitIsVirtualHostLabelsS3Bucket(IsVirtualHostableS3Bucket fn);
+}
\ No newline at end of file
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/GetAttr.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/GetAttr.java
new file mode 100644
index 0000000..070ead9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/GetAttr.java
@@ -0,0 +1,246 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class GetAttr extends Fn {
+    public static final String ID = "getAttr";
+
+    public GetAttr(FnNode node) {
+        super(node);
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        Value root = target().eval(scope);
+        List<Part> path;
+        try {
+            path = path();
+        } catch (InnerParseError e) {
+            throw new RuntimeException(e);
+        }
+        for (Part part : path) {
+            root = part.eval(root);
+        }
+        return root;
+    }
+
+    public interface Part {
+
+        Value eval(Value container);
+
+        final class Key implements Part {
+            private final Identifier key;
+
+            public Key(Identifier key) {
+                this.key = key;
+            }
+
+            @Override
+            public String toString() {
+                return key.asString();
+            }
+
+            public static Key of(String key) {
+                return new Key(Identifier.of(key));
+            }
+
+            @Override
+            public Value eval(Value container) {
+                return container.expectRecord().get(key);
+            }
+
+            public Identifier key() {
+                return key;
+            }
+
+            @Override
+            public boolean equals(Object obj) {
+                if (obj == this) {
+                    return true;
+                }
+                if (obj == null || obj.getClass() != this.getClass()) {
+                    return false;
+                }
+                Key that = (Key) obj;
+                return Objects.equals(this.key, that.key);
+            }
+
+            @Override
+            public int hashCode() {
+                return key != null ? key.hashCode() : 0;
+            }
+        }
+
+        final class Index implements Part {
+            private final int index;
+
+            public Index(int index) {
+                this.index = index;
+            }
+
+            @Override
+            public Value eval(Value container) {
+                return container.expectArray().get(index);
+            }
+
+            @Override
+            public String toString() {
+                return String.format("[%s]", index);
+            }
+
+            public int index() {
+                return index;
+            }
+
+            @Override
+            public boolean equals(Object obj) {
+                if (obj == this) {
+                    return true;
+                }
+                if (obj == null || obj.getClass() != this.getClass()) {
+                    return false;
+                }
+                Index that = (Index) obj;
+                return this.index == that.index;
+            }
+
+            @Override
+            public int hashCode() {
+                return index;
+            }
+        }
+    }
+
+    private static GetAttr fromBuilder(Builder builder) {
+        return new GetAttr(FnNode.builder().fn("getAttr")
+                .argv(Arrays.asList(builder.target, Literal.fromStr(String.join(".", builder.path)))).build());
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public Expr target() {
+        return expectTwoArgs().left();
+    }
+
+    public List<Part> path() throws InnerParseError {
+        Expr right = expectTwoArgs().right();
+        if (right instanceof Literal) {
+            Literal path = (Literal) right;
+            return parse(path.expectLiteralString());
+        } else {
+            throw SourceException.builder().message("second argument must be a string literal").build();
+        }
+    }
+
+    private static List<Part> parse(String path) throws InnerParseError {
+        String[] components = path.split("\\.");
+        List<Part> result = new ArrayList<>();
+        for (String component : components) {
+            if (component.contains("[")) {
+                int slicePartIndex = component.indexOf("[");
+                String slicePart = component.substring(slicePartIndex);
+                if (!slicePart.endsWith("]")) {
+                    throw new InnerParseError("Invalid path component: %s. Must end with `]`");
+                }
+                try {
+                    String number = slicePart.substring(1, slicePart.length() - 1);
+                    int slice = Integer.parseInt(number);
+                    if (slice < 0) {
+                        throw new InnerParseError("Invalid path component: slice index must be >= 0");
+                    }
+                    result.add(Part.Key.of(component.substring(0, slicePartIndex)));
+                    result.add(new Part.Index(slice));
+                } catch (NumberFormatException ex) {
+                    throw new InnerParseError(String.format("%s could not be parsed as a number", slicePart));
+                }
+            } else {
+                result.add(Part.Key.of(component));
+            }
+        }
+        if (result.isEmpty()) {
+            throw new InnerParseError("Invalid argument to GetAttr: path may not be empty");
+        }
+        return result;
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitGetAttr(this);
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder out = new StringBuilder();
+        out.append(target());
+        try {
+            for (Part part : path()) {
+                out.append(".");
+                out.append(part);
+            }
+        } catch (InnerParseError e) {
+            throw new RuntimeException(e);
+        }
+        return out.toString();
+    }
+
+    @Override
+    public String template() {
+        String target = ((Ref) this.target()).getName().asString();
+        StringBuilder pathPart = new StringBuilder();
+
+        List<Part> partList;
+        try {
+            partList = path();
+        } catch (InnerParseError e) {
+            throw new RuntimeException(e);
+        }
+        for (int i = 0; i < partList.size(); i++) {
+            if (i != 0) {
+                if (partList.get(i) instanceof Part.Key) {
+                    pathPart.append(".");
+                }
+            }
+            pathPart.append(partList.get(i).toString());
+        }
+        return "{" + target + "#" + pathPart + "}";
+    }
+
+    public static class Builder {
+        Expr target;
+        String path;
+
+        public Builder target(Expr target) {
+            this.target = target;
+            return this;
+        }
+
+        public Builder path(String path) {
+            this.path = path;
+            return this;
+        }
+
+        public GetAttr build() {
+            return GetAttr.fromBuilder(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Identifier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Identifier.java
new file mode 100644
index 0000000..5a0a94e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Identifier.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * Identifiers for variables declared within the rule engine, e.g. from an {@code assign} statement.
+ */
+@SdkInternalApi
+public final class Identifier {
+    private String name;
+
+    public Identifier(String name) {
+        this.name = name;
+    }
+
+    public static Identifier fromString(String name) {
+        return new Identifier(name);
+    }
+
+    public static Identifier of(String name) {
+        return new Identifier(name);
+    }
+
+    public String asString() {
+        return name;
+    }
+
+    public String toString() {
+        return name;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Identifier that = (Identifier) o;
+
+        return name != null ? name.equals(that.name) : that.name == null;
+    }
+
+    @Override
+    public int hashCode() {
+        return name != null ? name.hashCode() : 0;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/InnerParseError.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/InnerParseError.java
new file mode 100644
index 0000000..8d8672a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/InnerParseError.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class InnerParseError extends RuntimeException {
+    private static final long serialVersionUID = -7808901449079805477L;
+
+    public InnerParseError(String message) {
+        super(message);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Into.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Into.java
new file mode 100644
index 0000000..985631a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Into.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface Into<T> {
+    T into();
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IntoSelf.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IntoSelf.java
new file mode 100644
index 0000000..514aeea
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IntoSelf.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface IntoSelf<T extends IntoSelf<T>> extends Into<T> {
+    @Override
+    default T into() {
+        return (T) this;
+    }
+}
\ No newline at end of file
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsSet.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsSet.java
new file mode 100644
index 0000000..1306238
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsSet.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class IsSet extends SingleArgFn {
+    public static final String ID = "isSet";
+
+    public IsSet(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitIsSet(this);
+    }
+
+    public static IsSet ofExpr(Expr expr) {
+        return new IsSet(FnNode.ofExprs(ID, expr));
+    }
+
+    @Override
+    protected Value evalArg(Value arg) {
+        return Value.fromBool(!arg.isNone());
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsValidHostLabel.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsValidHostLabel.java
new file mode 100644
index 0000000..08514f3
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsValidHostLabel.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class IsValidHostLabel extends VarargFn {
+    public static final String ID = "isValidHostLabel";
+
+    public IsValidHostLabel(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitIsValidHostLabel(this);
+    }
+
+    public static IsValidHostLabel ofExprs(Expr expr, boolean allowDots) {
+        return new IsValidHostLabel(FnNode.ofExprs(ID, expr, Expr.of(allowDots)));
+    }
+
+    public Expr hostLabel() {
+        return expectTwoArgs().left();
+    }
+
+    public Expr allowDots() {
+        return expectTwoArgs().right();
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        String hostLabel = expectTwoArgs().left().eval(scope).expectString();
+        // TODO: use compiled Pattern
+        if (allowDots(scope)) {
+            return Value.fromBool(hostLabel.matches("[a-zA-Z\\d][a-zA-Z\\d\\-.]{0,62}"));
+        } else {
+            return Value.fromBool(hostLabel.matches("[a-zA-Z\\d][a-zA-Z\\d\\-]{0,62}"));
+        }
+    }
+
+    private boolean allowDots(Scope<Value> scope) {
+        return allowDots().eval(scope).expectBool();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsVirtualHostableS3Bucket.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsVirtualHostableS3Bucket.java
new file mode 100644
index 0000000..4382850
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/IsVirtualHostableS3Bucket.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class IsVirtualHostableS3Bucket extends VarargFn {
+    public static final String ID = "aws.isVirtualHostableS3Bucket";
+
+    public IsVirtualHostableS3Bucket(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitIsVirtualHostLabelsS3Bucket(this);
+    }
+
+    public static IsVirtualHostableS3Bucket ofExprs(Expr expr, boolean allowDots) {
+        return new IsVirtualHostableS3Bucket(FnNode.ofExprs(ID, expr, Expr.of(allowDots)));
+    }
+
+    public Expr hostLabel() {
+        return expectTwoArgs().left();
+    }
+
+    public Expr allowDots() {
+        return expectTwoArgs().right();
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        String hostLabel = expectTwoArgs().left().eval(scope).expectString();
+        if (allowDots(scope)) {
+            // TODO: use compiled Pattern
+            return Value.fromBool(hostLabel.matches("[a-z\\d][a-z\\d\\-.]{1,61}[a-z\\d]")
+                    && !hostLabel.matches("(\\d+\\.){3}\\d+") // don't allow ip address
+                    && !hostLabel.matches(".*[.-]{2}.*") // don't allow names like bucket-.name or bucket.-name
+            );
+        } else {
+            return Value.fromBool(hostLabel.matches("[a-z\\d][a-z\\d\\-]{1,61}[a-z\\d]"));
+        }
+    }
+
+    private boolean allowDots(Scope<Value> scope) {
+        return allowDots().eval(scope).expectBool();
+    }
+}
\ No newline at end of file
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/KmsRequestSetEndpointInterceptor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/KmsRequestSetEndpointInterceptor.java
new file mode 100644
index 0000000..eebc818
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/KmsRequestSetEndpointInterceptor.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.interceptor.Context;
+import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
+import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
+import software.amazon.awssdk.core.interceptor.SdkExecutionAttribute;
+import software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute;
+import software.amazon.awssdk.endpoints.Endpoint;
+import software.amazon.awssdk.http.SdkHttpRequest;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class KmsRequestSetEndpointInterceptor implements ExecutionInterceptor {
+    @Override
+    public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) {
+        if (AwsEndpointProviderUtils.endpointIsDiscovered(executionAttributes)) {
+            return context.httpRequest();
+        }
+        Endpoint endpoint = (Endpoint) executionAttributes.getAttribute(SdkInternalExecutionAttribute.RESOLVED_ENDPOINT);
+        return AwsEndpointProviderUtils.setUri(context.httpRequest(),
+                executionAttributes.getAttribute(SdkExecutionAttribute.CLIENT_ENDPOINT), endpoint.url());
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/KmsResolveEndpointInterceptor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/KmsResolveEndpointInterceptor.java
new file mode 100644
index 0000000..eca4470
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/KmsResolveEndpointInterceptor.java
@@ -0,0 +1,164 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.time.Duration;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.CompletionException;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.AwsExecutionAttribute;
+import software.amazon.awssdk.awscore.endpoints.AwsEndpointAttribute;
+import software.amazon.awssdk.awscore.endpoints.authscheme.EndpointAuthScheme;
+import software.amazon.awssdk.awscore.endpoints.authscheme.SigV4AuthScheme;
+import software.amazon.awssdk.awscore.endpoints.authscheme.SigV4aAuthScheme;
+import software.amazon.awssdk.core.SdkRequest;
+import software.amazon.awssdk.core.SelectedAuthScheme;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.interceptor.Context;
+import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
+import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
+import software.amazon.awssdk.core.interceptor.SdkExecutionAttribute;
+import software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute;
+import software.amazon.awssdk.core.metrics.CoreMetric;
+import software.amazon.awssdk.endpoints.Endpoint;
+import software.amazon.awssdk.http.SdkHttpRequest;
+import software.amazon.awssdk.http.auth.aws.signer.AwsV4HttpSigner;
+import software.amazon.awssdk.http.auth.aws.signer.AwsV4aHttpSigner;
+import software.amazon.awssdk.http.auth.aws.signer.RegionSet;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthSchemeOption;
+import software.amazon.awssdk.identity.spi.Identity;
+import software.amazon.awssdk.metrics.MetricCollector;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointParams;
+import software.amazon.awssdk.services.kms.endpoints.KmsEndpointProvider;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public final class KmsResolveEndpointInterceptor implements ExecutionInterceptor {
+    @Override
+    public SdkRequest modifyRequest(Context.ModifyRequest context, ExecutionAttributes executionAttributes) {
+        SdkRequest result = context.request();
+        if (AwsEndpointProviderUtils.endpointIsDiscovered(executionAttributes)) {
+            return result;
+        }
+        KmsEndpointProvider provider = (KmsEndpointProvider) executionAttributes
+                .getAttribute(SdkInternalExecutionAttribute.ENDPOINT_PROVIDER);
+        try {
+            long resolveEndpointStart = System.nanoTime();
+            Endpoint endpoint = provider.resolveEndpoint(ruleParams(result, executionAttributes)).join();
+            Duration resolveEndpointDuration = Duration.ofNanos(System.nanoTime() - resolveEndpointStart);
+            Optional<MetricCollector> metricCollector = executionAttributes
+                    .getOptionalAttribute(SdkExecutionAttribute.API_CALL_METRIC_COLLECTOR);
+            metricCollector.ifPresent(mc -> mc.reportMetric(CoreMetric.ENDPOINT_RESOLVE_DURATION, resolveEndpointDuration));
+            if (!AwsEndpointProviderUtils.disableHostPrefixInjection(executionAttributes)) {
+                Optional<String> hostPrefix = hostPrefix(executionAttributes.getAttribute(SdkExecutionAttribute.OPERATION_NAME),
+                        result);
+                if (hostPrefix.isPresent()) {
+                    endpoint = AwsEndpointProviderUtils.addHostPrefix(endpoint, hostPrefix.get());
+                }
+            }
+            List<EndpointAuthScheme> endpointAuthSchemes = endpoint.attribute(AwsEndpointAttribute.AUTH_SCHEMES);
+            SelectedAuthScheme<?> selectedAuthScheme = executionAttributes
+                    .getAttribute(SdkInternalExecutionAttribute.SELECTED_AUTH_SCHEME);
+            if (endpointAuthSchemes != null && selectedAuthScheme != null) {
+                selectedAuthScheme = authSchemeWithEndpointSignerProperties(endpointAuthSchemes, selectedAuthScheme);
+                executionAttributes.putAttribute(SdkInternalExecutionAttribute.SELECTED_AUTH_SCHEME, selectedAuthScheme);
+            }
+            executionAttributes.putAttribute(SdkInternalExecutionAttribute.RESOLVED_ENDPOINT, endpoint);
+            return result;
+        } catch (CompletionException e) {
+            Throwable cause = e.getCause();
+            if (cause instanceof SdkClientException) {
+                throw (SdkClientException) cause;
+            } else {
+                throw SdkClientException.create("Endpoint resolution failed", cause);
+            }
+        }
+    }
+
+    @Override
+    public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) {
+        Endpoint resolvedEndpoint = executionAttributes.getAttribute(SdkInternalExecutionAttribute.RESOLVED_ENDPOINT);
+        if (resolvedEndpoint.headers().isEmpty()) {
+            return context.httpRequest();
+        }
+        SdkHttpRequest.Builder httpRequestBuilder = context.httpRequest().toBuilder();
+        resolvedEndpoint.headers().forEach((name, values) -> {
+            values.forEach(v -> httpRequestBuilder.appendHeader(name, v));
+        });
+        return httpRequestBuilder.build();
+    }
+
+    public static KmsEndpointParams ruleParams(SdkRequest request, ExecutionAttributes executionAttributes) {
+        KmsEndpointParams.Builder builder = KmsEndpointParams.builder();
+        builder.region(AwsEndpointProviderUtils.regionBuiltIn(executionAttributes));
+        builder.useDualStack(AwsEndpointProviderUtils.dualStackEnabledBuiltIn(executionAttributes));
+        builder.useFips(AwsEndpointProviderUtils.fipsEnabledBuiltIn(executionAttributes));
+        builder.endpoint(AwsEndpointProviderUtils.endpointBuiltIn(executionAttributes));
+        setContextParams(builder, executionAttributes.getAttribute(AwsExecutionAttribute.OPERATION_NAME), request);
+        setStaticContextParams(builder, executionAttributes.getAttribute(AwsExecutionAttribute.OPERATION_NAME));
+        return builder.build();
+    }
+
+    private static void setContextParams(KmsEndpointParams.Builder params, String operationName, SdkRequest request) {
+    }
+
+    private static void setStaticContextParams(KmsEndpointParams.Builder params, String operationName) {
+    }
+
+    private <T extends Identity> SelectedAuthScheme<T> authSchemeWithEndpointSignerProperties(
+            List<EndpointAuthScheme> endpointAuthSchemes, SelectedAuthScheme<T> selectedAuthScheme) {
+        for (EndpointAuthScheme endpointAuthScheme : endpointAuthSchemes) {
+            if (!endpointAuthScheme.schemeId().equals(selectedAuthScheme.authSchemeOption().schemeId())) {
+                continue;
+            }
+            AuthSchemeOption.Builder option = selectedAuthScheme.authSchemeOption().toBuilder();
+            if (endpointAuthScheme instanceof SigV4AuthScheme) {
+                SigV4AuthScheme v4AuthScheme = (SigV4AuthScheme) endpointAuthScheme;
+                if (v4AuthScheme.isDisableDoubleEncodingSet()) {
+                    option.putSignerProperty(AwsV4HttpSigner.DOUBLE_URL_ENCODE, !v4AuthScheme.disableDoubleEncoding());
+                }
+                if (v4AuthScheme.signingRegion() != null) {
+                    option.putSignerProperty(AwsV4HttpSigner.REGION_NAME, v4AuthScheme.signingRegion());
+                }
+                if (v4AuthScheme.signingName() != null) {
+                    option.putSignerProperty(AwsV4HttpSigner.SERVICE_SIGNING_NAME, v4AuthScheme.signingName());
+                }
+                return new SelectedAuthScheme<>(selectedAuthScheme.identity(), selectedAuthScheme.signer(), option.build());
+            }
+            if (endpointAuthScheme instanceof SigV4aAuthScheme) {
+                SigV4aAuthScheme v4aAuthScheme = (SigV4aAuthScheme) endpointAuthScheme;
+                if (v4aAuthScheme.isDisableDoubleEncodingSet()) {
+                    option.putSignerProperty(AwsV4aHttpSigner.DOUBLE_URL_ENCODE, !v4aAuthScheme.disableDoubleEncoding());
+                }
+                if (v4aAuthScheme.signingRegionSet() != null) {
+                    RegionSet regionSet = RegionSet.create(v4aAuthScheme.signingRegionSet());
+                    option.putSignerProperty(AwsV4aHttpSigner.REGION_SET, regionSet);
+                }
+                if (v4aAuthScheme.signingName() != null) {
+                    option.putSignerProperty(AwsV4aHttpSigner.SERVICE_SIGNING_NAME, v4aAuthScheme.signingName());
+                }
+                return new SelectedAuthScheme<>(selectedAuthScheme.identity(), selectedAuthScheme.signer(), option.build());
+            }
+            throw new IllegalArgumentException("Endpoint auth scheme '" + endpointAuthScheme.name()
+                    + "' cannot be mapped to the SDK auth scheme. Was it declared in the service's model?");
+        }
+        return selectedAuthScheme;
+    }
+
+    private static Optional<String> hostPrefix(String operationName, SdkRequest request) {
+        return Optional.empty();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Literal.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Literal.java
new file mode 100644
index 0000000..cfe2574
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Literal.java
@@ -0,0 +1,381 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public class Literal extends Expr {
+    public interface Visitor<T> {
+
+        T visitBool(boolean b);
+
+        T visitStr(Template value);
+
+        T visitObject(Map<Identifier, Literal> members);
+
+        T visitTuple(List<Literal> members);
+
+        T visitInt(int value);
+    }
+
+    private final Lit source;
+
+    private Literal(Lit source) {
+        this.source = source;
+    }
+
+    public <T> T accept(Visitor<T> visitor) {
+        return this.source.accept(visitor);
+    }
+
+    public String expectLiteralString() {
+        if (source instanceof Str) {
+            Str s = (Str) source;
+
+            return s.value.expectLiteral();
+        } else {
+            throw RuleError.builder()
+                    .cause(SourceException.builder().message("Expected a literal string, got " + source).build()).build();
+        }
+    }
+
+    @Override
+    public <R> R accept(ExprVisitor<R> visitor) {
+        return visitor.visitLiteral(this);
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        return source.accept(new Visitor<Value>() {
+            @Override
+            public Value visitInt(int value) {
+                return Value.fromInteger(value);
+            }
+
+            @Override
+            public Value visitBool(boolean b) {
+                return Value.fromBool(b);
+            }
+
+            @Override
+            public Value visitStr(Template value) {
+                return value.eval(scope);
+            }
+
+            @Override
+            public Value visitObject(Map<Identifier, Literal> members) {
+                Map<Identifier, Value> tpe = new HashMap<>();
+                members.forEach((k, v) -> {
+                    tpe.put(k, v.eval(scope));
+                });
+                return Value.fromRecord(tpe);
+            }
+
+            @Override
+            public Value visitTuple(List<Literal> members) {
+                List<Value> tuples = new ArrayList<>();
+                for (Literal el : ((Tuple) source).members) {
+                    tuples.add(el.eval(scope));
+                }
+                return Value.fromArray(tuples);
+            }
+        });
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        if (!super.equals(o)) {
+            return false;
+        }
+
+        Literal literal = (Literal) o;
+
+        return source != null ? source.equals(literal.source) : literal.source == null;
+    }
+
+    @Override
+    public int hashCode() {
+        return source != null ? source.hashCode() : 0;
+    }
+
+    public String toString() {
+        return source.toString();
+    }
+
+    public static Literal fromNode(JsonNode node) {
+        Lit lit;
+        if (node.isArray()) {
+            List<Literal> array = node.asArray().stream().map(Literal::fromNode).collect(Collectors.toList());
+            lit = new Tuple(array);
+        } else if (node.isBoolean()) {
+            lit = new Bool(node.asBoolean());
+        } else if (node.isNull()) {
+            throw SdkClientException.create("null node not supported");
+        } else if (node.isNumber()) {
+            lit = new Int(Integer.parseInt(node.asNumber()));
+        } else if (node.isObject()) {
+            Map<Identifier, Literal> obj = new HashMap<>();
+            node.asObject().forEach((k, v) -> obj.put(Identifier.of(k), fromNode(v)));
+            lit = new Obj(obj);
+        } else if (node.isString()) {
+            lit = new Str(new Template(node.asString()));
+        } else {
+            throw SdkClientException.create("Unable to create literal from " + node);
+        }
+        return new Literal(lit);
+    }
+
+    public static Literal fromTuple(List<Literal> authSchemes) {
+        return new Literal(new Tuple(authSchemes));
+    }
+
+    public static Literal fromRecord(Map<Identifier, Literal> record) {
+        return new Literal(new Obj(record));
+    }
+
+    public static Literal fromStr(Template value) {
+        return new Literal(new Str(value));
+    }
+
+    public static Literal fromStr(String s) {
+        return fromStr(new Template(s));
+    }
+
+    public static Literal fromInteger(int value) {
+        return new Literal(new Int(value));
+    }
+
+    public static Literal fromBool(boolean value) {
+        return new Literal(new Bool(value));
+    }
+
+    private interface Lit {
+        <T> T accept(Visitor<T> visitor);
+    }
+
+    static final class Int implements Lit {
+        private final Integer value;
+
+        Int(Integer value) {
+            this.value = value;
+        }
+
+        @Override
+        public <T> T accept(Visitor<T> visitor) {
+            return visitor.visitInt(value);
+        }
+
+        @Override
+        public String toString() {
+            return Integer.toString(value);
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Int anInt = (Int) o;
+
+            return value != null ? value.equals(anInt.value) : anInt.value == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return value != null ? value.hashCode() : 0;
+        }
+    }
+
+    static final class Tuple implements Lit {
+        private final List<Literal> members;
+
+        Tuple(List<Literal> members) {
+            this.members = members;
+        }
+
+        @Override
+        public <T> T accept(Visitor<T> visitor) {
+            return visitor.visitTuple(members);
+        }
+
+        @Override
+        public String toString() {
+            return members.stream().map(Literal::toString).collect(Collectors.joining(", ", "[", "]"));
+        }
+
+        public List<Literal> members() {
+            return members;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Tuple tuple = (Tuple) o;
+
+            return members != null ? members.equals(tuple.members) : tuple.members == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return members != null ? members.hashCode() : 0;
+        }
+    }
+
+    static final class Obj implements Lit {
+        private final Map<Identifier, Literal> members;
+
+        Obj(Map<Identifier, Literal> members) {
+            this.members = members;
+        }
+
+        @Override
+        public <T> T accept(Visitor<T> visitor) {
+            return visitor.visitObject(members);
+        }
+
+        @Override
+        public String toString() {
+            return members.toString();
+        }
+
+        public Map<Identifier, Literal> members() {
+            return members;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Obj obj = (Obj) o;
+
+            return members != null ? members.equals(obj.members) : obj.members == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return members != null ? members.hashCode() : 0;
+        }
+    }
+
+    static final class Bool implements Lit {
+        private final boolean value;
+
+        Bool(boolean value) {
+            this.value = value;
+        }
+
+        @Override
+        public <T> T accept(Visitor<T> visitor) {
+            return visitor.visitBool(value);
+        }
+
+        @Override
+        public String toString() {
+            return Boolean.toString(value);
+        }
+
+        public Boolean value() {
+            return value;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Bool bool = (Bool) o;
+
+            return value == bool.value;
+        }
+
+        @Override
+        public int hashCode() {
+            return value ? 1 : 0;
+        }
+    }
+
+    static final class Str implements Lit {
+        private final Template value;
+
+        Str(Template value) {
+            this.value = value;
+        }
+
+        @Override
+        public <T> T accept(Visitor<T> visitor) {
+            return visitor.visitStr(value);
+        }
+
+        @Override
+        public String toString() {
+            return value.toString();
+        }
+
+        public Template value() {
+            return value;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Str str = (Str) o;
+
+            return value != null ? value.equals(str.value) : str.value == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return value != null ? value.hashCode() : 0;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Not.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Not.java
new file mode 100644
index 0000000..1dd297c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Not.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class Not extends SingleArgFn {
+
+    public static final String ID = "not";
+
+    public Not(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    public static Not ofExpr(Expr expr) {
+        return new Not(FnNode.ofExprs(ID, expr));
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitNot(this);
+    }
+
+    public static Not ofExprs(Expr expr) {
+        return new Not(FnNode.ofExprs(ID, expr));
+    }
+
+    @Override
+    protected Value evalArg(Value arg) {
+        return Value.fromBool(!arg.expectBool());
+    }
+
+    public Expr target() {
+        return expectOneArg();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Outputs.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Outputs.java
new file mode 100644
index 0000000..5a71b98
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Outputs.java
@@ -0,0 +1,156 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public class Outputs {
+    private static final String DNS_SUFFIX = "dnsSuffix";
+    private static final String DUAL_STACK_DNS_SUFFIX = "dualStackDnsSuffix";
+    private static final String SUPPORTS_FIPS = "supportsFIPS";
+    private static final String SUPPORTS_DUAL_STACK = "supportsDualStack";
+
+    private final String dnsSuffix;
+    private final String dualStackDnsSuffix;
+    private final boolean supportsFips;
+    private final boolean supportsDualStack;
+
+    private Outputs(Builder builder) {
+        this.dnsSuffix = builder.dnsSuffix;
+        this.dualStackDnsSuffix = builder.dualStackDnsSuffix;
+        this.supportsFips = builder.supportsFips;
+        this.supportsDualStack = builder.supportsDualStack;
+    }
+
+    public String dnsSuffix() {
+        return dnsSuffix;
+    }
+
+    public String dualStackDnsSuffix() {
+        return dualStackDnsSuffix;
+    }
+
+    public boolean supportsFips() {
+        return supportsFips;
+    }
+
+    public boolean supportsDualStack() {
+        return supportsDualStack;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Outputs outputs = (Outputs) o;
+
+        if (supportsFips != outputs.supportsFips) {
+            return false;
+        }
+        if (supportsDualStack != outputs.supportsDualStack) {
+            return false;
+        }
+        if (dnsSuffix != null ? !dnsSuffix.equals(outputs.dnsSuffix) : outputs.dnsSuffix != null) {
+            return false;
+        }
+        return dualStackDnsSuffix != null ? dualStackDnsSuffix.equals(outputs.dualStackDnsSuffix)
+                : outputs.dualStackDnsSuffix == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = dnsSuffix != null ? dnsSuffix.hashCode() : 0;
+        result = 31 * result + (dualStackDnsSuffix != null ? dualStackDnsSuffix.hashCode() : 0);
+        result = 31 * result + (supportsFips ? 1 : 0);
+        result = 31 * result + (supportsDualStack ? 1 : 0);
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        return "Outputs{" + "dnsSuffix='" + dnsSuffix + '\'' + ", dualStackDnsSuffix='" + dualStackDnsSuffix + '\''
+                + ", supportsFips=" + supportsFips + ", supportsDualStack=" + supportsDualStack + '}';
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static Outputs fromNode(JsonNode node) {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        Builder b = builder();
+
+        JsonNode dnsSuffix = objNode.get(DNS_SUFFIX);
+        if (dnsSuffix != null) {
+            b.dnsSuffix(dnsSuffix.asString());
+        }
+
+        JsonNode dualStackDnsSuffix = objNode.get(DUAL_STACK_DNS_SUFFIX);
+        if (dualStackDnsSuffix != null) {
+            b.dualStackDnsSuffix(dualStackDnsSuffix.asString());
+        }
+
+        JsonNode supportsFips = objNode.get(SUPPORTS_FIPS);
+        if (supportsFips != null) {
+            b.supportsFips(supportsFips.asBoolean());
+        }
+
+        JsonNode supportsDualStack = objNode.get(SUPPORTS_DUAL_STACK);
+        if (supportsDualStack != null) {
+            b.supportsDualStack(supportsDualStack.asBoolean());
+        }
+
+        return b.build();
+    }
+
+    public static class Builder {
+        private String dnsSuffix;
+        private String dualStackDnsSuffix;
+        private boolean supportsFips;
+        private boolean supportsDualStack;
+
+        public Builder dnsSuffix(String dnsSuffix) {
+            this.dnsSuffix = dnsSuffix;
+            return this;
+        }
+
+        public Builder dualStackDnsSuffix(String dualStackDnsSuffix) {
+            this.dualStackDnsSuffix = dualStackDnsSuffix;
+            return this;
+        }
+
+        public Builder supportsFips(boolean supportsFips) {
+            this.supportsFips = supportsFips;
+            return this;
+        }
+
+        public Builder supportsDualStack(boolean supportsDualStack) {
+            this.supportsDualStack = supportsDualStack;
+            return this;
+        }
+
+        public Outputs build() {
+            return new Outputs(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Parameter.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Parameter.java
new file mode 100644
index 0000000..6e97128
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Parameter.java
@@ -0,0 +1,356 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Map;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public final class Parameter implements ToParameterReference {
+    public static final String TYPE = "type";
+    public static final String DEPRECATED = "deprecated";
+    public static final String DOCUMENTATION = "documentation";
+    public static final String DEFAULT = "default";
+    private static final String BUILT_IN = "builtIn";
+    private static final String REQUIRED = "required";
+
+    private final ParameterType type;
+    private final Identifier name;
+    private final Value value;
+    private final String builtIn;
+    private final Value defaultValue;
+    private final Deprecated deprecated;
+    private final String documentation;
+    private final boolean required;
+
+    public Parameter(Builder builder) {
+        if (builder.defaultValue != null && builder.builtIn == null) {
+            throw new RuntimeException("Cannot set a default value for non-builtin parameters");
+        }
+        if (builder.defaultValue != null && !builder.required) {
+            throw new RuntimeException("When a default value is set, the field must also be marked as required");
+        }
+        this.type = builder.type;
+        this.name = builder.name;
+        this.builtIn = builder.builtIn;
+        this.value = builder.value;
+        this.required = builder.required;
+        this.deprecated = builder.deprecated;
+        this.documentation = builder.documentation;
+        this.defaultValue = builder.defaultValue;
+    }
+
+    public Optional<String> getBuiltIn() {
+        return Optional.ofNullable(builtIn);
+    }
+
+    public Optional<Value> getDefaultValue() {
+        return Optional.ofNullable(defaultValue);
+    }
+
+    public boolean isRequired() {
+        return required;
+    }
+
+    public Optional<Deprecated> getDeprecated() {
+        return Optional.ofNullable(deprecated);
+    }
+
+    public static Parameter fromNode(String name, JsonNode node) throws RuleError {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        Builder b = builder();
+        b.name(name);
+        b.type(ParameterType.fromNode(objNode.get(TYPE)));
+
+        JsonNode builtIn = objNode.get(BUILT_IN);
+        if (builtIn != null) {
+            b.builtIn(builtIn.asString());
+        }
+
+        JsonNode documentation = objNode.get(DOCUMENTATION);
+        if (documentation != null) {
+            b.documentation(documentation.asString());
+        }
+
+        JsonNode defaultNode = objNode.get(DEFAULT);
+        if (defaultNode != null) {
+            b.defaultValue(Value.fromNode(defaultNode));
+        }
+
+        JsonNode required = objNode.get(REQUIRED);
+        if (required != null) {
+            b.required(required.asBoolean());
+        } else {
+            b.required(false);
+        }
+
+        JsonNode deprecated = objNode.get(DEPRECATED);
+        if (deprecated != null) {
+            b.deprecated(Deprecated.fromNode(deprecated));
+        }
+
+        return b.build();
+    }
+
+    public ParameterType getType() {
+        return type;
+    }
+
+    public Identifier getName() {
+        return name;
+    }
+
+    public boolean isBuiltIn() {
+        return builtIn != null;
+    }
+
+    public Optional<Value> getValue() {
+        return Optional.ofNullable(value);
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(name).append(": ").append(type);
+        if (builtIn != null) {
+            sb.append("; builtIn(").append(builtIn).append(")");
+        }
+        if (required) {
+            sb.append("; required");
+        }
+        getDeprecated().ifPresent(dep -> sb.append("; ").append(deprecated).append("!"));
+        return sb.toString();
+    }
+
+    @Override
+    public ParameterReference toParameterReference() {
+        return ParameterReference.builder().name(getName().asString()).build();
+    }
+
+    public String template() {
+        return "{" + name + "}";
+    }
+
+    public Expr expr() {
+        return Expr.ref(this.name);
+    }
+
+    public BooleanEqualsFn eq(boolean b) {
+        return BooleanEqualsFn.fromParam(this, Expr.of(b));
+    }
+
+    public BooleanEqualsFn eq(Expr e) {
+        return BooleanEqualsFn.fromParam(this, e);
+    }
+
+    public Optional<String> getDocumentation() {
+        return Optional.ofNullable(documentation);
+    }
+
+    /**
+     * The default value for this Parameter
+     * 
+     * @return The value. This value must match the type of this parameter.
+     */
+    public Optional<Value> getDefault() {
+        return Optional.ofNullable(this.defaultValue);
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Parameter parameter = (Parameter) o;
+
+        if (required != parameter.required) {
+            return false;
+        }
+        if (type != parameter.type) {
+            return false;
+        }
+        if (name != null ? !name.equals(parameter.name) : parameter.name != null) {
+            return false;
+        }
+        if (value != null ? !value.equals(parameter.value) : parameter.value != null) {
+            return false;
+        }
+        if (builtIn != null ? !builtIn.equals(parameter.builtIn) : parameter.builtIn != null) {
+            return false;
+        }
+        if (defaultValue != null ? !defaultValue.equals(parameter.defaultValue) : parameter.defaultValue != null) {
+            return false;
+        }
+        if (deprecated != null ? !deprecated.equals(parameter.deprecated) : parameter.deprecated != null) {
+            return false;
+        }
+        return documentation != null ? documentation.equals(parameter.documentation) : parameter.documentation == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = type != null ? type.hashCode() : 0;
+        result = 31 * result + (name != null ? name.hashCode() : 0);
+        result = 31 * result + (value != null ? value.hashCode() : 0);
+        result = 31 * result + (builtIn != null ? builtIn.hashCode() : 0);
+        result = 31 * result + (defaultValue != null ? defaultValue.hashCode() : 0);
+        result = 31 * result + (required ? 1 : 0);
+        result = 31 * result + (deprecated != null ? deprecated.hashCode() : 0);
+        result = 31 * result + (documentation != null ? documentation.hashCode() : 0);
+        return result;
+    }
+
+    public static final class Deprecated {
+        private static final String MESSAGE = "message";
+        private static final String SINCE = "since";
+        private final String message;
+        private final String since;
+
+        public Deprecated(String message, String since) {
+            this.message = message;
+            this.since = since;
+        }
+
+        public static Deprecated fromNode(JsonNode node) {
+            Map<String, JsonNode> objNode = node.asObject();
+
+            String message = null;
+            String since = null;
+
+            JsonNode messageNode = objNode.get(MESSAGE);
+            if (messageNode != null) {
+                message = messageNode.asString();
+            }
+
+            JsonNode sinceNode = objNode.get(SINCE);
+            if (sinceNode != null) {
+                since = sinceNode.asString();
+            }
+
+            return new Deprecated(message, since);
+        }
+
+        public String message() {
+            return message;
+        }
+
+        public String since() {
+            return since;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Deprecated that = (Deprecated) o;
+
+            if (message != null ? !message.equals(that.message) : that.message != null) {
+                return false;
+            }
+            return since != null ? since.equals(that.since) : that.since == null;
+        }
+
+        @Override
+        public int hashCode() {
+            int result = message != null ? message.hashCode() : 0;
+            result = 31 * result + (since != null ? since.hashCode() : 0);
+            return result;
+        }
+
+        @Override
+        public String toString() {
+            return "Deprecated[" + "message=" + message + ", " + "since=" + since + ']';
+        }
+
+    }
+
+    public static final class Builder {
+        private ParameterType type;
+        private Identifier name;
+        private String builtIn;
+
+        private Deprecated deprecated;
+
+        private Value value;
+        private boolean required;
+        private String documentation;
+
+        private Value defaultValue;
+
+        public Builder type(ParameterType type) {
+            this.type = type;
+            return this;
+        }
+
+        public Builder deprecated(Deprecated deprecated) {
+            this.deprecated = deprecated;
+            return this;
+        }
+
+        public Builder name(String name) {
+            this.name = Identifier.of(name);
+            return this;
+        }
+
+        public Builder name(Identifier name) {
+            this.name = name;
+            return this;
+        }
+
+        public Builder builtIn(String builtIn) {
+            this.builtIn = builtIn;
+            return this;
+        }
+
+        public Builder value(Value value) {
+            this.value = value;
+            return this;
+        }
+
+        public Builder defaultValue(Value defaultValue) {
+            this.defaultValue = defaultValue;
+            return this;
+        }
+
+        public Parameter build() {
+            return new Parameter(this);
+        }
+
+        public Builder required(boolean required) {
+            this.required = required;
+            return this;
+        }
+
+        public Builder documentation(String s) {
+            this.documentation = s;
+            return this;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParameterReference.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParameterReference.java
new file mode 100644
index 0000000..44843ed
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParameterReference.java
@@ -0,0 +1,105 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Objects;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public final class ParameterReference implements ToParameterReference {
+    private final String name;
+    private final String context;
+
+    private ParameterReference(Builder builder) {
+        this.name = builder.name;
+        this.context = builder.context;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public Optional<String> getContext() {
+        return Optional.ofNullable(context);
+    }
+
+    public static ParameterReference from(String reference) {
+        String[] split = reference.split("\\.", 2);
+        return from(split[0], split.length == 2 ? split[1] : null);
+    }
+
+    public static ParameterReference from(String name, String context) {
+        Builder builder = builder().name(name);
+        if (context != null) {
+            builder.context(context);
+        }
+        return builder.build();
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Override
+    public ParameterReference toParameterReference() {
+        return this;
+    }
+
+    @Override
+    public String toString() {
+        if (context == null) {
+            return name;
+        }
+        return name + "." + context;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        ParameterReference that = (ParameterReference) o;
+        return getName().equals(that.getName()) && Objects.equals(getContext(), that.getContext());
+    }
+
+    @Override
+    public int hashCode() {
+        int result = name != null ? name.hashCode() : 0;
+        result = 31 * result + (context != null ? context.hashCode() : 0);
+        return result;
+    }
+
+    public static class Builder {
+        private String name;
+        private String context;
+
+        public Builder name(String name) {
+            this.name = name;
+            return this;
+        }
+
+        public Builder context(String context) {
+            this.context = context;
+            return this;
+        }
+
+        public ParameterReference build() {
+            return new ParameterReference(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParameterType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParameterType.java
new file mode 100644
index 0000000..c99e503
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParameterType.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Locale;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public enum ParameterType {
+    STRING("String"),
+    BOOLEAN("Boolean"), ;
+
+    private final String name;
+
+    ParameterType(String name) {
+        this.name = name;
+    }
+
+    @Override
+    public String toString() {
+        return name;
+    }
+
+    public static ParameterType fromNode(JsonNode node) {
+        return fromValue(node.asString());
+    }
+
+    public static ParameterType fromValue(String value) {
+        switch (value.toLowerCase(Locale.ENGLISH)) {
+        case "string":
+            return STRING;
+        case "boolean":
+            return BOOLEAN;
+        default:
+            throw SdkClientException.create("Unknown parameter type: " + value);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Parameters.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Parameters.java
new file mode 100644
index 0000000..f8a1442
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Parameters.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public class Parameters {
+    private final List<Parameter> parameters;
+
+    private Parameters(Builder b) {
+        this.parameters = b.parameters;
+    }
+
+    public List<Parameter> toList() {
+        return parameters;
+    }
+
+    public Optional<Parameter> get(Identifier name) {
+        return parameters.stream().filter((param) -> param.getName().equals(name)).findFirst();
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Parameters that = (Parameters) o;
+
+        return parameters != null ? parameters.equals(that.parameters) : that.parameters == null;
+    }
+
+    @Override
+    public int hashCode() {
+        return parameters != null ? parameters.hashCode() : 0;
+    }
+
+    @Override
+    public String toString() {
+        return "Parameters{" + "parameters=" + parameters + '}';
+    }
+
+    public static Parameters fromNode(JsonNode node) {
+        Map<String, JsonNode> paramsObj = node.asObject();
+
+        Builder b = builder();
+
+        paramsObj.forEach((name, obj) -> {
+            b.addParameter(Parameter.fromNode(name, obj));
+        });
+
+        return b.build();
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static class Builder {
+        private List<Parameter> parameters = new ArrayList<>();
+
+        public Builder addParameter(Parameter parameter) {
+            this.parameters.add(parameter);
+            return this;
+        }
+
+        public Parameters build() {
+            return new Parameters(this);
+        }
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParseArn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParseArn.java
new file mode 100644
index 0000000..2a26fa2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParseArn.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Optional;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.utils.MapUtils;
+
+@SdkInternalApi
+public class ParseArn extends SingleArgFn {
+    public static final String ID = "aws.parseArn";
+    public static final Identifier PARTITION = Identifier.of("partition");
+    public static final Identifier SERVICE = Identifier.of("service");
+    public static final Identifier REGION = Identifier.of("region");
+    public static final Identifier ACCOUNT_ID = Identifier.of("accountId");
+    private static final Identifier RESOURCE_ID = Identifier.of("resourceId");
+
+    public ParseArn(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitParseArn(this);
+    }
+
+    public static ParseArn ofExprs(Expr expr) {
+        return new ParseArn(FnNode.ofExprs(ID, expr));
+    }
+
+    @Override
+    protected Value evalArg(Value arg) {
+        String value = arg.expectString();
+        Optional<Arn> arnOpt = Arn.parse(value);
+        return arnOpt
+                .map(arn -> (Value) Value.fromRecord(MapUtils.of(PARTITION, Value.fromStr(arn.partition()), SERVICE,
+                        Value.fromStr(arn.service()), REGION, Value.fromStr(arn.region()), ACCOUNT_ID,
+                        Value.fromStr(arn.accountId()), RESOURCE_ID,
+                        Value.fromArray(arn.resource().stream().map(v -> (Value) Value.fromStr(v)).collect(Collectors.toList())))))
+                .orElse(new Value.None());
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParseUrl.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParseUrl.java
new file mode 100644
index 0000000..b9160a2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ParseUrl.java
@@ -0,0 +1,98 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Arrays;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.utils.MapUtils;
+import software.amazon.awssdk.utils.StringUtils;
+
+/**
+ * Function to parse a URI from a string.
+ */
+@SdkInternalApi
+public class ParseUrl extends SingleArgFn {
+    public static final String ID = "parseURL";
+
+    public static final Identifier SCHEME = Identifier.of("scheme");
+    public static final Identifier AUTHORITY = Identifier.of("authority");
+    public static final Identifier PATH = Identifier.of("path");
+    public static final Identifier NORMALIZED_PATH = Identifier.of("normalizedPath");
+    public static final Identifier IS_IP = Identifier.of("isIp");
+
+    public ParseUrl(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    public static ParseUrl ofExprs(Expr expr) {
+        return new ParseUrl(FnNode.ofExprs(ID, expr));
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitParseUrl(this);
+    }
+
+    @Override
+    protected Value evalArg(Value arg) {
+        String url = arg.expectString();
+        try {
+            URL parsed = new URL(url);
+            String path = parsed.getPath();
+            if (parsed.getQuery() != null) {
+                return Value.none();
+
+            }
+            boolean isIpAddr = false;
+            String host = parsed.getHost();
+            if (host.startsWith("[") && host.endsWith("]")) {
+                isIpAddr = true;
+            }
+            String[] dottedParts = host.split("\\.");
+            if (dottedParts.length == 4) {
+                if (Arrays.stream(dottedParts).allMatch(part -> {
+                    try {
+                        int value = Integer.parseInt(part);
+                        return value >= 0 && value <= 255;
+                    } catch (NumberFormatException ex) {
+                        return false;
+                    }
+                })) {
+                    isIpAddr = true;
+                }
+            }
+            String normalizedPath;
+            if (StringUtils.isBlank(path)) {
+                normalizedPath = "/";
+            } else {
+                StringBuilder builder = new StringBuilder();
+                if (!path.startsWith("/")) {
+                    builder.append("/");
+                }
+                builder.append(path);
+                if (!path.endsWith("/")) {
+                    builder.append("/");
+                }
+                normalizedPath = builder.toString();
+            }
+            return Value.fromRecord(MapUtils.of(SCHEME, Value.fromStr(parsed.getProtocol()), AUTHORITY,
+                    Value.fromStr(parsed.getAuthority()), PATH, Value.fromStr(path), NORMALIZED_PATH,
+                    Value.fromStr(normalizedPath), IS_IP, Value.fromBool(isIpAddr)));
+        } catch (MalformedURLException e) {
+            return Value.none();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Partition.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Partition.java
new file mode 100644
index 0000000..1b6fa0f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Partition.java
@@ -0,0 +1,159 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.HashMap;
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public class Partition {
+    private static final String ID = "id";
+    private static final String REGION_REGEX = "regionRegex";
+    private static final String REGIONS = "regions";
+    private static final String OUTPUTS = "outputs";
+
+    private final String id;
+    private final String regionRegex;
+    private final Map<String, RegionOverride> regions;
+    private final Outputs outputs;
+
+    private Partition(Builder builder) {
+        this.id = builder.id;
+        this.regionRegex = builder.regionRegex;
+        this.regions = new HashMap<>(builder.regions);
+        this.outputs = builder.outputs;
+    }
+
+    public String id() {
+        return id;
+    }
+
+    public String regionRegex() {
+        return regionRegex;
+    }
+
+    public Map<String, RegionOverride> regions() {
+        return regions;
+    }
+
+    public Outputs outputs() {
+        return outputs;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Partition partition = (Partition) o;
+
+        if (id != null ? !id.equals(partition.id) : partition.id != null) {
+            return false;
+        }
+        if (regionRegex != null ? !regionRegex.equals(partition.regionRegex) : partition.regionRegex != null) {
+            return false;
+        }
+        if (regions != null ? !regions.equals(partition.regions) : partition.regions != null) {
+            return false;
+        }
+        return outputs != null ? outputs.equals(partition.outputs) : partition.outputs == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = id != null ? id.hashCode() : 0;
+        result = 31 * result + (regionRegex != null ? regionRegex.hashCode() : 0);
+        result = 31 * result + (regions != null ? regions.hashCode() : 0);
+        result = 31 * result + (outputs != null ? outputs.hashCode() : 0);
+        return result;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static Partition fromNode(JsonNode node) {
+        Builder b = builder();
+
+        Map<String, JsonNode> objNode = node.asObject();
+
+        JsonNode id = objNode.get(ID);
+        if (id != null) {
+            b.id(id.asString());
+        }
+
+        JsonNode regionRegex = objNode.get(REGION_REGEX);
+        if (regionRegex != null) {
+            b.regionRegex(regionRegex.asString());
+        }
+
+        JsonNode regions = objNode.get(REGIONS);
+        if (regions != null) {
+            Map<String, JsonNode> regionsObj = regions.asObject();
+            regionsObj.forEach((k, v) -> b.putRegion(k, RegionOverride.fromNode(v)));
+        }
+
+        JsonNode outputs = objNode.get(OUTPUTS);
+        if (outputs != null) {
+            b.outputs(Outputs.fromNode(outputs));
+        }
+
+        return b.build();
+    }
+
+    public static class Builder {
+        private String id;
+        private String regionRegex;
+        private Map<String, RegionOverride> regions = new HashMap<>();
+        private Outputs outputs;
+
+        public Builder id(String id) {
+            this.id = id;
+            return this;
+        }
+
+        public Builder regionRegex(String regionRegex) {
+            this.regionRegex = regionRegex;
+            return this;
+        }
+
+        public Builder regions(Map<String, RegionOverride> regions) {
+            this.regions.clear();
+            if (regions != null) {
+                this.regions.putAll(regions);
+            }
+            return this;
+        }
+
+        public Builder putRegion(String name, RegionOverride regionOverride) {
+            regions.put(name, regionOverride);
+            return this;
+        }
+
+        public Builder outputs(Outputs outputs) {
+            this.outputs = outputs;
+            return this;
+        }
+
+        public Partition build() {
+            return new Partition(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/PartitionDataProvider.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/PartitionDataProvider.java
new file mode 100644
index 0000000..6b8889f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/PartitionDataProvider.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface PartitionDataProvider {
+    Partitions loadPartitions();
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/PartitionFn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/PartitionFn.java
new file mode 100644
index 0000000..f1d29a5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/PartitionFn.java
@@ -0,0 +1,155 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Supplier;
+import java.util.regex.Pattern;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.utils.MapUtils;
+
+@SdkInternalApi
+public class PartitionFn extends SingleArgFn {
+    public static final String ID = "aws.partition";
+
+    public static final Identifier NAME = Identifier.of("name");
+    public static final Identifier DNS_SUFFIX = Identifier.of("dnsSuffix");
+    public static final Identifier DUAL_STACK_DNS_SUFFIX = Identifier.of("dualStackDnsSuffix");
+    public static final Identifier SUPPORTS_FIPS = Identifier.of("supportsFIPS");
+    public static final Identifier SUPPORTS_DUAL_STACK = Identifier.of("supportsDualStack");
+    public static final Identifier INFERRED = Identifier.of("inferred");
+
+    private final LazyValue<PartitionData> partitionData = LazyValue.<PartitionData> builder()
+            .initializer(this::loadPartitionData).build();
+
+    private final LazyValue<Partition> awsPartition = LazyValue.<Partition> builder().initializer(this::findAwsPartition).build();
+
+    public PartitionFn(FnNode node) {
+        super(node);
+    }
+
+    public static PartitionFn ofExprs(Expr expr) {
+        return new PartitionFn(FnNode.ofExprs(ID, expr));
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitPartition(this);
+    }
+
+    public static PartitionFn fromParam(Parameter param) {
+        return PartitionFn.ofExprs(param.expr());
+    }
+
+    @Override
+    public Value evalArg(Value arg) {
+        String regionName = arg.expectString();
+
+        PartitionData data = partitionData.value();
+
+        Partition matchedPartition;
+        boolean inferred = false;
+
+        // Known region
+        matchedPartition = data.regionMap.get(regionName);
+        if (matchedPartition == null) {
+            // try matching on region name pattern
+            for (Partition p : data.partitions) {
+                Pattern regex = Pattern.compile(p.regionRegex());
+                if (regex.matcher(regionName).matches()) {
+                    matchedPartition = p;
+                    inferred = true;
+                    break;
+                }
+            }
+        }
+
+        // Couldn't find the region by name or pattern matching. Fallback to 'aws' partition.
+        if (matchedPartition == null) {
+            matchedPartition = awsPartition.value();
+        }
+
+        Outputs matchedOutputs = matchedPartition.outputs();
+        return Value.fromRecord(MapUtils.of(NAME, Value.fromStr(matchedPartition.id()), DNS_SUFFIX,
+                Value.fromStr(matchedOutputs.dnsSuffix()), DUAL_STACK_DNS_SUFFIX,
+                Value.fromStr(matchedOutputs.dualStackDnsSuffix()), SUPPORTS_FIPS, Value.fromBool(matchedOutputs.supportsFips()),
+                SUPPORTS_DUAL_STACK, Value.fromBool(matchedOutputs.supportsDualStack()), INFERRED, Value.fromBool(inferred)));
+    }
+
+    private PartitionData loadPartitionData() {
+        PartitionDataProvider provider = new DefaultPartitionDataProvider();
+
+        // TODO: support custom partitions.json
+        Partitions partitions = provider.loadPartitions();
+
+        PartitionData partitionData = new PartitionData();
+
+        partitions.partitions().forEach(part -> {
+            partitionData.partitions.add(part);
+            part.regions().forEach((name, override) -> {
+                partitionData.regionMap.put(name, part);
+            });
+        });
+
+        return partitionData;
+    }
+
+    private Partition findAwsPartition() {
+        return partitionData.value().partitions.stream().filter(p -> p.id().equalsIgnoreCase("aws")).findFirst().orElse(null);
+    }
+
+    private static class PartitionData {
+        private final List<Partition> partitions = new ArrayList<>();
+        private final Map<String, Partition> regionMap = new HashMap<>();
+    }
+
+    private static final class LazyValue<T> {
+        private final Supplier<T> initializer;
+        private T value;
+        private boolean initialized;
+
+        private LazyValue(Builder<T> builder) {
+            this.initializer = builder.initializer;
+        }
+
+        public T value() {
+            if (!initialized) {
+                value = initializer.get();
+                initialized = true;
+            }
+            return value;
+        }
+
+        public static <T> Builder<T> builder() {
+            return new Builder<>();
+        }
+
+        public static class Builder<T> {
+            private Supplier<T> initializer;
+
+            public Builder<T> initializer(Supplier<T> initializer) {
+                this.initializer = initializer;
+                return this;
+            }
+
+            public LazyValue<T> build() {
+                return new LazyValue<>(this);
+            }
+        }
+    }
+
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Partitions.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Partitions.java
new file mode 100644
index 0000000..d333231
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Partitions.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public final class Partitions {
+    private static final String VERSION = "version";
+    private static final String PARTITIONS = "partitions";
+
+    private final String version;
+    private final List<Partition> partitions;
+
+    private Partitions(Builder builder) {
+        this.version = builder.version;
+        this.partitions = new ArrayList<>(builder.partitions);
+    }
+
+    public String version() {
+        return version;
+    }
+
+    public List<Partition> partitions() {
+        return partitions;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Partitions that = (Partitions) o;
+
+        if (version != null ? !version.equals(that.version) : that.version != null) {
+            return false;
+        }
+        return partitions != null ? partitions.equals(that.partitions) : that.partitions == null;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = version != null ? version.hashCode() : 0;
+        result = 31 * result + (partitions != null ? partitions.hashCode() : 0);
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        return "Partitions{" + "version='" + version + '\'' + ", partitions=" + partitions + '}';
+    }
+
+    public static Partitions fromNode(JsonNode node) {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        Builder b = builder();
+
+        JsonNode version = objNode.get(VERSION);
+        if (version != null) {
+            b.version(version.asString());
+        }
+
+        JsonNode partitions = objNode.get(PARTITIONS);
+        if (partitions != null) {
+            partitions.asArray().forEach(partNode -> b.addPartition(Partition.fromNode(partNode)));
+        }
+
+        return b.build();
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static class Builder {
+        private String version;
+        private List<Partition> partitions = new ArrayList<>();
+
+        public Builder version(String version) {
+            this.version = version;
+            return this;
+        }
+
+        public Builder partitions(List<Partition> partitions) {
+            this.partitions.clear();
+            if (partitions != null) {
+                this.partitions.addAll(partitions);
+            }
+            return this;
+        }
+
+        public Builder addPartition(Partition p) {
+            this.partitions.add(p);
+            return this;
+        }
+
+        public Partitions build() {
+            return new Partitions(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Ref.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Ref.java
new file mode 100644
index 0000000..56def78
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Ref.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * A reference to a field.
+ */
+@SdkInternalApi
+public class Ref extends Expr {
+    private final Identifier name;
+
+    public Ref(Identifier name) {
+        this.name = name;
+    }
+
+    @Override
+    public <R> R accept(ExprVisitor<R> visitor) {
+        return visitor.visitRef(this);
+    }
+
+    public Identifier getName() {
+        return name;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        Ref ref = (Ref) o;
+        return name.equals(ref.name);
+    }
+
+    @Override
+    public String template() {
+        return String.format("{%s}", name);
+    }
+
+    @Override
+    public String toString() {
+        return name.asString();
+    }
+
+    @Override
+    public int hashCode() {
+        return name != null ? name.hashCode() : 0;
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        return scope.getValue(this.name).orElse(new Value.None());
+    }
+}
\ No newline at end of file
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RegionOverride.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RegionOverride.java
new file mode 100644
index 0000000..14cbe5f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RegionOverride.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public class RegionOverride {
+
+    private RegionOverride(Builder builder) {
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static RegionOverride fromNode(JsonNode node) {
+        Builder b = new Builder();
+        return b.build();
+    }
+
+    @Override
+    public int hashCode() {
+        return 7;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        return obj instanceof RegionOverride;
+    }
+
+    public static class Builder {
+        public RegionOverride build() {
+            return new RegionOverride(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Rule.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Rule.java
new file mode 100644
index 0000000..db5b13d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Rule.java
@@ -0,0 +1,103 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+@SdkInternalApi
+public abstract class Rule {
+    public static final String CONDITIONS = "conditions";
+    public static final String DOCUMENTATION = "documentation";
+    public static final String ENDPOINT = "endpoint";
+    public static final String ERROR = "error";
+
+    public static final String TREE = "tree";
+    public static final String RULES = "rules";
+    public static final String TYPE = "type";
+
+    protected final List<Condition> conditions;
+    protected final String documentation;
+
+    protected Rule(Builder builder) {
+        this.conditions = builder.conditions;
+        this.documentation = builder.documentation;
+    }
+
+    public List<Condition> getConditions() {
+        return conditions;
+    }
+
+    public abstract <T> T accept(RuleValueVisitor<T> v);
+
+    public static Rule fromNode(JsonNode node) {
+        Map<String, JsonNode> objNode = node.asObject();
+
+        Builder builder = builder();
+
+        objNode.get(CONDITIONS).asArray().forEach(cn -> builder.addCondition(Condition.fromNode(cn)));
+
+        JsonNode documentation = objNode.get(DOCUMENTATION);
+        if (documentation != null) {
+            builder.documentation(documentation.asString());
+        }
+
+        String type = objNode.get(TYPE).asString();
+        switch (type) {
+        case ENDPOINT:
+            return builder.endpoint(EndpointResult.fromNode(objNode.get(ENDPOINT)));
+        case ERROR:
+            return builder.error(objNode.get(ERROR).asString());
+        case TREE:
+            return builder.treeRule(objNode.get(RULES).asArray().stream().map(Rule::fromNode).collect(Collectors.toList()));
+        default:
+            throw new IllegalStateException("Unexpected rule type: " + type);
+        }
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    public static class Builder {
+        private String documentation;
+        private final List<Condition> conditions = new ArrayList<>();
+
+        public Builder addCondition(Condition condition) {
+            this.conditions.add(condition);
+            return this;
+        }
+
+        public Builder documentation(String documentation) {
+            this.documentation = documentation;
+            return this;
+        }
+
+        public EndpointRule endpoint(EndpointResult endpoint) {
+            return new EndpointRule(this, endpoint);
+        }
+
+        public ErrorRule error(String error) {
+            return new ErrorRule(this, Literal.fromStr(error));
+        }
+
+        public TreeRule treeRule(List<Rule> rules) {
+            return new TreeRule(this, rules);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleEngine.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleEngine.java
new file mode 100644
index 0000000..0fc7423
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleEngine.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface RuleEngine {
+    /**
+     * Evaluate the given {@link EndpointRuleset} using the named values in {@code args} as input into the rule set.
+     *
+     * @param ruleset
+     *        The rule set to evaluate.
+     * @param args
+     *        The arguments.
+     * @return The computed value.
+     */
+    Value evaluate(EndpointRuleset ruleset, Map<Identifier, Value> args);
+
+    static RuleEngine defaultEngine() {
+        return new DefaultRuleEngine();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleError.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleError.java
new file mode 100644
index 0000000..d232fbd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleError.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.function.Supplier;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkException;
+
+@SdkInternalApi
+public class RuleError extends SdkException {
+
+    protected RuleError(BuilderImpl builder) {
+        super(builder);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public interface Builder extends SdkException.Builder {
+        @Override
+        RuleError build();
+    }
+
+    public static <T> T ctx(String message, Supplier<T> f) {
+        try {
+            return f.get();
+        } catch (Exception e) {
+            throw builder().message(message).cause(e).build();
+        }
+    }
+
+    public static <T> T ctx(String message, Runnable f) {
+        return ctx(message, () -> {
+            f.run();
+            return null;
+        });
+    }
+
+    private static class BuilderImpl extends SdkException.BuilderImpl implements Builder {
+        @Override
+        public RuleError build() {
+            return new RuleError(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleEvaluator.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleEvaluator.java
new file mode 100644
index 0000000..052bb72
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleEvaluator.java
@@ -0,0 +1,169 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import java.util.Map;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class RuleEvaluator implements FnVisitor<Value>, ExprVisitor<Value> {
+    private final Scope<Value> scope = new Scope<>();
+
+    public Value evaluateRuleset(EndpointRuleset ruleset, Map<Identifier, Value> input) {
+        return scope.inScope(() -> {
+            ruleset.getParameters().toList().forEach(param -> {
+                param.getDefault().ifPresent(value -> scope.insert(param.getName(), value));
+            });
+            input.forEach(scope::insert);
+            for (Rule rule : ruleset.getRules()) {
+                Value result = handleRule(rule);
+                if (!result.isNone()) {
+                    return result;
+                }
+            }
+            throw new RuntimeException("No rules in ruleset matched");
+        });
+    }
+
+    @Override
+    public Value visitLiteral(Literal literal) {
+        return literal.eval(scope);
+    }
+
+    @Override
+    public Value visitRef(Ref ref) {
+        return scope.getValue(ref.getName()).orElseThrow(
+                () -> new RuntimeException(String.format("Invalid ruleset: %s was not in scope", ref)));
+    }
+
+    @Override
+    public Value visitFn(Fn fn) {
+        return fn.acceptFnVisitor(this);
+    }
+
+    @Override
+    public Value visitPartition(PartitionFn fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitParseArn(ParseArn fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitIsValidHostLabel(IsValidHostLabel fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitBoolEquals(BooleanEqualsFn fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitStringEquals(StringEqualsFn fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitIsSet(IsSet fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitNot(Not not) {
+        return Value.fromBool(!not.target().accept(this).expectBool());
+    }
+
+    @Override
+    public Value visitGetAttr(GetAttr getAttr) {
+        return getAttr.eval(scope);
+    }
+
+    @Override
+    public Value visitParseUrl(ParseUrl parseUrl) {
+        return parseUrl.eval(scope);
+    }
+
+    @Override
+    public Value visitSubstring(Substring fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitUriEncode(UriEncodeFn fn) {
+        return fn.eval(scope);
+    }
+
+    @Override
+    public Value visitIsVirtualHostLabelsS3Bucket(IsVirtualHostableS3Bucket fn) {
+        return fn.eval(scope);
+    }
+
+    private Value handleRule(Rule rule) {
+        RuleEvaluator self = this;
+        return scope.inScope(() -> {
+            for (Condition condition : rule.getConditions()) {
+                Value value = evaluateCondition(condition);
+                if (value.isNone() || value.equals(Value.fromBool(false))) {
+                    return Value.none();
+                }
+            }
+            return rule.accept(new RuleValueVisitor<Value>() {
+                @Override
+                public Value visitTreeRule(List<Rule> rules) {
+                    for (Rule subrule : rules) {
+                        Value result = handleRule(subrule);
+                        if (!result.isNone()) {
+                            return result;
+                        }
+                    }
+                    throw new RuntimeException(String.format("no rules inside of tree rule matched—invalid rules (%s)", this));
+                }
+
+                @Override
+                public Value visitErrorRule(Expr error) {
+                    return error.accept(self);
+                }
+
+                @Override
+                public Value visitEndpointRule(EndpointResult endpoint) {
+                    return generateEndpoint(endpoint);
+                }
+            });
+        });
+    }
+
+    public Value evaluateCondition(Condition condition) {
+        Value value = condition.getFn().accept(this);
+        if (!value.isNone()) {
+            condition.getResult().ifPresent(res -> scope.insert(res, value));
+        }
+        return value;
+    }
+
+    public Value generateEndpoint(EndpointResult endpoint) {
+        Value.Endpoint.Builder builder = Value.Endpoint.builder().url(endpoint.getUrl().accept(this).expectString());
+        endpoint.getProperties().forEach((key, value) -> {
+            builder.property(key.toString(), value.accept(this));
+        });
+        endpoint.getHeaders().forEach((name, exprs) -> {
+            exprs.forEach(expr -> builder.addHeader(name, expr.accept(this).expectString()));
+        });
+
+        return builder.build();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleValueVisitor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleValueVisitor.java
new file mode 100644
index 0000000..c12311d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/RuleValueVisitor.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * Visitor for the right-hand side of rules (tree, error, endpoint)
+ * 
+ * @param <R>
+ *        The return type of the visitor
+ */
+@SdkInternalApi
+public interface RuleValueVisitor<R> {
+    R visitTreeRule(List<Rule> rules);
+
+    R visitErrorRule(Expr error);
+
+    R visitEndpointRule(EndpointResult endpoint);
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Scope.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Scope.java
new file mode 100644
index 0000000..14d44eb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Scope.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayDeque;
+import java.util.Deque;
+import java.util.HashMap;
+import java.util.Optional;
+import java.util.function.Supplier;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class Scope<T> {
+    private final Deque<FatScope<T>> scope;
+
+    public Scope() {
+        this.scope = new ArrayDeque<>();
+        this.scope.push(new FatScope<T>());
+    }
+
+    public void push() {
+        scope.push(new FatScope<>());
+    }
+
+    public void pop() {
+        scope.pop();
+    }
+
+    public void insert(String name, T value) {
+        this.insert(Identifier.of(name), value);
+    }
+
+    public void insert(Identifier name, T value) {
+        this.scope.getFirst().types().put(name, value);
+    }
+
+    public void insertFact(Expr name, T value) {
+        this.scope.getFirst().facts().put(name, value);
+    }
+
+    public <U> U inScope(Supplier<U> func) {
+        this.push();
+        try {
+            return func.get();
+        } finally {
+            this.pop();
+        }
+    }
+
+    @Override
+    public String toString() {
+        HashMap<Identifier, T> toPrint = new HashMap<>();
+        for (FatScope<T> layer : scope) {
+            toPrint.putAll(layer.types());
+        }
+        return toPrint.toString();
+    }
+
+    /**
+     * Search the fact stack for an explicitly calculated value for [expr]
+     * <p>
+     * Currently, this is only impacted by the `isSet` function which will record `T`, rather than {@code Option<T>} for
+     * its arguments
+     *
+     * @param expr
+     *        The expression to evaluate
+     * @return The value from the scope
+     */
+    public Optional<T> eval(Expr expr) {
+        for (FatScope<T> layer : scope) {
+            if (layer.facts().containsKey(expr)) {
+                return Optional.of(layer.facts().get(expr));
+            }
+        }
+        return Optional.empty();
+    }
+
+    public T expectValue(Identifier name) {
+        for (FatScope<T> layer : scope) {
+            if (layer.types().containsKey(name)) {
+                return layer.types().get(name);
+            }
+        }
+        throw new InnerParseError(String.format("No field named %s", name));
+    }
+
+    public Optional<T> getValue(Identifier name) {
+        for (FatScope<T> layer : scope) {
+            if (layer.types().containsKey(name)) {
+                return Optional.of(layer.types().get(name));
+            }
+        }
+        return Optional.empty();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/SingleArgFn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/SingleArgFn.java
new file mode 100644
index 0000000..b420917
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/SingleArgFn.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public abstract class SingleArgFn extends Fn {
+
+    public SingleArgFn(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    public Expr target() {
+        return expectOneArg();
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        return evalArg(expectOneArg().eval(scope));
+    }
+
+    protected abstract Value evalArg(Value arg);
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/SourceException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/SourceException.java
new file mode 100644
index 0000000..8b8529f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/SourceException.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkException;
+
+@SdkInternalApi
+public class SourceException extends SdkException {
+    private SourceException(Builder b) {
+        super(b);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    interface Builder extends SdkException.Builder {
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        SourceException build();
+    }
+
+    public static class BuilderImpl extends SdkException.BuilderImpl implements Builder {
+        @Override
+        public Builder cause(Throwable cause) {
+            super.cause(cause);
+            return this;
+        }
+
+        @Override
+        public Builder message(String message) {
+            super.message(message);
+            return this;
+        }
+
+        @Override
+        public Builder writableStackTrace(Boolean writableStackTrace) {
+            super.writableStackTrace(writableStackTrace);
+            return this;
+        }
+
+        @Override
+        public SourceException build() {
+            return new SourceException(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/StringEqualsFn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/StringEqualsFn.java
new file mode 100644
index 0000000..a3cec4e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/StringEqualsFn.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.utils.Pair;
+
+@SdkInternalApi
+public class StringEqualsFn extends Fn {
+    public static final String ID = "stringEquals";
+
+    public StringEqualsFn(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitStringEquals(this);
+    }
+
+    public static StringEqualsFn ofExprs(Expr expr, Expr of) {
+        return new StringEqualsFn(FnNode.ofExprs(ID, expr, of));
+    }
+
+    public Expr getLeft() {
+        return expectTwoArgs().left();
+    }
+
+    public Expr getRight() {
+        return expectTwoArgs().right();
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        Pair<Expr, Expr> args = expectTwoArgs();
+        return Value.fromBool(args.left().eval(scope).expectString().equals(args.right().eval(scope).expectString()));
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Substring.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Substring.java
new file mode 100644
index 0000000..4aab139
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Substring.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class Substring extends VarargFn {
+    public static final String ID = "substring";
+    public static final Identifier SUBSTRING = Identifier.of("substring");
+    private static final int EXPECTED_NUMBER_ARGS = 4;
+
+    public Substring(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitSubstring(this);
+    }
+
+    public static Substring ofExprs(Expr expr, int startIndex, int stopIndex, Boolean reverse) {
+        return new Substring(FnNode.ofExprs(ID, expr, Expr.of(startIndex), Expr.of(stopIndex), Expr.of(reverse)));
+    }
+
+    public Expr stringToParse() {
+        return expectVariableArgs(EXPECTED_NUMBER_ARGS).get(0);
+    }
+
+    public Expr startIndex() {
+        return expectVariableArgs(EXPECTED_NUMBER_ARGS).get(1);
+    }
+
+    public Expr stopIndex() {
+        return expectVariableArgs(EXPECTED_NUMBER_ARGS).get(2);
+    }
+
+    public Expr reverse() {
+        return expectVariableArgs(EXPECTED_NUMBER_ARGS).get(3);
+    }
+
+    @Override
+    public Value eval(Scope<Value> scope) {
+        List<Expr> args = expectVariableArgs(EXPECTED_NUMBER_ARGS);
+        String str = args.get(0).eval(scope).expectString();
+        int startIndex = args.get(1).eval(scope).expectInt();
+        int stopIndex = args.get(2).eval(scope).expectInt();
+        boolean reverse = args.get(3).eval(scope).expectBool();
+
+        if (startIndex >= stopIndex || str.length() - 1 < stopIndex) {
+            return new Value.None();
+        }
+
+        String substr;
+        if (reverse) {
+            String reversedStr = new StringBuilder(str).reverse().toString();
+            substr = new StringBuilder(reversedStr.substring(startIndex, stopIndex)).reverse().toString();
+        } else {
+            substr = str.substring(startIndex, stopIndex);
+        }
+
+        return Value.fromStr(substr);
+
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Template.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Template.java
new file mode 100644
index 0000000..7905ee9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Template.java
@@ -0,0 +1,261 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * Template represents a "Template Literal". This is a literal string within the rules language. A template can contain
+ * 0 or more dynamic sections. The dynamic sections use getAttr short-form:
+ * <p>
+ * `https://{Region}.{partition#dnsSuffix}` -------- ------------ | | Dynamic getAttr short form
+ */
+@SdkInternalApi
+public class Template {
+    private final List<Part> parts;
+
+    Template(String template) {
+        this.parts = RuleError.ctx("when parsing template", () -> parseTemplate(template));
+    }
+
+    public <T> Stream<T> accept(TemplateVisitor<T> visitor) {
+        if (isStatic()) {
+            return Stream.of(visitor.visitStaticTemplate(expectLiteral()));
+        }
+        if (parts.size() == 1) {
+            // must be dynamic because previous branch handled single-element static template
+            return Stream.of(visitor.visitSingleDynamicTemplate(((Dynamic) parts.get(0)).expr));
+        }
+        Stream<T> start = Stream.of(visitor.startMultipartTemplate());
+        Stream<T> components = parts.stream().map(part -> part.accept(visitor));
+        Stream<T> end = Stream.of(visitor.finishMultipartTemplate());
+        return Stream.concat(start, Stream.concat(components, end));
+    }
+
+    public List<Part> getParts() {
+        return parts;
+    }
+
+    public boolean isStatic() {
+        return this.parts.stream().allMatch(it -> it instanceof Literal);
+    }
+
+    public String expectLiteral() {
+        assert isStatic();
+        return this.parts.stream().map(Part::toString).collect(Collectors.joining());
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+
+        Template template = (Template) o;
+
+        return parts != null ? parts.equals(template.parts) : template.parts == null;
+    }
+
+    @Override
+    public int hashCode() {
+        return parts != null ? parts.hashCode() : 0;
+    }
+
+    public static Template fromString(String s) {
+        return new Template(s);
+    }
+
+    @Override
+    public String toString() {
+        return String.format("\"%s\"", this.parts.stream().map(Part::toString).collect(Collectors.joining()));
+    }
+
+    public Value eval(Scope<Value> scope) {
+        return Value.fromStr(parts.stream().map(part -> part.eval(scope)).collect(Collectors.joining()));
+    }
+
+    private List<Part> parseTemplate(String template) {
+        List<Part> out = new ArrayList<>();
+        Optional<Integer> templateStart = Optional.empty();
+        int depth = 0;
+        int templateEnd = 0;
+        for (int i = 0; i < template.length(); i++) {
+            if (template.substring(i).startsWith("{{")) {
+                i++;
+                continue;
+            }
+            if (template.substring(i).startsWith("}}")) {
+                i++;
+                continue;
+            }
+            if (template.charAt(i) == '{') {
+                if (depth == 0) {
+                    if (templateEnd != i) {
+                        out.add(Literal.unescape(template.substring(templateEnd, i)));
+                    }
+                    templateStart = Optional.of(i + 1);
+                }
+                depth++;
+            }
+            if (template.charAt(i) == '}') {
+                depth--;
+                if (depth < 0) {
+                    throw new InnerParseError("unmatched `}` in template");
+                }
+                if (depth == 0) {
+                    out.add(Dynamic.parse(template.substring(templateStart.get(), i)));
+                    templateStart = Optional.empty();
+                }
+                templateEnd = i + 1;
+            }
+        }
+        if (depth != 0) {
+            throw new InnerParseError("unmatched `{` in template");
+        }
+        if (templateEnd < template.length()) {
+            out.add(Literal.unescape(template.substring(templateEnd)));
+        }
+        return out;
+    }
+
+    public abstract static class Part {
+        abstract String eval(Scope<Value> scope);
+
+        abstract <T> T accept(TemplateVisitor<T> visitor);
+    }
+
+    public static class Literal extends Part {
+        private final String value;
+
+        public Literal(String value) {
+            if (value.isEmpty()) {
+                throw new RuntimeException("value cannot blank");
+            }
+            this.value = value;
+        }
+
+        public static Literal unescape(String value) {
+            return new Literal(value.replace("{{", "{").replace("}}", "}"));
+        }
+
+        public String getValue() {
+            return value;
+        }
+
+        @Override
+        public String toString() {
+            return this.value;
+        }
+
+        @Override
+        String eval(Scope<Value> scope) {
+            return this.value;
+        }
+
+        @Override
+        <T> T accept(TemplateVisitor<T> visitor) {
+            return visitor.visitStaticElement(this.value);
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+            if (!super.equals(o)) {
+                return false;
+            }
+
+            Literal literal = (Literal) o;
+
+            return value != null ? value.equals(literal.value) : literal.value == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return value != null ? value.hashCode() : 0;
+        }
+    }
+
+    public static class Dynamic extends Part {
+        private final String raw;
+        private final Expr expr;
+
+        private Dynamic(String raw, Expr expr) {
+            this.raw = raw;
+            this.expr = expr;
+        }
+
+        @Override
+        public String toString() {
+            return String.format("{dyn %s}", this.raw);
+        }
+
+        @Override
+        String eval(Scope<Value> scope) {
+            return RuleError.ctx("while evaluating " + this, () -> expr.eval(scope).expectString());
+        }
+
+        @Override
+        <T> T accept(TemplateVisitor<T> visitor) {
+            return visitor.visitDynamicElement(this.expr);
+        }
+
+        public Expr getExpr() {
+            return expr;
+        }
+
+        public static Dynamic parse(String value) {
+            return new Dynamic(value, Expr.parseShortform(value));
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+            if (!super.equals(o)) {
+                return false;
+            }
+
+            Dynamic dynamic = (Dynamic) o;
+
+            if (raw != null ? !raw.equals(dynamic.raw) : dynamic.raw != null) {
+                return false;
+            }
+            return expr != null ? expr.equals(dynamic.expr) : dynamic.expr == null;
+        }
+
+        @Override
+        public int hashCode() {
+            int result = raw != null ? raw.hashCode() : 0;
+            result = 31 * result + (expr != null ? expr.hashCode() : 0);
+            return result;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/TemplateVisitor.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/TemplateVisitor.java
new file mode 100644
index 0000000..02986d8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/TemplateVisitor.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+/**
+ * For code generating from a template, use a `TemplateVisitor`. Template visitor is written to enable optimized
+ * behavior for static templates with no dynamic components.
+ * 
+ * @param <T>
+ *        The return type of this visitor
+ */
+@SdkInternalApi
+public interface TemplateVisitor<T> {
+    /**
+     * The template contains a single static string, eg. `"https://mystaticendpoing.com"`
+     * 
+     * @param value
+     *        : The static value of the template.
+     * @return T
+     */
+    T visitStaticTemplate(String value);
+
+    /**
+     * The template contains a single dynamic element, eg. `{Region}`. In this case, string formatting is not required.
+     * The type of the value is guaranteed to be a string.
+     * 
+     * @param value
+     *        : The single expression that represents this template.
+     * @return T
+     */
+    T visitSingleDynamicTemplate(Expr value);
+
+    /**
+     * Visit a static element within a multipart template. This will only be called after
+     * {@link #startMultipartTemplate()} has been invoked.
+     * 
+     * @param value
+     *        A static element within a larger template
+     * @return T
+     */
+    T visitStaticElement(String value);
+
+    /**
+     * Visit a dynamic element within a multipart template. This will only be called after
+     * {@link #startMultipartTemplate()} has been invoked.
+     * 
+     * @param value
+     *        The dynamic template value
+     * @return T
+     */
+    T visitDynamicElement(Expr value);
+
+    /**
+     * Invoked prior to visiting a multipart template like `https://{Region}.{dnsSuffix}`. This function will be
+     * followed by invocations of {@link #visitStaticTemplate(String)} and {@link #visitDynamicElement(Expr)}.
+     * 
+     * @return T
+     */
+    T startMultipartTemplate();
+
+    /**
+     * Invoked at the conclusion of visiting a multipart template like `https://{Region}.{dnsSuffix}`. This allows
+     * implementations to do something like call `string.join()` or `stringbuilder.toString()`.
+     * 
+     * @return T
+     */
+    T finishMultipartTemplate();
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ToParameterReference.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ToParameterReference.java
new file mode 100644
index 0000000..63216ac
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/ToParameterReference.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public interface ToParameterReference {
+    ParameterReference toParameterReference();
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/TreeRule.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/TreeRule.java
new file mode 100644
index 0000000..f68235a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/TreeRule.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+public class TreeRule extends Rule {
+    private final List<Rule> rules;
+
+    protected TreeRule(Builder builder, List<Rule> rules) {
+        super(builder);
+        this.rules = rules;
+    }
+
+    @Override
+    public <T> T accept(RuleValueVisitor<T> v) {
+        return v.visitTreeRule(rules);
+    }
+
+    @Override
+    public String toString() {
+        return "TreeRule{" + "conditions=" + conditions + ", documentation='" + documentation + '\'' + ", rules=" + rules + '}';
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/UriEncodeFn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/UriEncodeFn.java
new file mode 100644
index 0000000..9ecf006
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/UriEncodeFn.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+
+@SdkInternalApi
+public class UriEncodeFn extends SingleArgFn {
+    public static final String ID = "uriEncode";
+    private static final String[] ENCODED_CHARACTERS = new String[] { "+", "*", "%7E" };
+    private static final String[] ENCODED_CHARACTERS_REPLACEMENTS = new String[] { "%20", "%2A", "~" };
+
+    public UriEncodeFn(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    @Override
+    protected Value evalArg(Value arg) {
+        String url = arg.expectString();
+        try {
+            String encoded = URLEncoder.encode(url, "UTF-8");
+            for (int i = 0; i < ENCODED_CHARACTERS.length; i++) {
+                encoded = encoded.replace(ENCODED_CHARACTERS[i], ENCODED_CHARACTERS_REPLACEMENTS[i]);
+            }
+            return Value.fromStr(encoded);
+        } catch (UnsupportedEncodingException e) {
+            throw SdkClientException.create("Unable to URI encode value: " + url, e);
+        }
+    }
+
+    @Override
+    public <T> T acceptFnVisitor(FnVisitor<T> visitor) {
+        return visitor.visitUriEncode(this);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Value.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Value.java
new file mode 100644
index 0000000..e434efb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/Value.java
@@ -0,0 +1,451 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.BiConsumer;
+import java.util.stream.Collectors;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.protocols.jsoncore.JsonNode;
+
+/**
+ * Base class for the types of values computable by the {@link RuleEngine}.
+ */
+@SdkInternalApi
+public abstract class Value {
+
+    public boolean isNone() {
+        return false;
+    }
+
+    public String expectString() {
+        throw new RuntimeException("Expected string but was: " + this);
+    }
+
+    public boolean expectBool() {
+        throw new RuntimeException("Expected bool but was: " + this);
+    }
+
+    public Record expectRecord() {
+        throw new RuntimeException("Expected object but was: " + this);
+    }
+
+    public Endpoint expectEndpoint() {
+        throw new RuntimeException("Expected endpoint, found " + this);
+    }
+
+    public Array expectArray() {
+        throw new RuntimeException("Expected array, found " + this);
+    }
+
+    public int expectInt() {
+        throw new RuntimeException("Expected int, found " + this);
+    }
+
+    public static Value fromNode(JsonNode node) {
+        if (node.isArray()) {
+            return new Array(node.asArray().stream().map(Value::fromNode).collect(Collectors.toList()));
+        } else if (node.isBoolean()) {
+            return fromBool(node.asBoolean());
+        } else if (node.isNull()) {
+            throw SdkClientException.create("null cannot be used as a literal");
+        } else if (node.isNumber()) {
+            return fromInteger(Integer.parseInt(node.asNumber()));
+        } else if (node.isObject()) {
+            HashMap<Identifier, Value> out = new HashMap<>();
+            node.asObject().forEach((k, v) -> out.put(Identifier.of(k), fromNode(v)));
+            return fromRecord(out);
+        } else if (node.isString()) {
+            return fromStr(node.asString());
+        }
+        throw SdkClientException.create("Unable to create Value from " + node);
+    }
+
+    public static Endpoint endpointFromNode(JsonNode source) {
+        return Endpoint.fromNode(source);
+    }
+
+    /**
+     * A string value.
+     */
+    public static class Str extends Value {
+        private final String value;
+
+        private Str(String value) {
+            this.value = value;
+        }
+
+        @Override
+        public String expectString() {
+            return value;
+        }
+
+        @Override
+        public String toString() {
+            return "Str{" + "value='" + value + '\'' + '}';
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Str str = (Str) o;
+
+            return value != null ? value.equals(str.value) : str.value == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return value != null ? value.hashCode() : 0;
+        }
+    }
+
+    /**
+     * An integer value.
+     */
+    public static class Int extends Value {
+        private final int value;
+
+        private Int(int value) {
+            this.value = value;
+        }
+
+        @Override
+        public int expectInt() {
+            return value;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Int anInt = (Int) o;
+
+            return value == anInt.value;
+        }
+
+        @Override
+        public int hashCode() {
+            return value;
+        }
+    }
+
+    /**
+     * A boolean value.
+     */
+    public static class Bool extends Value {
+        private final boolean value;
+
+        private Bool(boolean value) {
+            this.value = value;
+        }
+
+        @Override
+        public boolean expectBool() {
+            return value;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Bool bool = (Bool) o;
+
+            return value == bool.value;
+        }
+
+        @Override
+        public int hashCode() {
+            return value ? 1 : 0;
+        }
+    }
+
+    /**
+     * An array value.
+     */
+    public static class Array extends Value {
+        private List<Value> inner;
+
+        private Array(List<Value> inner) {
+            this.inner = inner;
+        }
+
+        @Override
+        public Array expectArray() {
+            return this;
+        }
+
+        public Value get(int idx) {
+            if (this.inner.size() > idx) {
+                return this.inner.get(idx);
+            } else {
+                return new Value.None();
+            }
+        }
+
+        public int size() {
+            return inner.size();
+        }
+
+        @Override
+        public String toString() {
+            return "Array{" + "inner=" + inner + '}';
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Array array = (Array) o;
+
+            return inner != null ? inner.equals(array.inner) : array.inner == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return inner != null ? inner.hashCode() : 0;
+        }
+    }
+
+    /**
+     * A record (map) value.
+     */
+    public static class Record extends Value {
+        private final Map<Identifier, Value> value;
+
+        private Record(Map<Identifier, Value> value) {
+            this.value = value;
+        }
+
+        public Value get(Identifier id) {
+            return value.get(id);
+        }
+
+        public Map<Identifier, Value> getValue() {
+            return value;
+        }
+
+        public void forEach(BiConsumer<Identifier, Value> fn) {
+            value.forEach(fn);
+        }
+
+        @Override
+        public Record expectRecord() {
+            return this;
+        }
+
+        @Override
+        public String toString() {
+            return "Record{" + "value=" + value + '}';
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Record record = (Record) o;
+
+            return value != null ? value.equals(record.value) : record.value == null;
+        }
+
+        @Override
+        public int hashCode() {
+            return value != null ? value.hashCode() : 0;
+        }
+    }
+
+    public static class Endpoint extends Value {
+        private static final String URL = "url";
+        private static final String PROPERTIES = "properties";
+        private static final String HEADERS = "headers";
+
+        private final String url;
+        private final Map<String, Value> properties;
+        private final Map<String, List<String>> headers;
+
+        private Endpoint(Builder b) {
+            this.url = b.url;
+            this.properties = b.properties;
+            this.headers = b.headers;
+        }
+
+        public String getUrl() {
+            return url;
+        }
+
+        public Map<String, Value> getProperties() {
+            return properties;
+        }
+
+        public Map<String, List<String>> getHeaders() {
+            return headers;
+        }
+
+        @Override
+        public Endpoint expectEndpoint() {
+            return this;
+        }
+
+        @Override
+        public boolean equals(Object o) {
+            if (this == o) {
+                return true;
+            }
+            if (o == null || getClass() != o.getClass()) {
+                return false;
+            }
+
+            Endpoint endpoint = (Endpoint) o;
+
+            if (url != null ? !url.equals(endpoint.url) : endpoint.url != null) {
+                return false;
+            }
+            if (properties != null ? !properties.equals(endpoint.properties) : endpoint.properties != null) {
+                return false;
+            }
+            return headers != null ? headers.equals(endpoint.headers) : endpoint.headers == null;
+        }
+
+        @Override
+        public int hashCode() {
+            int result = url != null ? url.hashCode() : 0;
+            result = 31 * result + (properties != null ? properties.hashCode() : 0);
+            result = 31 * result + (headers != null ? headers.hashCode() : 0);
+            return result;
+        }
+
+        @Override
+        public String toString() {
+            return "Endpoint{" + "url='" + url + '\'' + ", properties=" + properties + ", headers=" + headers + '}';
+        }
+
+        public static Endpoint fromNode(JsonNode node) {
+            Builder b = builder();
+
+            Map<String, JsonNode> objNode = node.asObject();
+
+            b.url(objNode.get(URL).asString());
+
+            JsonNode propertiesNode = objNode.get(PROPERTIES);
+            if (propertiesNode != null) {
+                propertiesNode.asObject().forEach((k, v) -> {
+                    b.property(k, Value.fromNode(v));
+                });
+            }
+
+            JsonNode headersNode = objNode.get(HEADERS);
+            if (headersNode != null) {
+                headersNode.asObject().forEach((k, v) -> v.asArray().forEach(e -> b.addHeader(k, e.asString())));
+            }
+
+            return b.build();
+        }
+
+        public static Builder builder() {
+            return new Builder();
+        }
+
+        public static class Builder {
+            private String url;
+            private final Map<String, Value> properties = new HashMap<>();
+            private final Map<String, List<String>> headers = new HashMap<>();
+
+            public Builder url(String url) {
+                this.url = url;
+                return this;
+            }
+
+            public Builder properties(Map<String, Value> properties) {
+                this.properties.clear();
+                this.properties.putAll(properties);
+                return this;
+            }
+
+            public Builder property(String name, Value value) {
+                this.properties.put(name, value);
+                return this;
+            }
+
+            public Builder addHeader(String name, String value) {
+                List<String> values = this.headers.computeIfAbsent(name, (k) -> new ArrayList<>());
+                values.add(value);
+                return this;
+            }
+
+            public Endpoint build() {
+                return new Endpoint(this);
+            }
+        }
+    }
+
+    public static class None extends Value {
+        @Override
+        public boolean isNone() {
+            return true;
+        }
+    }
+
+    public static Str fromStr(String value) {
+        return new Str(value);
+    }
+
+    public static Int fromInteger(int value) {
+        return new Int(value);
+    }
+
+    public static Bool fromBool(boolean value) {
+        return new Bool(value);
+    }
+
+    public static Array fromArray(List<Value> value) {
+        return new Array(value);
+    }
+
+    public static Record fromRecord(Map<Identifier, Value> value) {
+        return new Record(value);
+    }
+
+    public static None none() {
+        return new None();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/VarargFn.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/VarargFn.java
new file mode 100644
index 0000000..b3c0048
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/endpoints/internal/VarargFn.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.endpoints.internal;
+
+import java.util.List;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+
+@SdkInternalApi
+abstract class VarargFn extends Fn {
+
+    VarargFn(FnNode fnNode) {
+        super(fnNode);
+    }
+
+    public abstract Value eval(Scope<Value> scope);
+
+    protected List<Expr> args() {
+        return this.fnNode.getArgv();
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/KmsClientOption.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/KmsClientOption.java
new file mode 100644
index 0000000..b8287d1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/KmsClientOption.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.internal;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.client.config.ClientOption;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class KmsClientOption<T> extends ClientOption<T> {
+    private KmsClientOption(Class<T> valueClass) {
+        super(valueClass);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/KmsServiceClientConfigurationBuilder.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/KmsServiceClientConfigurationBuilder.java
new file mode 100644
index 0000000..0ef1635
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/KmsServiceClientConfigurationBuilder.java
@@ -0,0 +1,185 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.internal;
+
+import java.net.URI;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.client.config.AwsClientOption;
+import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
+import software.amazon.awssdk.core.client.config.SdkClientOption;
+import software.amazon.awssdk.endpoints.EndpointProvider;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthScheme;
+import software.amazon.awssdk.http.auth.spi.scheme.AuthSchemeProvider;
+import software.amazon.awssdk.identity.spi.AwsCredentialsIdentity;
+import software.amazon.awssdk.identity.spi.IdentityProvider;
+import software.amazon.awssdk.regions.Region;
+import software.amazon.awssdk.services.kms.KmsServiceClientConfiguration;
+import software.amazon.awssdk.services.kms.auth.scheme.KmsAuthSchemeProvider;
+import software.amazon.awssdk.utils.Validate;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class KmsServiceClientConfigurationBuilder implements KmsServiceClientConfiguration.Builder {
+    private final SdkClientConfiguration.Builder config;
+
+    public KmsServiceClientConfigurationBuilder() {
+        this(SdkClientConfiguration.builder());
+    }
+
+    public KmsServiceClientConfigurationBuilder(SdkClientConfiguration.Builder config) {
+        this.config = config;
+    }
+
+    /**
+     * Sets the value for client override configuration
+     */
+    @Override
+    public KmsServiceClientConfiguration.Builder overrideConfiguration(ClientOverrideConfiguration overrideConfiguration) {
+        config.putAll(overrideConfiguration);
+        return this;
+    }
+
+    /**
+     * Gets the value for client override configuration
+     */
+    @Override
+    public ClientOverrideConfiguration overrideConfiguration() {
+        return config.asOverrideConfigurationBuilder().build();
+    }
+
+    /**
+     * Sets the value for endpoint override
+     */
+    @Override
+    public KmsServiceClientConfiguration.Builder endpointOverride(URI endpointOverride) {
+        if (endpointOverride != null) {
+            config.option(SdkClientOption.ENDPOINT, endpointOverride);
+            config.option(SdkClientOption.ENDPOINT_OVERRIDDEN, true);
+        } else {
+            config.option(SdkClientOption.ENDPOINT, null);
+            config.option(SdkClientOption.ENDPOINT_OVERRIDDEN, false);
+        }
+        return this;
+    }
+
+    /**
+     * Gets the value for endpoint override
+     */
+    @Override
+    public URI endpointOverride() {
+        if (Boolean.TRUE.equals(config.option(SdkClientOption.ENDPOINT_OVERRIDDEN))) {
+            return config.option(SdkClientOption.ENDPOINT);
+        }
+        return null;
+    }
+
+    /**
+     * Sets the value for endpoint provider
+     */
+    @Override
+    public KmsServiceClientConfiguration.Builder endpointProvider(EndpointProvider endpointProvider) {
+        config.option(SdkClientOption.ENDPOINT_PROVIDER, endpointProvider);
+        return this;
+    }
+
+    /**
+     * Gets the value for endpoint provider
+     */
+    @Override
+    public EndpointProvider endpointProvider() {
+        return config.option(SdkClientOption.ENDPOINT_PROVIDER);
+    }
+
+    /**
+     * Sets the value for AWS region
+     */
+    @Override
+    public KmsServiceClientConfiguration.Builder region(Region region) {
+        config.option(AwsClientOption.AWS_REGION, region);
+        return this;
+    }
+
+    /**
+     * Gets the value for AWS region
+     */
+    @Override
+    public Region region() {
+        return config.option(AwsClientOption.AWS_REGION);
+    }
+
+    /**
+     * Sets the value for credentials provider
+     */
+    @Override
+    public KmsServiceClientConfiguration.Builder credentialsProvider(
+            IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider) {
+        config.option(AwsClientOption.CREDENTIALS_IDENTITY_PROVIDER, credentialsProvider);
+        return this;
+    }
+
+    /**
+     * Gets the value for credentials provider
+     */
+    @Override
+    public IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider() {
+        return config.option(AwsClientOption.CREDENTIALS_IDENTITY_PROVIDER);
+    }
+
+    @Override
+    public KmsServiceClientConfiguration.Builder putAuthScheme(AuthScheme<?> authScheme) {
+        config.computeOptionIfAbsent(SdkClientOption.AUTH_SCHEMES, HashMap::new).put(authScheme.schemeId(), authScheme);
+        return this;
+    }
+
+    /**
+     * Gets the value for auth schemes
+     */
+    @Override
+    public Map<String, AuthScheme<?>> authSchemes() {
+        Map<String, AuthScheme<?>> authSchemes = config.option(SdkClientOption.AUTH_SCHEMES);
+        return Collections.unmodifiableMap(authSchemes == null ? Collections.emptyMap() : authSchemes);
+    }
+
+    /**
+     * Sets the value for auth scheme provider
+     */
+    @Override
+    public KmsServiceClientConfiguration.Builder authSchemeProvider(KmsAuthSchemeProvider authSchemeProvider) {
+        config.option(SdkClientOption.AUTH_SCHEME_PROVIDER, authSchemeProvider);
+        return this;
+    }
+
+    /**
+     * Gets the value for auth scheme provider
+     */
+    @Override
+    public KmsAuthSchemeProvider authSchemeProvider() {
+        AuthSchemeProvider result = config.option(SdkClientOption.AUTH_SCHEME_PROVIDER);
+        if (result == null) {
+            return null;
+        }
+        return Validate.isInstanceOf(KmsAuthSchemeProvider.class, result, "Expected an instance of "
+                + KmsAuthSchemeProvider.class.getSimpleName());
+    }
+
+    @Override
+    public KmsServiceClientConfiguration build() {
+        return new KmsServiceClientConfiguration(this);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/UserAgentUtils.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/UserAgentUtils.java
new file mode 100644
index 0000000..0a40f01
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/internal/UserAgentUtils.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.internal;
+
+import java.util.function.Consumer;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.ApiName;
+import software.amazon.awssdk.core.util.VersionInfo;
+import software.amazon.awssdk.services.kms.model.KmsRequest;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class UserAgentUtils {
+    private UserAgentUtils() {
+    }
+
+    public static <T extends KmsRequest> T applyUserAgentInfo(T request,
+            Consumer<AwsRequestOverrideConfiguration.Builder> userAgentApplier) {
+        AwsRequestOverrideConfiguration overrideConfiguration = request.overrideConfiguration()
+                .map(c -> c.toBuilder().applyMutation(userAgentApplier).build())
+                .orElse((AwsRequestOverrideConfiguration.builder().applyMutation(userAgentApplier).build()));
+        return (T) request.toBuilder().overrideConfiguration(overrideConfiguration).build();
+    }
+
+    public static <T extends KmsRequest> T applyPaginatorUserAgent(T request) {
+        return applyUserAgentInfo(request,
+                b -> b.addApiName(ApiName.builder().version(VersionInfo.SDK_VERSION).name("PAGINATED").build()));
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AlgorithmSpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AlgorithmSpec.java
new file mode 100644
index 0000000..a63caa8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AlgorithmSpec.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum AlgorithmSpec {
+    RSAES_PKCS1_V1_5("RSAES_PKCS1_V1_5"),
+
+    RSAES_OAEP_SHA_1("RSAES_OAEP_SHA_1"),
+
+    RSAES_OAEP_SHA_256("RSAES_OAEP_SHA_256"),
+
+    RSA_AES_KEY_WRAP_SHA_1("RSA_AES_KEY_WRAP_SHA_1"),
+
+    RSA_AES_KEY_WRAP_SHA_256("RSA_AES_KEY_WRAP_SHA_256"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, AlgorithmSpec> VALUE_MAP = EnumUtils.uniqueIndex(AlgorithmSpec.class,
+            AlgorithmSpec::toString);
+
+    private final String value;
+
+    private AlgorithmSpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return AlgorithmSpec corresponding to the value
+     */
+    public static AlgorithmSpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link AlgorithmSpec}s
+     */
+    public static Set<AlgorithmSpec> knownValues() {
+        Set<AlgorithmSpec> knownValues = EnumSet.allOf(AlgorithmSpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AliasListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AliasListCopier.java
new file mode 100644
index 0000000..54a3f22
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AliasListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class AliasListCopier {
+    static List<AliasListEntry> copy(Collection<? extends AliasListEntry> aliasListParam) {
+        List<AliasListEntry> list;
+        if (aliasListParam == null || aliasListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<AliasListEntry> modifiableList = new ArrayList<>();
+            aliasListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<AliasListEntry> copyFromBuilder(Collection<? extends AliasListEntry.Builder> aliasListParam) {
+        List<AliasListEntry> list;
+        if (aliasListParam == null || aliasListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<AliasListEntry> modifiableList = new ArrayList<>();
+            aliasListParam.forEach(entry -> {
+                AliasListEntry member = entry == null ? null : entry.build();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<AliasListEntry.Builder> copyToBuilder(Collection<? extends AliasListEntry> aliasListParam) {
+        List<AliasListEntry.Builder> list;
+        if (aliasListParam == null || aliasListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<AliasListEntry.Builder> modifiableList = new ArrayList<>();
+            aliasListParam.forEach(entry -> {
+                AliasListEntry.Builder member = entry == null ? null : entry.toBuilder();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AliasListEntry.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AliasListEntry.java
new file mode 100644
index 0000000..52fdd78
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AliasListEntry.java
@@ -0,0 +1,392 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Contains information about an alias.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class AliasListEntry implements SdkPojo, Serializable, ToCopyableBuilder<AliasListEntry.Builder, AliasListEntry> {
+    private static final SdkField<String> ALIAS_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AliasName").getter(getter(AliasListEntry::aliasName)).setter(setter(Builder::aliasName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AliasName").build()).build();
+
+    private static final SdkField<String> ALIAS_ARN_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AliasArn").getter(getter(AliasListEntry::aliasArn)).setter(setter(Builder::aliasArn))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AliasArn").build()).build();
+
+    private static final SdkField<String> TARGET_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("TargetKeyId").getter(getter(AliasListEntry::targetKeyId)).setter(setter(Builder::targetKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TargetKeyId").build()).build();
+
+    private static final SdkField<Instant> CREATION_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("CreationDate").getter(getter(AliasListEntry::creationDate)).setter(setter(Builder::creationDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationDate").build()).build();
+
+    private static final SdkField<Instant> LAST_UPDATED_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("LastUpdatedDate").getter(getter(AliasListEntry::lastUpdatedDate))
+            .setter(setter(Builder::lastUpdatedDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastUpdatedDate").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ALIAS_NAME_FIELD,
+            ALIAS_ARN_FIELD, TARGET_KEY_ID_FIELD, CREATION_DATE_FIELD, LAST_UPDATED_DATE_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String aliasName;
+
+    private final String aliasArn;
+
+    private final String targetKeyId;
+
+    private final Instant creationDate;
+
+    private final Instant lastUpdatedDate;
+
+    private AliasListEntry(BuilderImpl builder) {
+        this.aliasName = builder.aliasName;
+        this.aliasArn = builder.aliasArn;
+        this.targetKeyId = builder.targetKeyId;
+        this.creationDate = builder.creationDate;
+        this.lastUpdatedDate = builder.lastUpdatedDate;
+    }
+
+    /**
+     * <p>
+     * String that contains the alias. This value begins with <code>alias/</code>.
+     * </p>
+     * 
+     * @return String that contains the alias. This value begins with <code>alias/</code>.
+     */
+    public final String aliasName() {
+        return aliasName;
+    }
+
+    /**
+     * <p>
+     * String that contains the key ARN.
+     * </p>
+     * 
+     * @return String that contains the key ARN.
+     */
+    public final String aliasArn() {
+        return aliasArn;
+    }
+
+    /**
+     * <p>
+     * String that contains the key identifier of the KMS key associated with the alias.
+     * </p>
+     * 
+     * @return String that contains the key identifier of the KMS key associated with the alias.
+     */
+    public final String targetKeyId() {
+        return targetKeyId;
+    }
+
+    /**
+     * <p>
+     * Date and time that the alias was most recently created in the account and Region. Formatted as Unix time.
+     * </p>
+     * 
+     * @return Date and time that the alias was most recently created in the account and Region. Formatted as Unix time.
+     */
+    public final Instant creationDate() {
+        return creationDate;
+    }
+
+    /**
+     * <p>
+     * Date and time that the alias was most recently associated with a KMS key in the account and Region. Formatted as
+     * Unix time.
+     * </p>
+     * 
+     * @return Date and time that the alias was most recently associated with a KMS key in the account and Region.
+     *         Formatted as Unix time.
+     */
+    public final Instant lastUpdatedDate() {
+        return lastUpdatedDate;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(aliasName());
+        hashCode = 31 * hashCode + Objects.hashCode(aliasArn());
+        hashCode = 31 * hashCode + Objects.hashCode(targetKeyId());
+        hashCode = 31 * hashCode + Objects.hashCode(creationDate());
+        hashCode = 31 * hashCode + Objects.hashCode(lastUpdatedDate());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof AliasListEntry)) {
+            return false;
+        }
+        AliasListEntry other = (AliasListEntry) obj;
+        return Objects.equals(aliasName(), other.aliasName()) && Objects.equals(aliasArn(), other.aliasArn())
+                && Objects.equals(targetKeyId(), other.targetKeyId()) && Objects.equals(creationDate(), other.creationDate())
+                && Objects.equals(lastUpdatedDate(), other.lastUpdatedDate());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("AliasListEntry").add("AliasName", aliasName()).add("AliasArn", aliasArn())
+                .add("TargetKeyId", targetKeyId()).add("CreationDate", creationDate()).add("LastUpdatedDate", lastUpdatedDate())
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "AliasName":
+            return Optional.ofNullable(clazz.cast(aliasName()));
+        case "AliasArn":
+            return Optional.ofNullable(clazz.cast(aliasArn()));
+        case "TargetKeyId":
+            return Optional.ofNullable(clazz.cast(targetKeyId()));
+        case "CreationDate":
+            return Optional.ofNullable(clazz.cast(creationDate()));
+        case "LastUpdatedDate":
+            return Optional.ofNullable(clazz.cast(lastUpdatedDate()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<AliasListEntry, T> g) {
+        return obj -> g.apply((AliasListEntry) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, AliasListEntry> {
+        /**
+         * <p>
+         * String that contains the alias. This value begins with <code>alias/</code>.
+         * </p>
+         * 
+         * @param aliasName
+         *        String that contains the alias. This value begins with <code>alias/</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliasName(String aliasName);
+
+        /**
+         * <p>
+         * String that contains the key ARN.
+         * </p>
+         * 
+         * @param aliasArn
+         *        String that contains the key ARN.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliasArn(String aliasArn);
+
+        /**
+         * <p>
+         * String that contains the key identifier of the KMS key associated with the alias.
+         * </p>
+         * 
+         * @param targetKeyId
+         *        String that contains the key identifier of the KMS key associated with the alias.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder targetKeyId(String targetKeyId);
+
+        /**
+         * <p>
+         * Date and time that the alias was most recently created in the account and Region. Formatted as Unix time.
+         * </p>
+         * 
+         * @param creationDate
+         *        Date and time that the alias was most recently created in the account and Region. Formatted as Unix
+         *        time.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder creationDate(Instant creationDate);
+
+        /**
+         * <p>
+         * Date and time that the alias was most recently associated with a KMS key in the account and Region. Formatted
+         * as Unix time.
+         * </p>
+         * 
+         * @param lastUpdatedDate
+         *        Date and time that the alias was most recently associated with a KMS key in the account and Region.
+         *        Formatted as Unix time.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder lastUpdatedDate(Instant lastUpdatedDate);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String aliasName;
+
+        private String aliasArn;
+
+        private String targetKeyId;
+
+        private Instant creationDate;
+
+        private Instant lastUpdatedDate;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(AliasListEntry model) {
+            aliasName(model.aliasName);
+            aliasArn(model.aliasArn);
+            targetKeyId(model.targetKeyId);
+            creationDate(model.creationDate);
+            lastUpdatedDate(model.lastUpdatedDate);
+        }
+
+        public final String getAliasName() {
+            return aliasName;
+        }
+
+        public final void setAliasName(String aliasName) {
+            this.aliasName = aliasName;
+        }
+
+        @Override
+        public final Builder aliasName(String aliasName) {
+            this.aliasName = aliasName;
+            return this;
+        }
+
+        public final String getAliasArn() {
+            return aliasArn;
+        }
+
+        public final void setAliasArn(String aliasArn) {
+            this.aliasArn = aliasArn;
+        }
+
+        @Override
+        public final Builder aliasArn(String aliasArn) {
+            this.aliasArn = aliasArn;
+            return this;
+        }
+
+        public final String getTargetKeyId() {
+            return targetKeyId;
+        }
+
+        public final void setTargetKeyId(String targetKeyId) {
+            this.targetKeyId = targetKeyId;
+        }
+
+        @Override
+        public final Builder targetKeyId(String targetKeyId) {
+            this.targetKeyId = targetKeyId;
+            return this;
+        }
+
+        public final Instant getCreationDate() {
+            return creationDate;
+        }
+
+        public final void setCreationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+        }
+
+        @Override
+        public final Builder creationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+            return this;
+        }
+
+        public final Instant getLastUpdatedDate() {
+            return lastUpdatedDate;
+        }
+
+        public final void setLastUpdatedDate(Instant lastUpdatedDate) {
+            this.lastUpdatedDate = lastUpdatedDate;
+        }
+
+        @Override
+        public final Builder lastUpdatedDate(Instant lastUpdatedDate) {
+            this.lastUpdatedDate = lastUpdatedDate;
+            return this;
+        }
+
+        @Override
+        public AliasListEntry build() {
+            return new AliasListEntry(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AlreadyExistsException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AlreadyExistsException.java
new file mode 100644
index 0000000..6cb772a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/AlreadyExistsException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because it attempted to create a resource that already exists.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class AlreadyExistsException extends KmsException implements
+        ToCopyableBuilder<AlreadyExistsException.Builder, AlreadyExistsException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private AlreadyExistsException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, AlreadyExistsException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(AlreadyExistsException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public AlreadyExistsException build() {
+            return new AlreadyExistsException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CancelKeyDeletionRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CancelKeyDeletionRequest.java
new file mode 100644
index 0000000..c83d537
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CancelKeyDeletionRequest.java
@@ -0,0 +1,284 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CancelKeyDeletionRequest extends KmsRequest implements
+        ToCopyableBuilder<CancelKeyDeletionRequest.Builder, CancelKeyDeletionRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(CancelKeyDeletionRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private CancelKeyDeletionRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key whose deletion is being canceled.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key whose deletion is being canceled.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CancelKeyDeletionRequest)) {
+            return false;
+        }
+        CancelKeyDeletionRequest other = (CancelKeyDeletionRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CancelKeyDeletionRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CancelKeyDeletionRequest, T> g) {
+        return obj -> g.apply((CancelKeyDeletionRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, CancelKeyDeletionRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key whose deletion is being canceled.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key whose deletion is being canceled.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CancelKeyDeletionRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public CancelKeyDeletionRequest build() {
+            return new CancelKeyDeletionRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CancelKeyDeletionResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CancelKeyDeletionResponse.java
new file mode 100644
index 0000000..a479056
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CancelKeyDeletionResponse.java
@@ -0,0 +1,190 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CancelKeyDeletionResponse extends KmsResponse implements
+        ToCopyableBuilder<CancelKeyDeletionResponse.Builder, CancelKeyDeletionResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(CancelKeyDeletionResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private CancelKeyDeletionResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key whose deletion is canceled.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key whose deletion is canceled.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CancelKeyDeletionResponse)) {
+            return false;
+        }
+        CancelKeyDeletionResponse other = (CancelKeyDeletionResponse) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CancelKeyDeletionResponse").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CancelKeyDeletionResponse, T> g) {
+        return obj -> g.apply((CancelKeyDeletionResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, CancelKeyDeletionResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key whose deletion is canceled.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key whose deletion is canceled.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CancelKeyDeletionResponse model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public CancelKeyDeletionResponse build() {
+            return new CancelKeyDeletionResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterInUseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterInUseException.java
new file mode 100644
index 0000000..943179d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterInUseException.java
@@ -0,0 +1,142 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM key store in
+ * the account, or it shares a backup history with an CloudHSM key store in the account. Each CloudHSM key store in the
+ * account must be associated with a different CloudHSM cluster.
+ * </p>
+ * <p>
+ * CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of
+ * an CloudHSM cluster, use the <a
+ * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+ * operation.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CloudHsmClusterInUseException extends KmsException implements
+        ToCopyableBuilder<CloudHsmClusterInUseException.Builder, CloudHsmClusterInUseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CloudHsmClusterInUseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CloudHsmClusterInUseException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CloudHsmClusterInUseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CloudHsmClusterInUseException build() {
+            return new CloudHsmClusterInUseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterInvalidConfigurationException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterInvalidConfigurationException.java
new file mode 100644
index 0000000..96d649b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterInvalidConfigurationException.java
@@ -0,0 +1,176 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the associated CloudHSM cluster did not meet the configuration requirements for an
+ * CloudHSM key store.
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones in the
+ * Region.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for the
+ * cluster</a> (cloudhsm-cluster-<i>&lt;cluster-id&gt;</i>-sg) must include inbound rules and outbound rules that allow
+ * TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the <b>Destination</b> in the outbound
+ * rules must match the security group ID. These rules are set by default when you create the CloudHSM cluster. Do not
+ * delete or change them. To get information about a particular security group, use the <a
+ * href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
+ * >DescribeSecurityGroups</a> operation.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the CloudHSM <a
+ * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation.
+ * </p>
+ * <p>
+ * For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the CloudHSM
+ * cluster must have at least two active HSMs, each in a different Availability Zone. For the
+ * <a>ConnectCustomKeyStore</a> operation, the CloudHSM must contain at least one active HSM.
+ * </p>
+ * </li>
+ * </ul>
+ * <p>
+ * For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key store, see <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the
+ * Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information about creating a private
+ * subnet for an CloudHSM cluster, see <a
+ * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private Subnet</a> in the
+ * <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a
+ * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default Security Group</a>
+ * in the <i> <i>CloudHSM User Guide</i> </i>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CloudHsmClusterInvalidConfigurationException extends KmsException implements
+        ToCopyableBuilder<CloudHsmClusterInvalidConfigurationException.Builder, CloudHsmClusterInvalidConfigurationException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CloudHsmClusterInvalidConfigurationException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CloudHsmClusterInvalidConfigurationException>,
+            KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CloudHsmClusterInvalidConfigurationException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CloudHsmClusterInvalidConfigurationException build() {
+            return new CloudHsmClusterInvalidConfigurationException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotActiveException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotActiveException.java
new file mode 100644
index 0000000..a0255c6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotActiveException.java
@@ -0,0 +1,137 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not active.
+ * Initialize and activate the cluster and try the command again. For detailed instructions, see <a
+ * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in the
+ * <i>CloudHSM User Guide</i>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CloudHsmClusterNotActiveException extends KmsException implements
+        ToCopyableBuilder<CloudHsmClusterNotActiveException.Builder, CloudHsmClusterNotActiveException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CloudHsmClusterNotActiveException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CloudHsmClusterNotActiveException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CloudHsmClusterNotActiveException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CloudHsmClusterNotActiveException build() {
+            return new CloudHsmClusterNotActiveException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotFoundException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotFoundException.java
new file mode 100644
index 0000000..ddeb49b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotFoundException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID. Retry the
+ * request with a different cluster ID.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CloudHsmClusterNotFoundException extends KmsException implements
+        ToCopyableBuilder<CloudHsmClusterNotFoundException.Builder, CloudHsmClusterNotFoundException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CloudHsmClusterNotFoundException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CloudHsmClusterNotFoundException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CloudHsmClusterNotFoundException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CloudHsmClusterNotFoundException build() {
+            return new CloudHsmClusterNotFoundException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotRelatedException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotRelatedException.java
new file mode 100644
index 0000000..91d527e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CloudHsmClusterNotRelatedException.java
@@ -0,0 +1,146 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified CloudHSM cluster has a different cluster certificate than the original
+ * cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key store.
+ * </p>
+ * <p>
+ * Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes clusters that were
+ * created from a backup of the current cluster, and clusters that were created from the same backup that produced the
+ * current cluster.
+ * </p>
+ * <p>
+ * CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of
+ * an CloudHSM cluster, use the <a
+ * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+ * operation.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CloudHsmClusterNotRelatedException extends KmsException implements
+        ToCopyableBuilder<CloudHsmClusterNotRelatedException.Builder, CloudHsmClusterNotRelatedException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CloudHsmClusterNotRelatedException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CloudHsmClusterNotRelatedException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CloudHsmClusterNotRelatedException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CloudHsmClusterNotRelatedException build() {
+            return new CloudHsmClusterNotRelatedException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectCustomKeyStoreRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectCustomKeyStoreRequest.java
new file mode 100644
index 0000000..2114c2f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectCustomKeyStoreRequest.java
@@ -0,0 +1,207 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ConnectCustomKeyStoreRequest extends KmsRequest implements
+        ToCopyableBuilder<ConnectCustomKeyStoreRequest.Builder, ConnectCustomKeyStoreRequest> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(ConnectCustomKeyStoreRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD));
+
+    private final String customKeyStoreId;
+
+    private ConnectCustomKeyStoreRequest(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreId = builder.customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key store,
+     * use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * 
+     * @return Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key
+     *         store, use the <a>DescribeCustomKeyStores</a> operation.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ConnectCustomKeyStoreRequest)) {
+            return false;
+        }
+        ConnectCustomKeyStoreRequest other = (ConnectCustomKeyStoreRequest) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ConnectCustomKeyStoreRequest").add("CustomKeyStoreId", customKeyStoreId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ConnectCustomKeyStoreRequest, T> g) {
+        return obj -> g.apply((ConnectCustomKeyStoreRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ConnectCustomKeyStoreRequest> {
+        /**
+         * <p>
+         * Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key
+         * store, use the <a>DescribeCustomKeyStores</a> operation.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom
+         *        key store, use the <a>DescribeCustomKeyStores</a> operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ConnectCustomKeyStoreRequest model) {
+            super(model);
+            customKeyStoreId(model.customKeyStoreId);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ConnectCustomKeyStoreRequest build() {
+            return new ConnectCustomKeyStoreRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectCustomKeyStoreResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectCustomKeyStoreResponse.java
new file mode 100644
index 0000000..9897cea
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectCustomKeyStoreResponse.java
@@ -0,0 +1,116 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ConnectCustomKeyStoreResponse extends KmsResponse implements
+        ToCopyableBuilder<ConnectCustomKeyStoreResponse.Builder, ConnectCustomKeyStoreResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private ConnectCustomKeyStoreResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ConnectCustomKeyStoreResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ConnectCustomKeyStoreResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ConnectCustomKeyStoreResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ConnectCustomKeyStoreResponse model) {
+            super(model);
+        }
+
+        @Override
+        public ConnectCustomKeyStoreResponse build() {
+            return new ConnectCustomKeyStoreResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectionErrorCodeType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectionErrorCodeType.java
new file mode 100644
index 0000000..31db135
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectionErrorCodeType.java
@@ -0,0 +1,101 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum ConnectionErrorCodeType {
+    INVALID_CREDENTIALS("INVALID_CREDENTIALS"),
+
+    CLUSTER_NOT_FOUND("CLUSTER_NOT_FOUND"),
+
+    NETWORK_ERRORS("NETWORK_ERRORS"),
+
+    INTERNAL_ERROR("INTERNAL_ERROR"),
+
+    INSUFFICIENT_CLOUDHSM_HSMS("INSUFFICIENT_CLOUDHSM_HSMS"),
+
+    USER_LOCKED_OUT("USER_LOCKED_OUT"),
+
+    USER_NOT_FOUND("USER_NOT_FOUND"),
+
+    USER_LOGGED_IN("USER_LOGGED_IN"),
+
+    SUBNET_NOT_FOUND("SUBNET_NOT_FOUND"),
+
+    INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET("INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET"),
+
+    XKS_PROXY_ACCESS_DENIED("XKS_PROXY_ACCESS_DENIED"),
+
+    XKS_PROXY_NOT_REACHABLE("XKS_PROXY_NOT_REACHABLE"),
+
+    XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND("XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND"),
+
+    XKS_PROXY_INVALID_RESPONSE("XKS_PROXY_INVALID_RESPONSE"),
+
+    XKS_PROXY_INVALID_CONFIGURATION("XKS_PROXY_INVALID_CONFIGURATION"),
+
+    XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION("XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION"),
+
+    XKS_PROXY_TIMED_OUT("XKS_PROXY_TIMED_OUT"),
+
+    XKS_PROXY_INVALID_TLS_CONFIGURATION("XKS_PROXY_INVALID_TLS_CONFIGURATION"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, ConnectionErrorCodeType> VALUE_MAP = EnumUtils.uniqueIndex(ConnectionErrorCodeType.class,
+            ConnectionErrorCodeType::toString);
+
+    private final String value;
+
+    private ConnectionErrorCodeType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return ConnectionErrorCodeType corresponding to the value
+     */
+    public static ConnectionErrorCodeType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link ConnectionErrorCodeType}s
+     */
+    public static Set<ConnectionErrorCodeType> knownValues() {
+        Set<ConnectionErrorCodeType> knownValues = EnumSet.allOf(ConnectionErrorCodeType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectionStateType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectionStateType.java
new file mode 100644
index 0000000..ccbb5c5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ConnectionStateType.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum ConnectionStateType {
+    CONNECTED("CONNECTED"),
+
+    CONNECTING("CONNECTING"),
+
+    FAILED("FAILED"),
+
+    DISCONNECTED("DISCONNECTED"),
+
+    DISCONNECTING("DISCONNECTING"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, ConnectionStateType> VALUE_MAP = EnumUtils.uniqueIndex(ConnectionStateType.class,
+            ConnectionStateType::toString);
+
+    private final String value;
+
+    private ConnectionStateType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return ConnectionStateType corresponding to the value
+     */
+    public static ConnectionStateType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link ConnectionStateType}s
+     */
+    public static Set<ConnectionStateType> knownValues() {
+        Set<ConnectionStateType> knownValues = EnumSet.allOf(ConnectionStateType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateAliasRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateAliasRequest.java
new file mode 100644
index 0000000..86ba981
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateAliasRequest.java
@@ -0,0 +1,427 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateAliasRequest extends KmsRequest implements
+        ToCopyableBuilder<CreateAliasRequest.Builder, CreateAliasRequest> {
+    private static final SdkField<String> ALIAS_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AliasName").getter(getter(CreateAliasRequest::aliasName)).setter(setter(Builder::aliasName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AliasName").build()).build();
+
+    private static final SdkField<String> TARGET_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("TargetKeyId").getter(getter(CreateAliasRequest::targetKeyId)).setter(setter(Builder::targetKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TargetKeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ALIAS_NAME_FIELD,
+            TARGET_KEY_ID_FIELD));
+
+    private final String aliasName;
+
+    private final String targetKeyId;
+
+    private CreateAliasRequest(BuilderImpl builder) {
+        super(builder);
+        this.aliasName = builder.aliasName;
+        this.targetKeyId = builder.targetKeyId;
+    }
+
+    /**
+     * <p>
+     * Specifies the alias name. This value must begin with <code>alias/</code> followed by a name, such as
+     * <code>alias/ExampleAlias</code>.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * The <code>AliasName</code> value must be string of 1-256 characters. It can contain only alphanumeric characters,
+     * forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with <code>alias/aws/</code>.
+     * The <code>alias/aws/</code> prefix is reserved for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed keys</a>.
+     * </p>
+     * 
+     * @return Specifies the alias name. This value must begin with <code>alias/</code> followed by a name, such as
+     *         <code>alias/ExampleAlias</code>. </p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         The <code>AliasName</code> value must be string of 1-256 characters. It can contain only alphanumeric
+     *         characters, forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with
+     *         <code>alias/aws/</code>. The <code>alias/aws/</code> prefix is reserved for <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     *         Services managed keys</a>.
+     */
+    public final String aliasName() {
+        return aliasName;
+    }
+
+    /**
+     * <p>
+     * Associates the alias with the specified <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.
+     * The KMS key must be in the same Amazon Web Services Region.
+     * </p>
+     * <p>
+     * A valid key ID is required. If you supply a null or empty string value, this operation returns an error.
+     * </p>
+     * <p>
+     * For help finding the key ID and ARN, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn">Finding the Key ID
+     * and ARN</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Associates the alias with the specified <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed
+     *         key</a>. The KMS key must be in the same Amazon Web Services Region. </p>
+     *         <p>
+     *         A valid key ID is required. If you supply a null or empty string value, this operation returns an error.
+     *         </p>
+     *         <p>
+     *         For help finding the key ID and ARN, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn">Finding
+     *         the Key ID and ARN</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String targetKeyId() {
+        return targetKeyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(aliasName());
+        hashCode = 31 * hashCode + Objects.hashCode(targetKeyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateAliasRequest)) {
+            return false;
+        }
+        CreateAliasRequest other = (CreateAliasRequest) obj;
+        return Objects.equals(aliasName(), other.aliasName()) && Objects.equals(targetKeyId(), other.targetKeyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateAliasRequest").add("AliasName", aliasName()).add("TargetKeyId", targetKeyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "AliasName":
+            return Optional.ofNullable(clazz.cast(aliasName()));
+        case "TargetKeyId":
+            return Optional.ofNullable(clazz.cast(targetKeyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateAliasRequest, T> g) {
+        return obj -> g.apply((CreateAliasRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, CreateAliasRequest> {
+        /**
+         * <p>
+         * Specifies the alias name. This value must begin with <code>alias/</code> followed by a name, such as
+         * <code>alias/ExampleAlias</code>.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * The <code>AliasName</code> value must be string of 1-256 characters. It can contain only alphanumeric
+         * characters, forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with
+         * <code>alias/aws/</code>. The <code>alias/aws/</code> prefix is reserved for <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+         * Services managed keys</a>.
+         * </p>
+         * 
+         * @param aliasName
+         *        Specifies the alias name. This value must begin with <code>alias/</code> followed by a name, such as
+         *        <code>alias/ExampleAlias</code>. </p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        The <code>AliasName</code> value must be string of 1-256 characters. It can contain only alphanumeric
+         *        characters, forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with
+         *        <code>alias/aws/</code>. The <code>alias/aws/</code> prefix is reserved for <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+         *        Services managed keys</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliasName(String aliasName);
+
+        /**
+         * <p>
+         * Associates the alias with the specified <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed
+         * key</a>. The KMS key must be in the same Amazon Web Services Region.
+         * </p>
+         * <p>
+         * A valid key ID is required. If you supply a null or empty string value, this operation returns an error.
+         * </p>
+         * <p>
+         * For help finding the key ID and ARN, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn">Finding the
+         * Key ID and ARN</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param targetKeyId
+         *        Associates the alias with the specified <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer
+         *        managed key</a>. The KMS key must be in the same Amazon Web Services Region. </p>
+         *        <p>
+         *        A valid key ID is required. If you supply a null or empty string value, this operation returns an
+         *        error.
+         *        </p>
+         *        <p>
+         *        For help finding the key ID and ARN, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn">Finding
+         *        the Key ID and ARN</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         *        </p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder targetKeyId(String targetKeyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String aliasName;
+
+        private String targetKeyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateAliasRequest model) {
+            super(model);
+            aliasName(model.aliasName);
+            targetKeyId(model.targetKeyId);
+        }
+
+        public final String getAliasName() {
+            return aliasName;
+        }
+
+        public final void setAliasName(String aliasName) {
+            this.aliasName = aliasName;
+        }
+
+        @Override
+        public final Builder aliasName(String aliasName) {
+            this.aliasName = aliasName;
+            return this;
+        }
+
+        public final String getTargetKeyId() {
+            return targetKeyId;
+        }
+
+        public final void setTargetKeyId(String targetKeyId) {
+            this.targetKeyId = targetKeyId;
+        }
+
+        @Override
+        public final Builder targetKeyId(String targetKeyId) {
+            this.targetKeyId = targetKeyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public CreateAliasRequest build() {
+            return new CreateAliasRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateAliasResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateAliasResponse.java
new file mode 100644
index 0000000..05a01f0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateAliasResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateAliasResponse extends KmsResponse implements
+        ToCopyableBuilder<CreateAliasResponse.Builder, CreateAliasResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private CreateAliasResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateAliasResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateAliasResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, CreateAliasResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateAliasResponse model) {
+            super(model);
+        }
+
+        @Override
+        public CreateAliasResponse build() {
+            return new CreateAliasResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateCustomKeyStoreRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateCustomKeyStoreRequest.java
new file mode 100644
index 0000000..29e8d52
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateCustomKeyStoreRequest.java
@@ -0,0 +1,1522 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateCustomKeyStoreRequest extends KmsRequest implements
+        ToCopyableBuilder<CreateCustomKeyStoreRequest.Builder, CreateCustomKeyStoreRequest> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreName").getter(getter(CreateCustomKeyStoreRequest::customKeyStoreName))
+            .setter(setter(Builder::customKeyStoreName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreName").build())
+            .build();
+
+    private static final SdkField<String> CLOUD_HSM_CLUSTER_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CloudHsmClusterId").getter(getter(CreateCustomKeyStoreRequest::cloudHsmClusterId))
+            .setter(setter(Builder::cloudHsmClusterId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CloudHsmClusterId").build()).build();
+
+    private static final SdkField<String> TRUST_ANCHOR_CERTIFICATE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("TrustAnchorCertificate").getter(getter(CreateCustomKeyStoreRequest::trustAnchorCertificate))
+            .setter(setter(Builder::trustAnchorCertificate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TrustAnchorCertificate").build())
+            .build();
+
+    private static final SdkField<String> KEY_STORE_PASSWORD_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyStorePassword").getter(getter(CreateCustomKeyStoreRequest::keyStorePassword))
+            .setter(setter(Builder::keyStorePassword))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyStorePassword").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_TYPE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreType").getter(getter(CreateCustomKeyStoreRequest::customKeyStoreTypeAsString))
+            .setter(setter(Builder::customKeyStoreType))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreType").build())
+            .build();
+
+    private static final SdkField<String> XKS_PROXY_URI_ENDPOINT_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyUriEndpoint").getter(getter(CreateCustomKeyStoreRequest::xksProxyUriEndpoint))
+            .setter(setter(Builder::xksProxyUriEndpoint))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyUriEndpoint").build())
+            .build();
+
+    private static final SdkField<String> XKS_PROXY_URI_PATH_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyUriPath").getter(getter(CreateCustomKeyStoreRequest::xksProxyUriPath))
+            .setter(setter(Builder::xksProxyUriPath))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyUriPath").build()).build();
+
+    private static final SdkField<String> XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME_FIELD = SdkField
+            .<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyVpcEndpointServiceName")
+            .getter(getter(CreateCustomKeyStoreRequest::xksProxyVpcEndpointServiceName))
+            .setter(setter(Builder::xksProxyVpcEndpointServiceName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyVpcEndpointServiceName")
+                    .build()).build();
+
+    private static final SdkField<XksProxyAuthenticationCredentialType> XKS_PROXY_AUTHENTICATION_CREDENTIAL_FIELD = SdkField
+            .<XksProxyAuthenticationCredentialType> builder(MarshallingType.SDK_POJO)
+            .memberName("XksProxyAuthenticationCredential")
+            .getter(getter(CreateCustomKeyStoreRequest::xksProxyAuthenticationCredential))
+            .setter(setter(Builder::xksProxyAuthenticationCredential))
+            .constructor(XksProxyAuthenticationCredentialType::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyAuthenticationCredential")
+                    .build()).build();
+
+    private static final SdkField<String> XKS_PROXY_CONNECTIVITY_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyConnectivity").getter(getter(CreateCustomKeyStoreRequest::xksProxyConnectivityAsString))
+            .setter(setter(Builder::xksProxyConnectivity))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyConnectivity").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_NAME_FIELD,
+            CLOUD_HSM_CLUSTER_ID_FIELD, TRUST_ANCHOR_CERTIFICATE_FIELD, KEY_STORE_PASSWORD_FIELD, CUSTOM_KEY_STORE_TYPE_FIELD,
+            XKS_PROXY_URI_ENDPOINT_FIELD, XKS_PROXY_URI_PATH_FIELD, XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME_FIELD,
+            XKS_PROXY_AUTHENTICATION_CREDENTIAL_FIELD, XKS_PROXY_CONNECTIVITY_FIELD));
+
+    private final String customKeyStoreName;
+
+    private final String cloudHsmClusterId;
+
+    private final String trustAnchorCertificate;
+
+    private final String keyStorePassword;
+
+    private final String customKeyStoreType;
+
+    private final String xksProxyUriEndpoint;
+
+    private final String xksProxyUriPath;
+
+    private final String xksProxyVpcEndpointServiceName;
+
+    private final XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential;
+
+    private final String xksProxyConnectivity;
+
+    private CreateCustomKeyStoreRequest(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreName = builder.customKeyStoreName;
+        this.cloudHsmClusterId = builder.cloudHsmClusterId;
+        this.trustAnchorCertificate = builder.trustAnchorCertificate;
+        this.keyStorePassword = builder.keyStorePassword;
+        this.customKeyStoreType = builder.customKeyStoreType;
+        this.xksProxyUriEndpoint = builder.xksProxyUriEndpoint;
+        this.xksProxyUriPath = builder.xksProxyUriPath;
+        this.xksProxyVpcEndpointServiceName = builder.xksProxyVpcEndpointServiceName;
+        this.xksProxyAuthenticationCredential = builder.xksProxyAuthenticationCredential;
+        this.xksProxyConnectivity = builder.xksProxyConnectivity;
+    }
+
+    /**
+     * <p>
+     * Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account
+     * and Region. This parameter is required for all custom key stores.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * 
+     * @return Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services
+     *         account and Region. This parameter is required for all custom key stores.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     */
+    public final String customKeyStoreName() {
+        return customKeyStoreName;
+    }
+
+    /**
+     * <p>
+     * Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key stores with
+     * <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key store. To
+     * find the cluster ID, use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation.
+     * </p>
+     * 
+     * @return Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key
+     *         stores with <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key
+     *         store. To find the cluster ID, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     */
+    public final String cloudHsmClusterId() {
+        return cloudHsmClusterId;
+    }
+
+    /**
+     * <p>
+     * Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores with a
+     * <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the
+     * <code>customerCA.crt</code> file that you created when you <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html">initialized the cluster</a>.
+     * </p>
+     * 
+     * @return Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores
+     *         with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the
+     *         <code>customerCA.crt</code> file that you created when you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html">initialized the
+     *         cluster</a>.
+     */
+    public final String trustAnchorCertificate() {
+        return trustAnchorCertificate;
+    }
+
+    /**
+     * <p>
+     * Specifies the <code>kmsuser</code> password for an CloudHSM key store. This parameter is required for custom key
+     * stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * Enter the password of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     * <code>kmsuser</code> crypto user (CU) account</a> in the specified CloudHSM cluster. KMS logs into the cluster as
+     * this user to manage key material on your behalf.
+     * </p>
+     * <p>
+     * The password must be a string of 7 to 32 characters. Its value is case sensitive.
+     * </p>
+     * <p>
+     * This parameter tells KMS the <code>kmsuser</code> account password; it does not change the password in the
+     * CloudHSM cluster.
+     * </p>
+     * 
+     * @return Specifies the <code>kmsuser</code> password for an CloudHSM key store. This parameter is required for
+     *         custom key stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         Enter the password of the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+     *         <code>kmsuser</code> crypto user (CU) account</a> in the specified CloudHSM cluster. KMS logs into the
+     *         cluster as this user to manage key material on your behalf.
+     *         </p>
+     *         <p>
+     *         The password must be a string of 7 to 32 characters. Its value is case sensitive.
+     *         </p>
+     *         <p>
+     *         This parameter tells KMS the <code>kmsuser</code> account password; it does not change the password in
+     *         the CloudHSM cluster.
+     */
+    public final String keyStorePassword() {
+        return keyStorePassword;
+    }
+
+    /**
+     * <p>
+     * Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * For a custom key store backed by an CloudHSM cluster, omit the parameter or enter <code>AWS_CLOUDHSM</code>. For
+     * a custom key store backed by an external key manager outside of Amazon Web Services, enter
+     * <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key store is created.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customKeyStoreType} will return {@link CustomKeyStoreType#UNKNOWN_TO_SDK_VERSION}. The raw value returned
+     * by the service is available from {@link #customKeyStoreTypeAsString}.
+     * </p>
+     * 
+     * @return Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         For a custom key store backed by an CloudHSM cluster, omit the parameter or enter
+     *         <code>AWS_CLOUDHSM</code>. For a custom key store backed by an external key manager outside of Amazon Web
+     *         Services, enter <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key store is
+     *         created.
+     * @see CustomKeyStoreType
+     */
+    public final CustomKeyStoreType customKeyStoreType() {
+        return CustomKeyStoreType.fromValue(customKeyStoreType);
+    }
+
+    /**
+     * <p>
+     * Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * For a custom key store backed by an CloudHSM cluster, omit the parameter or enter <code>AWS_CLOUDHSM</code>. For
+     * a custom key store backed by an external key manager outside of Amazon Web Services, enter
+     * <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key store is created.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customKeyStoreType} will return {@link CustomKeyStoreType#UNKNOWN_TO_SDK_VERSION}. The raw value returned
+     * by the service is available from {@link #customKeyStoreTypeAsString}.
+     * </p>
+     * 
+     * @return Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         For a custom key store backed by an CloudHSM cluster, omit the parameter or enter
+     *         <code>AWS_CLOUDHSM</code>. For a custom key store backed by an external key manager outside of Amazon Web
+     *         Services, enter <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key store is
+     *         created.
+     * @see CustomKeyStoreType
+     */
+    public final String customKeyStoreTypeAsString() {
+        return customKeyStoreType;
+    }
+
+    /**
+     * <p>
+     * Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This parameter
+     * is required for custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the
+     * <code>XksProxyUriEndpoint</code> value.
+     * </p>
+     * <p>
+     * For external key stores with <code>XksProxyConnectivity</code> value of <code>VPC_ENDPOINT_SERVICE</code>,
+     * specify <code>https://</code> followed by the private DNS name of the VPC endpoint service.
+     * </p>
+     * <p>
+     * For external key stores with <code>PUBLIC_ENDPOINT</code> connectivity, this endpoint must be reachable before
+     * you create the custom key store. KMS connects to the external key store proxy while creating the custom key
+     * store. For external key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity, KMS connects when you call
+     * the <a>ConnectCustomKeyStore</a> operation.
+     * </p>
+     * <p>
+     * The value of this parameter must begin with <code>https://</code>. The remainder can contain upper and lower case
+     * letters (A-Z and a-z), numbers (0-9), dots (<code>.</code>), and hyphens (<code>-</code>). Additional slashes (
+     * <code>/</code> and <code>\</code>) are not permitted.
+     * </p>
+     * <p>
+     * <b>Uniqueness requirements: </b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+     * Amazon Web Services account and Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * An external key store with <code>PUBLIC_ENDPOINT</code> connectivity cannot use the same
+     * <code>XksProxyUriEndpoint</code> value as an external key store with <code>VPC_ENDPOINT_SERVICE</code>
+     * connectivity in this Amazon Web Services Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Each external key store with <code>VPC_ENDPOINT_SERVICE</code> connectivity must have its own private DNS name.
+     * The <code>XksProxyUriEndpoint</code> value for external key stores with <code>VPC_ENDPOINT_SERVICE</code>
+     * connectivity (private DNS name) must be unique in the Amazon Web Services account and Region.
+     * </p>
+     * </li>
+     * </ul>
+     * 
+     * @return Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This
+     *         parameter is required for custom key stores with a <code>CustomKeyStoreType</code> of
+     *         <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the
+     *         <code>XksProxyUriEndpoint</code> value.
+     *         </p>
+     *         <p>
+     *         For external key stores with <code>XksProxyConnectivity</code> value of <code>VPC_ENDPOINT_SERVICE</code>
+     *         , specify <code>https://</code> followed by the private DNS name of the VPC endpoint service.
+     *         </p>
+     *         <p>
+     *         For external key stores with <code>PUBLIC_ENDPOINT</code> connectivity, this endpoint must be reachable
+     *         before you create the custom key store. KMS connects to the external key store proxy while creating the
+     *         custom key store. For external key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity, KMS
+     *         connects when you call the <a>ConnectCustomKeyStore</a> operation.
+     *         </p>
+     *         <p>
+     *         The value of this parameter must begin with <code>https://</code>. The remainder can contain upper and
+     *         lower case letters (A-Z and a-z), numbers (0-9), dots (<code>.</code>), and hyphens (<code>-</code>).
+     *         Additional slashes (<code>/</code> and <code>\</code>) are not permitted.
+     *         </p>
+     *         <p>
+     *         <b>Uniqueness requirements: </b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in
+     *         the Amazon Web Services account and Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         An external key store with <code>PUBLIC_ENDPOINT</code> connectivity cannot use the same
+     *         <code>XksProxyUriEndpoint</code> value as an external key store with <code>VPC_ENDPOINT_SERVICE</code>
+     *         connectivity in this Amazon Web Services Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Each external key store with <code>VPC_ENDPOINT_SERVICE</code> connectivity must have its own private DNS
+     *         name. The <code>XksProxyUriEndpoint</code> value for external key stores with
+     *         <code>VPC_ENDPOINT_SERVICE</code> connectivity (private DNS name) must be unique in the Amazon Web
+     *         Services account and Region.
+     *         </p>
+     *         </li>
+     */
+    public final String xksProxyUriEndpoint() {
+        return xksProxyUriEndpoint;
+    }
+
+    /**
+     * <p>
+     * Specifies the base path to the proxy APIs for this external key store. To find this value, see the documentation
+     * for your external key store proxy. This parameter is required for all custom key stores with a
+     * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code> where <code>v1</code>
+     * represents the version of the KMS external key store proxy API. This path can include an optional prefix between
+     * the required elements such as <code>/<i>prefix</i>/kms/xks/v1</code>.
+     * </p>
+     * <p>
+     * <b>Uniqueness requirements: </b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+     * Amazon Web Services account and Region.
+     * </p>
+     * </li>
+     * </ul>
+     * 
+     * @return Specifies the base path to the proxy APIs for this external key store. To find this value, see the
+     *         documentation for your external key store proxy. This parameter is required for all custom key stores
+     *         with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code> where <code>v1</code>
+     *         represents the version of the KMS external key store proxy API. This path can include an optional prefix
+     *         between the required elements such as <code>/<i>prefix</i>/kms/xks/v1</code>.
+     *         </p>
+     *         <p>
+     *         <b>Uniqueness requirements: </b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in
+     *         the Amazon Web Services account and Region.
+     *         </p>
+     *         </li>
+     */
+    public final String xksProxyUriPath() {
+        return xksProxyUriPath;
+    }
+
+    /**
+     * <p>
+     * Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with
+     * your external key store proxy (XKS proxy). This parameter is required when the value of
+     * <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code> and the value of
+     * <code>XksProxyConnectivity</code> is <code>VPC_ENDPOINT_SERVICE</code>.
+     * </p>
+     * <p>
+     * The Amazon VPC endpoint service must <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements">fulfill
+     * all requirements</a> for use with an external key store.
+     * </p>
+     * <p>
+     * <b>Uniqueness requirements:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * External key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity can share an Amazon VPC, but each
+     * external key store must have its own VPC endpoint service and private DNS name.
+     * </p>
+     * </li>
+     * </ul>
+     * 
+     * @return Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate
+     *         with your external key store proxy (XKS proxy). This parameter is required when the value of
+     *         <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code> and the value of
+     *         <code>XksProxyConnectivity</code> is <code>VPC_ENDPOINT_SERVICE</code>.</p>
+     *         <p>
+     *         The Amazon VPC endpoint service must <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements"
+     *         >fulfill all requirements</a> for use with an external key store.
+     *         </p>
+     *         <p>
+     *         <b>Uniqueness requirements:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         External key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity can share an Amazon VPC, but each
+     *         external key store must have its own VPC endpoint service and private DNS name.
+     *         </p>
+     *         </li>
+     */
+    public final String xksProxyVpcEndpointServiceName() {
+        return xksProxyVpcEndpointServiceName;
+    }
+
+    /**
+     * <p>
+     * Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is required
+     * for all custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * The <code>XksProxyAuthenticationCredential</code> has two required elements: <code>RawSecretAccessKey</code>, a
+     * secret key, and <code>AccessKeyId</code>, a unique identifier for the <code>RawSecretAccessKey</code>. For
+     * character requirements, see <a href="kms/latest/APIReference/API_XksProxyAuthenticationCredentialType.html">
+     * XksProxyAuthenticationCredentialType</a>.
+     * </p>
+     * <p>
+     * KMS uses this authentication credential to sign requests to the external key store proxy on your behalf. This
+     * credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
+     * </p>
+     * <p>
+     * This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS the
+     * credential that you established on your external key store proxy. If you rotate your proxy authentication
+     * credential, use the <a>UpdateCustomKeyStore</a> operation to provide the new credential to KMS.
+     * </p>
+     * 
+     * @return Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is
+     *         required for all custom key stores with a <code>CustomKeyStoreType</code> of
+     *         <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         The <code>XksProxyAuthenticationCredential</code> has two required elements:
+     *         <code>RawSecretAccessKey</code>, a secret key, and <code>AccessKeyId</code>, a unique identifier for the
+     *         <code>RawSecretAccessKey</code>. For character requirements, see <a
+     *         href="kms/latest/APIReference/API_XksProxyAuthenticationCredentialType.html"
+     *         >XksProxyAuthenticationCredentialType</a>.
+     *         </p>
+     *         <p>
+     *         KMS uses this authentication credential to sign requests to the external key store proxy on your behalf.
+     *         This credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
+     *         </p>
+     *         <p>
+     *         This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS
+     *         the credential that you established on your external key store proxy. If you rotate your proxy
+     *         authentication credential, use the <a>UpdateCustomKeyStore</a> operation to provide the new credential to
+     *         KMS.
+     */
+    public final XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential() {
+        return xksProxyAuthenticationCredential;
+    }
+
+    /**
+     * <p>
+     * Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key
+     * stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the external key
+     * store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+     * <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+     * >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within
+     * Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple
+     * subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint is
+     * simpler to set up, but it might be slower and might not fulfill your security requirements. You might consider
+     * testing with a public endpoint, and then establishing a VPC endpoint service for production tasks. Note that this
+     * choice does not determine the location of the external key store proxy. Even if you choose a VPC endpoint
+     * service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in your corporate data
+     * center.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #xksProxyConnectivity} will return {@link XksProxyConnectivityType#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #xksProxyConnectivityAsString}.
+     * </p>
+     * 
+     * @return Indicates how KMS communicates with the external key store proxy. This parameter is required for custom
+     *         key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the
+     *         external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+     *         <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+     *         >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely
+     *         within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with
+     *         multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A
+     *         public endpoint is simpler to set up, but it might be slower and might not fulfill your security
+     *         requirements. You might consider testing with a public endpoint, and then establishing a VPC endpoint
+     *         service for production tasks. Note that this choice does not determine the location of the external key
+     *         store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within the VPC or outside
+     *         of Amazon Web Services such as in your corporate data center.
+     * @see XksProxyConnectivityType
+     */
+    public final XksProxyConnectivityType xksProxyConnectivity() {
+        return XksProxyConnectivityType.fromValue(xksProxyConnectivity);
+    }
+
+    /**
+     * <p>
+     * Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key
+     * stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the external key
+     * store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+     * <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+     * >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within
+     * Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple
+     * subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint is
+     * simpler to set up, but it might be slower and might not fulfill your security requirements. You might consider
+     * testing with a public endpoint, and then establishing a VPC endpoint service for production tasks. Note that this
+     * choice does not determine the location of the external key store proxy. Even if you choose a VPC endpoint
+     * service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in your corporate data
+     * center.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #xksProxyConnectivity} will return {@link XksProxyConnectivityType#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #xksProxyConnectivityAsString}.
+     * </p>
+     * 
+     * @return Indicates how KMS communicates with the external key store proxy. This parameter is required for custom
+     *         key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the
+     *         external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+     *         <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+     *         >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely
+     *         within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with
+     *         multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A
+     *         public endpoint is simpler to set up, but it might be slower and might not fulfill your security
+     *         requirements. You might consider testing with a public endpoint, and then establishing a VPC endpoint
+     *         service for production tasks. Note that this choice does not determine the location of the external key
+     *         store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within the VPC or outside
+     *         of Amazon Web Services such as in your corporate data center.
+     * @see XksProxyConnectivityType
+     */
+    public final String xksProxyConnectivityAsString() {
+        return xksProxyConnectivity;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreName());
+        hashCode = 31 * hashCode + Objects.hashCode(cloudHsmClusterId());
+        hashCode = 31 * hashCode + Objects.hashCode(trustAnchorCertificate());
+        hashCode = 31 * hashCode + Objects.hashCode(keyStorePassword());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreTypeAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyUriEndpoint());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyUriPath());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyVpcEndpointServiceName());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyAuthenticationCredential());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyConnectivityAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateCustomKeyStoreRequest)) {
+            return false;
+        }
+        CreateCustomKeyStoreRequest other = (CreateCustomKeyStoreRequest) obj;
+        return Objects.equals(customKeyStoreName(), other.customKeyStoreName())
+                && Objects.equals(cloudHsmClusterId(), other.cloudHsmClusterId())
+                && Objects.equals(trustAnchorCertificate(), other.trustAnchorCertificate())
+                && Objects.equals(keyStorePassword(), other.keyStorePassword())
+                && Objects.equals(customKeyStoreTypeAsString(), other.customKeyStoreTypeAsString())
+                && Objects.equals(xksProxyUriEndpoint(), other.xksProxyUriEndpoint())
+                && Objects.equals(xksProxyUriPath(), other.xksProxyUriPath())
+                && Objects.equals(xksProxyVpcEndpointServiceName(), other.xksProxyVpcEndpointServiceName())
+                && Objects.equals(xksProxyAuthenticationCredential(), other.xksProxyAuthenticationCredential())
+                && Objects.equals(xksProxyConnectivityAsString(), other.xksProxyConnectivityAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateCustomKeyStoreRequest").add("CustomKeyStoreName", customKeyStoreName())
+                .add("CloudHsmClusterId", cloudHsmClusterId()).add("TrustAnchorCertificate", trustAnchorCertificate())
+                .add("KeyStorePassword", keyStorePassword() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("CustomKeyStoreType", customKeyStoreTypeAsString()).add("XksProxyUriEndpoint", xksProxyUriEndpoint())
+                .add("XksProxyUriPath", xksProxyUriPath())
+                .add("XksProxyVpcEndpointServiceName", xksProxyVpcEndpointServiceName())
+                .add("XksProxyAuthenticationCredential", xksProxyAuthenticationCredential())
+                .add("XksProxyConnectivity", xksProxyConnectivityAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreName":
+            return Optional.ofNullable(clazz.cast(customKeyStoreName()));
+        case "CloudHsmClusterId":
+            return Optional.ofNullable(clazz.cast(cloudHsmClusterId()));
+        case "TrustAnchorCertificate":
+            return Optional.ofNullable(clazz.cast(trustAnchorCertificate()));
+        case "KeyStorePassword":
+            return Optional.ofNullable(clazz.cast(keyStorePassword()));
+        case "CustomKeyStoreType":
+            return Optional.ofNullable(clazz.cast(customKeyStoreTypeAsString()));
+        case "XksProxyUriEndpoint":
+            return Optional.ofNullable(clazz.cast(xksProxyUriEndpoint()));
+        case "XksProxyUriPath":
+            return Optional.ofNullable(clazz.cast(xksProxyUriPath()));
+        case "XksProxyVpcEndpointServiceName":
+            return Optional.ofNullable(clazz.cast(xksProxyVpcEndpointServiceName()));
+        case "XksProxyAuthenticationCredential":
+            return Optional.ofNullable(clazz.cast(xksProxyAuthenticationCredential()));
+        case "XksProxyConnectivity":
+            return Optional.ofNullable(clazz.cast(xksProxyConnectivityAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateCustomKeyStoreRequest, T> g) {
+        return obj -> g.apply((CreateCustomKeyStoreRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, CreateCustomKeyStoreRequest> {
+        /**
+         * <p>
+         * Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services
+         * account and Region. This parameter is required for all custom key stores.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * 
+         * @param customKeyStoreName
+         *        Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web
+         *        Services account and Region. This parameter is required for all custom key stores.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreName(String customKeyStoreName);
+
+        /**
+         * <p>
+         * Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key stores
+         * with <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key store.
+         * To find the cluster ID, use the <a
+         * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+         * >DescribeClusters</a> operation.
+         * </p>
+         * 
+         * @param cloudHsmClusterId
+         *        Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key
+         *        stores with <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key
+         *        store. To find the cluster ID, use the <a
+         *        href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+         *        >DescribeClusters</a> operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder cloudHsmClusterId(String cloudHsmClusterId);
+
+        /**
+         * <p>
+         * Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores with a
+         * <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the
+         * <code>customerCA.crt</code> file that you created when you <a
+         * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html">initialized the
+         * cluster</a>.
+         * </p>
+         * 
+         * @param trustAnchorCertificate
+         *        Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores
+         *        with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the
+         *        <code>customerCA.crt</code> file that you created when you <a
+         *        href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html">initialized the
+         *        cluster</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder trustAnchorCertificate(String trustAnchorCertificate);
+
+        /**
+         * <p>
+         * Specifies the <code>kmsuser</code> password for an CloudHSM key store. This parameter is required for custom
+         * key stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * Enter the password of the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+         * <code>kmsuser</code> crypto user (CU) account</a> in the specified CloudHSM cluster. KMS logs into the
+         * cluster as this user to manage key material on your behalf.
+         * </p>
+         * <p>
+         * The password must be a string of 7 to 32 characters. Its value is case sensitive.
+         * </p>
+         * <p>
+         * This parameter tells KMS the <code>kmsuser</code> account password; it does not change the password in the
+         * CloudHSM cluster.
+         * </p>
+         * 
+         * @param keyStorePassword
+         *        Specifies the <code>kmsuser</code> password for an CloudHSM key store. This parameter is required for
+         *        custom key stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        Enter the password of the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
+         *        <code>kmsuser</code> crypto user (CU) account</a> in the specified CloudHSM cluster. KMS logs into the
+         *        cluster as this user to manage key material on your behalf.
+         *        </p>
+         *        <p>
+         *        The password must be a string of 7 to 32 characters. Its value is case sensitive.
+         *        </p>
+         *        <p>
+         *        This parameter tells KMS the <code>kmsuser</code> account password; it does not change the password in
+         *        the CloudHSM cluster.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyStorePassword(String keyStorePassword);
+
+        /**
+         * <p>
+         * Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * For a custom key store backed by an CloudHSM cluster, omit the parameter or enter <code>AWS_CLOUDHSM</code>.
+         * For a custom key store backed by an external key manager outside of Amazon Web Services, enter
+         * <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key store is created.
+         * </p>
+         * 
+         * @param customKeyStoreType
+         *        Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        For a custom key store backed by an CloudHSM cluster, omit the parameter or enter
+         *        <code>AWS_CLOUDHSM</code>. For a custom key store backed by an external key manager outside of Amazon
+         *        Web Services, enter <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key
+         *        store is created.
+         * @see CustomKeyStoreType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomKeyStoreType
+         */
+        Builder customKeyStoreType(String customKeyStoreType);
+
+        /**
+         * <p>
+         * Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * For a custom key store backed by an CloudHSM cluster, omit the parameter or enter <code>AWS_CLOUDHSM</code>.
+         * For a custom key store backed by an external key manager outside of Amazon Web Services, enter
+         * <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key store is created.
+         * </p>
+         * 
+         * @param customKeyStoreType
+         *        Specifies the type of custom key store. The default value is <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        For a custom key store backed by an CloudHSM cluster, omit the parameter or enter
+         *        <code>AWS_CLOUDHSM</code>. For a custom key store backed by an external key manager outside of Amazon
+         *        Web Services, enter <code>EXTERNAL_KEY_STORE</code>. You cannot change this property after the key
+         *        store is created.
+         * @see CustomKeyStoreType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomKeyStoreType
+         */
+        Builder customKeyStoreType(CustomKeyStoreType customKeyStoreType);
+
+        /**
+         * <p>
+         * Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This
+         * parameter is required for custom key stores with a <code>CustomKeyStoreType</code> of
+         * <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the
+         * <code>XksProxyUriEndpoint</code> value.
+         * </p>
+         * <p>
+         * For external key stores with <code>XksProxyConnectivity</code> value of <code>VPC_ENDPOINT_SERVICE</code>,
+         * specify <code>https://</code> followed by the private DNS name of the VPC endpoint service.
+         * </p>
+         * <p>
+         * For external key stores with <code>PUBLIC_ENDPOINT</code> connectivity, this endpoint must be reachable
+         * before you create the custom key store. KMS connects to the external key store proxy while creating the
+         * custom key store. For external key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity, KMS connects
+         * when you call the <a>ConnectCustomKeyStore</a> operation.
+         * </p>
+         * <p>
+         * The value of this parameter must begin with <code>https://</code>. The remainder can contain upper and lower
+         * case letters (A-Z and a-z), numbers (0-9), dots (<code>.</code>), and hyphens (<code>-</code>). Additional
+         * slashes (<code>/</code> and <code>\</code>) are not permitted.
+         * </p>
+         * <p>
+         * <b>Uniqueness requirements: </b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+         * Amazon Web Services account and Region.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * An external key store with <code>PUBLIC_ENDPOINT</code> connectivity cannot use the same
+         * <code>XksProxyUriEndpoint</code> value as an external key store with <code>VPC_ENDPOINT_SERVICE</code>
+         * connectivity in this Amazon Web Services Region.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Each external key store with <code>VPC_ENDPOINT_SERVICE</code> connectivity must have its own private DNS
+         * name. The <code>XksProxyUriEndpoint</code> value for external key stores with
+         * <code>VPC_ENDPOINT_SERVICE</code> connectivity (private DNS name) must be unique in the Amazon Web Services
+         * account and Region.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param xksProxyUriEndpoint
+         *        Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy).
+         *        This parameter is required for custom key stores with a <code>CustomKeyStoreType</code> of
+         *        <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the
+         *        <code>XksProxyUriEndpoint</code> value.
+         *        </p>
+         *        <p>
+         *        For external key stores with <code>XksProxyConnectivity</code> value of
+         *        <code>VPC_ENDPOINT_SERVICE</code>, specify <code>https://</code> followed by the private DNS name of
+         *        the VPC endpoint service.
+         *        </p>
+         *        <p>
+         *        For external key stores with <code>PUBLIC_ENDPOINT</code> connectivity, this endpoint must be
+         *        reachable before you create the custom key store. KMS connects to the external key store proxy while
+         *        creating the custom key store. For external key stores with <code>VPC_ENDPOINT_SERVICE</code>
+         *        connectivity, KMS connects when you call the <a>ConnectCustomKeyStore</a> operation.
+         *        </p>
+         *        <p>
+         *        The value of this parameter must begin with <code>https://</code>. The remainder can contain upper and
+         *        lower case letters (A-Z and a-z), numbers (0-9), dots (<code>.</code>), and hyphens (<code>-</code>).
+         *        Additional slashes (<code>/</code> and <code>\</code>) are not permitted.
+         *        </p>
+         *        <p>
+         *        <b>Uniqueness requirements: </b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique
+         *        in the Amazon Web Services account and Region.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        An external key store with <code>PUBLIC_ENDPOINT</code> connectivity cannot use the same
+         *        <code>XksProxyUriEndpoint</code> value as an external key store with <code>VPC_ENDPOINT_SERVICE</code>
+         *        connectivity in this Amazon Web Services Region.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Each external key store with <code>VPC_ENDPOINT_SERVICE</code> connectivity must have its own private
+         *        DNS name. The <code>XksProxyUriEndpoint</code> value for external key stores with
+         *        <code>VPC_ENDPOINT_SERVICE</code> connectivity (private DNS name) must be unique in the Amazon Web
+         *        Services account and Region.
+         *        </p>
+         *        </li>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyUriEndpoint(String xksProxyUriEndpoint);
+
+        /**
+         * <p>
+         * Specifies the base path to the proxy APIs for this external key store. To find this value, see the
+         * documentation for your external key store proxy. This parameter is required for all custom key stores with a
+         * <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code> where <code>v1</code>
+         * represents the version of the KMS external key store proxy API. This path can include an optional prefix
+         * between the required elements such as <code>/<i>prefix</i>/kms/xks/v1</code>.
+         * </p>
+         * <p>
+         * <b>Uniqueness requirements: </b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+         * Amazon Web Services account and Region.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param xksProxyUriPath
+         *        Specifies the base path to the proxy APIs for this external key store. To find this value, see the
+         *        documentation for your external key store proxy. This parameter is required for all custom key stores
+         *        with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code> where
+         *        <code>v1</code> represents the version of the KMS external key store proxy API. This path can include
+         *        an optional prefix between the required elements such as <code>/<i>prefix</i>/kms/xks/v1</code>.
+         *        </p>
+         *        <p>
+         *        <b>Uniqueness requirements: </b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique
+         *        in the Amazon Web Services account and Region.
+         *        </p>
+         *        </li>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyUriPath(String xksProxyUriPath);
+
+        /**
+         * <p>
+         * Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate
+         * with your external key store proxy (XKS proxy). This parameter is required when the value of
+         * <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code> and the value of
+         * <code>XksProxyConnectivity</code> is <code>VPC_ENDPOINT_SERVICE</code>.
+         * </p>
+         * <p>
+         * The Amazon VPC endpoint service must <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements"
+         * >fulfill all requirements</a> for use with an external key store.
+         * </p>
+         * <p>
+         * <b>Uniqueness requirements:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * External key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity can share an Amazon VPC, but each
+         * external key store must have its own VPC endpoint service and private DNS name.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param xksProxyVpcEndpointServiceName
+         *        Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to
+         *        communicate with your external key store proxy (XKS proxy). This parameter is required when the value
+         *        of <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code> and the value of
+         *        <code>XksProxyConnectivity</code> is <code>VPC_ENDPOINT_SERVICE</code>.</p>
+         *        <p>
+         *        The Amazon VPC endpoint service must <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements"
+         *        >fulfill all requirements</a> for use with an external key store.
+         *        </p>
+         *        <p>
+         *        <b>Uniqueness requirements:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        External key stores with <code>VPC_ENDPOINT_SERVICE</code> connectivity can share an Amazon VPC, but
+         *        each external key store must have its own VPC endpoint service and private DNS name.
+         *        </p>
+         *        </li>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyVpcEndpointServiceName(String xksProxyVpcEndpointServiceName);
+
+        /**
+         * <p>
+         * Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is
+         * required for all custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * The <code>XksProxyAuthenticationCredential</code> has two required elements: <code>RawSecretAccessKey</code>,
+         * a secret key, and <code>AccessKeyId</code>, a unique identifier for the <code>RawSecretAccessKey</code>. For
+         * character requirements, see <a href="kms/latest/APIReference/API_XksProxyAuthenticationCredentialType.html">
+         * XksProxyAuthenticationCredentialType</a>.
+         * </p>
+         * <p>
+         * KMS uses this authentication credential to sign requests to the external key store proxy on your behalf. This
+         * credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
+         * </p>
+         * <p>
+         * This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS the
+         * credential that you established on your external key store proxy. If you rotate your proxy authentication
+         * credential, use the <a>UpdateCustomKeyStore</a> operation to provide the new credential to KMS.
+         * </p>
+         * 
+         * @param xksProxyAuthenticationCredential
+         *        Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is
+         *        required for all custom key stores with a <code>CustomKeyStoreType</code> of
+         *        <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        The <code>XksProxyAuthenticationCredential</code> has two required elements:
+         *        <code>RawSecretAccessKey</code>, a secret key, and <code>AccessKeyId</code>, a unique identifier for
+         *        the <code>RawSecretAccessKey</code>. For character requirements, see <a
+         *        href="kms/latest/APIReference/API_XksProxyAuthenticationCredentialType.html"
+         *        >XksProxyAuthenticationCredentialType</a>.
+         *        </p>
+         *        <p>
+         *        KMS uses this authentication credential to sign requests to the external key store proxy on your
+         *        behalf. This credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services
+         *        credentials.
+         *        </p>
+         *        <p>
+         *        This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells
+         *        KMS the credential that you established on your external key store proxy. If you rotate your proxy
+         *        authentication credential, use the <a>UpdateCustomKeyStore</a> operation to provide the new credential
+         *        to KMS.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential);
+
+        /**
+         * <p>
+         * Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is
+         * required for all custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * The <code>XksProxyAuthenticationCredential</code> has two required elements: <code>RawSecretAccessKey</code>,
+         * a secret key, and <code>AccessKeyId</code>, a unique identifier for the <code>RawSecretAccessKey</code>. For
+         * character requirements, see <a href="kms/latest/APIReference/API_XksProxyAuthenticationCredentialType.html">
+         * XksProxyAuthenticationCredentialType</a>.
+         * </p>
+         * <p>
+         * KMS uses this authentication credential to sign requests to the external key store proxy on your behalf. This
+         * credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
+         * </p>
+         * <p>
+         * This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS the
+         * credential that you established on your external key store proxy. If you rotate your proxy authentication
+         * credential, use the <a>UpdateCustomKeyStore</a> operation to provide the new credential to KMS.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link XksProxyAuthenticationCredentialType.Builder} avoiding the need to create one manually via
+         * {@link XksProxyAuthenticationCredentialType#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link XksProxyAuthenticationCredentialType.Builder#build()} is called
+         * immediately and its result is passed to
+         * {@link #xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType)}.
+         * 
+         * @param xksProxyAuthenticationCredential
+         *        a consumer that will call methods on {@link XksProxyAuthenticationCredentialType.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType)
+         */
+        default Builder xksProxyAuthenticationCredential(
+                Consumer<XksProxyAuthenticationCredentialType.Builder> xksProxyAuthenticationCredential) {
+            return xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType.builder()
+                    .applyMutation(xksProxyAuthenticationCredential).build());
+        }
+
+        /**
+         * <p>
+         * Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key
+         * stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the external
+         * key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+         * <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+         * >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within
+         * Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple
+         * subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint
+         * is simpler to set up, but it might be slower and might not fulfill your security requirements. You might
+         * consider testing with a public endpoint, and then establishing a VPC endpoint service for production tasks.
+         * Note that this choice does not determine the location of the external key store proxy. Even if you choose a
+         * VPC endpoint service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in
+         * your corporate data center.
+         * </p>
+         * 
+         * @param xksProxyConnectivity
+         *        Indicates how KMS communicates with the external key store proxy. This parameter is required for
+         *        custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the
+         *        external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+         *        <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+         *        >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely
+         *        within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC
+         *        with multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS
+         *        name. A public endpoint is simpler to set up, but it might be slower and might not fulfill your
+         *        security requirements. You might consider testing with a public endpoint, and then establishing a VPC
+         *        endpoint service for production tasks. Note that this choice does not determine the location of the
+         *        external key store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within
+         *        the VPC or outside of Amazon Web Services such as in your corporate data center.
+         * @see XksProxyConnectivityType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see XksProxyConnectivityType
+         */
+        Builder xksProxyConnectivity(String xksProxyConnectivity);
+
+        /**
+         * <p>
+         * Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key
+         * stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the external
+         * key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+         * <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+         * >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within
+         * Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple
+         * subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint
+         * is simpler to set up, but it might be slower and might not fulfill your security requirements. You might
+         * consider testing with a public endpoint, and then establishing a VPC endpoint service for production tasks.
+         * Note that this choice does not determine the location of the external key store proxy. Even if you choose a
+         * VPC endpoint service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in
+         * your corporate data center.
+         * </p>
+         * 
+         * @param xksProxyConnectivity
+         *        Indicates how KMS communicates with the external key store proxy. This parameter is required for
+         *        custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        If the external key store proxy uses a public endpoint, specify <code>PUBLIC_ENDPOINT</code>. If the
+         *        external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify
+         *        <code>VPC_ENDPOINT_SERVICE</code>. For help making this choice, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/plan-xks-keystore.html#choose-xks-connectivity"
+         *        >Choosing a connectivity option</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely
+         *        within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC
+         *        with multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS
+         *        name. A public endpoint is simpler to set up, but it might be slower and might not fulfill your
+         *        security requirements. You might consider testing with a public endpoint, and then establishing a VPC
+         *        endpoint service for production tasks. Note that this choice does not determine the location of the
+         *        external key store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within
+         *        the VPC or outside of Amazon Web Services such as in your corporate data center.
+         * @see XksProxyConnectivityType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see XksProxyConnectivityType
+         */
+        Builder xksProxyConnectivity(XksProxyConnectivityType xksProxyConnectivity);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String customKeyStoreName;
+
+        private String cloudHsmClusterId;
+
+        private String trustAnchorCertificate;
+
+        private String keyStorePassword;
+
+        private String customKeyStoreType;
+
+        private String xksProxyUriEndpoint;
+
+        private String xksProxyUriPath;
+
+        private String xksProxyVpcEndpointServiceName;
+
+        private XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential;
+
+        private String xksProxyConnectivity;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateCustomKeyStoreRequest model) {
+            super(model);
+            customKeyStoreName(model.customKeyStoreName);
+            cloudHsmClusterId(model.cloudHsmClusterId);
+            trustAnchorCertificate(model.trustAnchorCertificate);
+            keyStorePassword(model.keyStorePassword);
+            customKeyStoreType(model.customKeyStoreType);
+            xksProxyUriEndpoint(model.xksProxyUriEndpoint);
+            xksProxyUriPath(model.xksProxyUriPath);
+            xksProxyVpcEndpointServiceName(model.xksProxyVpcEndpointServiceName);
+            xksProxyAuthenticationCredential(model.xksProxyAuthenticationCredential);
+            xksProxyConnectivity(model.xksProxyConnectivity);
+        }
+
+        public final String getCustomKeyStoreName() {
+            return customKeyStoreName;
+        }
+
+        public final void setCustomKeyStoreName(String customKeyStoreName) {
+            this.customKeyStoreName = customKeyStoreName;
+        }
+
+        @Override
+        public final Builder customKeyStoreName(String customKeyStoreName) {
+            this.customKeyStoreName = customKeyStoreName;
+            return this;
+        }
+
+        public final String getCloudHsmClusterId() {
+            return cloudHsmClusterId;
+        }
+
+        public final void setCloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+        }
+
+        @Override
+        public final Builder cloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+            return this;
+        }
+
+        public final String getTrustAnchorCertificate() {
+            return trustAnchorCertificate;
+        }
+
+        public final void setTrustAnchorCertificate(String trustAnchorCertificate) {
+            this.trustAnchorCertificate = trustAnchorCertificate;
+        }
+
+        @Override
+        public final Builder trustAnchorCertificate(String trustAnchorCertificate) {
+            this.trustAnchorCertificate = trustAnchorCertificate;
+            return this;
+        }
+
+        public final String getKeyStorePassword() {
+            return keyStorePassword;
+        }
+
+        public final void setKeyStorePassword(String keyStorePassword) {
+            this.keyStorePassword = keyStorePassword;
+        }
+
+        @Override
+        public final Builder keyStorePassword(String keyStorePassword) {
+            this.keyStorePassword = keyStorePassword;
+            return this;
+        }
+
+        public final String getCustomKeyStoreType() {
+            return customKeyStoreType;
+        }
+
+        public final void setCustomKeyStoreType(String customKeyStoreType) {
+            this.customKeyStoreType = customKeyStoreType;
+        }
+
+        @Override
+        public final Builder customKeyStoreType(String customKeyStoreType) {
+            this.customKeyStoreType = customKeyStoreType;
+            return this;
+        }
+
+        @Override
+        public final Builder customKeyStoreType(CustomKeyStoreType customKeyStoreType) {
+            this.customKeyStoreType(customKeyStoreType == null ? null : customKeyStoreType.toString());
+            return this;
+        }
+
+        public final String getXksProxyUriEndpoint() {
+            return xksProxyUriEndpoint;
+        }
+
+        public final void setXksProxyUriEndpoint(String xksProxyUriEndpoint) {
+            this.xksProxyUriEndpoint = xksProxyUriEndpoint;
+        }
+
+        @Override
+        public final Builder xksProxyUriEndpoint(String xksProxyUriEndpoint) {
+            this.xksProxyUriEndpoint = xksProxyUriEndpoint;
+            return this;
+        }
+
+        public final String getXksProxyUriPath() {
+            return xksProxyUriPath;
+        }
+
+        public final void setXksProxyUriPath(String xksProxyUriPath) {
+            this.xksProxyUriPath = xksProxyUriPath;
+        }
+
+        @Override
+        public final Builder xksProxyUriPath(String xksProxyUriPath) {
+            this.xksProxyUriPath = xksProxyUriPath;
+            return this;
+        }
+
+        public final String getXksProxyVpcEndpointServiceName() {
+            return xksProxyVpcEndpointServiceName;
+        }
+
+        public final void setXksProxyVpcEndpointServiceName(String xksProxyVpcEndpointServiceName) {
+            this.xksProxyVpcEndpointServiceName = xksProxyVpcEndpointServiceName;
+        }
+
+        @Override
+        public final Builder xksProxyVpcEndpointServiceName(String xksProxyVpcEndpointServiceName) {
+            this.xksProxyVpcEndpointServiceName = xksProxyVpcEndpointServiceName;
+            return this;
+        }
+
+        public final XksProxyAuthenticationCredentialType.Builder getXksProxyAuthenticationCredential() {
+            return xksProxyAuthenticationCredential != null ? xksProxyAuthenticationCredential.toBuilder() : null;
+        }
+
+        public final void setXksProxyAuthenticationCredential(
+                XksProxyAuthenticationCredentialType.BuilderImpl xksProxyAuthenticationCredential) {
+            this.xksProxyAuthenticationCredential = xksProxyAuthenticationCredential != null ? xksProxyAuthenticationCredential
+                    .build() : null;
+        }
+
+        @Override
+        public final Builder xksProxyAuthenticationCredential(
+                XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential) {
+            this.xksProxyAuthenticationCredential = xksProxyAuthenticationCredential;
+            return this;
+        }
+
+        public final String getXksProxyConnectivity() {
+            return xksProxyConnectivity;
+        }
+
+        public final void setXksProxyConnectivity(String xksProxyConnectivity) {
+            this.xksProxyConnectivity = xksProxyConnectivity;
+        }
+
+        @Override
+        public final Builder xksProxyConnectivity(String xksProxyConnectivity) {
+            this.xksProxyConnectivity = xksProxyConnectivity;
+            return this;
+        }
+
+        @Override
+        public final Builder xksProxyConnectivity(XksProxyConnectivityType xksProxyConnectivity) {
+            this.xksProxyConnectivity(xksProxyConnectivity == null ? null : xksProxyConnectivity.toString());
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public CreateCustomKeyStoreRequest build() {
+            return new CreateCustomKeyStoreRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateCustomKeyStoreResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateCustomKeyStoreResponse.java
new file mode 100644
index 0000000..da5b532
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateCustomKeyStoreResponse.java
@@ -0,0 +1,183 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateCustomKeyStoreResponse extends KmsResponse implements
+        ToCopyableBuilder<CreateCustomKeyStoreResponse.Builder, CreateCustomKeyStoreResponse> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(CreateCustomKeyStoreResponse::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD));
+
+    private final String customKeyStoreId;
+
+    private CreateCustomKeyStoreResponse(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreId = builder.customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the new custom key store.
+     * </p>
+     * 
+     * @return A unique identifier for the new custom key store.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateCustomKeyStoreResponse)) {
+            return false;
+        }
+        CreateCustomKeyStoreResponse other = (CreateCustomKeyStoreResponse) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateCustomKeyStoreResponse").add("CustomKeyStoreId", customKeyStoreId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateCustomKeyStoreResponse, T> g) {
+        return obj -> g.apply((CreateCustomKeyStoreResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, CreateCustomKeyStoreResponse> {
+        /**
+         * <p>
+         * A unique identifier for the new custom key store.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        A unique identifier for the new custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateCustomKeyStoreResponse model) {
+            super(model);
+            customKeyStoreId(model.customKeyStoreId);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        @Override
+        public CreateCustomKeyStoreResponse build() {
+            return new CreateCustomKeyStoreResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateGrantRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateGrantRequest.java
new file mode 100644
index 0000000..2e2973f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateGrantRequest.java
@@ -0,0 +1,1299 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateGrantRequest extends KmsRequest implements
+        ToCopyableBuilder<CreateGrantRequest.Builder, CreateGrantRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(CreateGrantRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> GRANTEE_PRINCIPAL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GranteePrincipal").getter(getter(CreateGrantRequest::granteePrincipal))
+            .setter(setter(Builder::granteePrincipal))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GranteePrincipal").build()).build();
+
+    private static final SdkField<String> RETIRING_PRINCIPAL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("RetiringPrincipal").getter(getter(CreateGrantRequest::retiringPrincipal))
+            .setter(setter(Builder::retiringPrincipal))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RetiringPrincipal").build()).build();
+
+    private static final SdkField<List<String>> OPERATIONS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("Operations")
+            .getter(getter(CreateGrantRequest::operationsAsStrings))
+            .setter(setter(Builder::operationsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Operations").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<GrantConstraints> CONSTRAINTS_FIELD = SdkField
+            .<GrantConstraints> builder(MarshallingType.SDK_POJO).memberName("Constraints")
+            .getter(getter(CreateGrantRequest::constraints)).setter(setter(Builder::constraints))
+            .constructor(GrantConstraints::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Constraints").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(CreateGrantRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Name")
+            .getter(getter(CreateGrantRequest::name)).setter(setter(Builder::name))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(CreateGrantRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            GRANTEE_PRINCIPAL_FIELD, RETIRING_PRINCIPAL_FIELD, OPERATIONS_FIELD, CONSTRAINTS_FIELD, GRANT_TOKENS_FIELD,
+            NAME_FIELD, DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final String granteePrincipal;
+
+    private final String retiringPrincipal;
+
+    private final List<String> operations;
+
+    private final GrantConstraints constraints;
+
+    private final List<String> grantTokens;
+
+    private final String name;
+
+    private final Boolean dryRun;
+
+    private CreateGrantRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.granteePrincipal = builder.granteePrincipal;
+        this.retiringPrincipal = builder.retiringPrincipal;
+        this.operations = builder.operations;
+        this.constraints = builder.constraints;
+        this.grantTokens = builder.grantTokens;
+        this.name = builder.name;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key for the grant. The grant gives principals permission to use this KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account,
+     * you must use the key ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key for the grant. The grant gives principals permission to use this KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+     *         account, you must use the key ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The identity that gets the permissions specified in the grant.
+     * </p>
+     * <p>
+     * To specify the grantee principal, use the Amazon Resource Name (ARN) of an Amazon Web Services principal. Valid
+     * principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed role users.
+     * For help with the ARN syntax for a principal, see <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM ARNs</a>
+     * in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     * </p>
+     * 
+     * @return The identity that gets the permissions specified in the grant.</p>
+     *         <p>
+     *         To specify the grantee principal, use the Amazon Resource Name (ARN) of an Amazon Web Services principal.
+     *         Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed
+     *         role users. For help with the ARN syntax for a principal, see <a
+     *         href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM
+     *         ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     */
+    public final String granteePrincipal() {
+        return granteePrincipal;
+    }
+
+    /**
+     * <p>
+     * The principal that has permission to use the <a>RetireGrant</a> operation to retire the grant.
+     * </p>
+     * <p>
+     * To specify the principal, use the <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a>
+     * of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles,
+     * federated users, and assumed role users. For help with the ARN syntax for a principal, see <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM ARNs</a>
+     * in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     * </p>
+     * <p>
+     * The grant determines the retiring principal. Other principals might have permission to retire the grant or revoke
+     * the grant. For details, see <a>RevokeGrant</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and revoking
+     * grants</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return The principal that has permission to use the <a>RetireGrant</a> operation to retire the grant. </p>
+     *         <p>
+     *         To specify the principal, use the <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
+     *         (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM
+     *         users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal,
+     *         see <a
+     *         href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM
+     *         ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     *         </p>
+     *         <p>
+     *         The grant determines the retiring principal. Other principals might have permission to retire the grant
+     *         or revoke the grant. For details, see <a>RevokeGrant</a> and <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+     *         revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final String retiringPrincipal() {
+        return retiringPrincipal;
+    }
+
+    /**
+     * <p>
+     * A list of operations that the grant permits.
+     * </p>
+     * <p>
+     * This list must include only operations that are permitted in a grant. Also, the operation must be supported on
+     * the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the
+     * <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the <a>GenerateDataKey</a> operation. If
+     * you try, KMS returns a <code>ValidationError</code> exception. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+     * operations</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasOperations} method.
+     * </p>
+     * 
+     * @return A list of operations that the grant permits. </p>
+     *         <p>
+     *         This list must include only operations that are permitted in a grant. Also, the operation must be
+     *         supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that
+     *         allows the <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the
+     *         <a>GenerateDataKey</a> operation. If you try, KMS returns a <code>ValidationError</code> exception. For
+     *         details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+     *         operations</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<GrantOperation> operations() {
+        return GrantOperationListCopier.copyStringToEnum(operations);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Operations property. This DOES NOT check
+     * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
+     * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
+     * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
+     * returns true if a value for the property was specified in the request builder, and false if a value was not
+     * specified.
+     */
+    public final boolean hasOperations() {
+        return operations != null && !(operations instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of operations that the grant permits.
+     * </p>
+     * <p>
+     * This list must include only operations that are permitted in a grant. Also, the operation must be supported on
+     * the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the
+     * <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the <a>GenerateDataKey</a> operation. If
+     * you try, KMS returns a <code>ValidationError</code> exception. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+     * operations</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasOperations} method.
+     * </p>
+     * 
+     * @return A list of operations that the grant permits. </p>
+     *         <p>
+     *         This list must include only operations that are permitted in a grant. Also, the operation must be
+     *         supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that
+     *         allows the <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the
+     *         <a>GenerateDataKey</a> operation. If you try, KMS returns a <code>ValidationError</code> exception. For
+     *         details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+     *         operations</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> operationsAsStrings() {
+        return operations;
+    }
+
+    /**
+     * <p>
+     * Specifies a grant constraint.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * KMS supports the <code>EncryptionContextEquals</code> and <code>EncryptionContextSubset</code> grant constraints,
+     * which allow the permissions in the grant only when the encryption context in the request matches (
+     * <code>EncryptionContextEquals</code>) or includes (<code>EncryptionContextSubset</code>) the encryption context
+     * specified in the constraint.
+     * </p>
+     * <p>
+     * The encryption context grant constraints are supported only on <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">grant
+     * operations</a> that include an <code>EncryptionContext</code> parameter, such as cryptographic operations on
+     * symmetric encryption KMS keys. Grants with grant constraints can include the <a>DescribeKey</a> and
+     * <a>RetireGrant</a> operations, but the constraint doesn't apply to these operations. If a grant with a grant
+     * constraint includes the <code>CreateGrant</code> operation, the constraint requires that any grants created with
+     * the <code>CreateGrant</code> permission have an equally strict or stricter encryption context constraint.
+     * </p>
+     * <p>
+     * You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS keys or
+     * HMAC KMS keys. Operations with these keys don't support an encryption context.
+     * </p>
+     * <p>
+     * Each constraint value can include up to 8 encryption context pairs. The encryption context value in each
+     * constraint cannot exceed 384 characters. For information about grant constraints, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints">Using
+     * grant constraints</a> in the <i>Key Management Service Developer Guide</i>. For more information about encryption
+     * context, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * 
+     * @return Specifies a grant constraint.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         KMS supports the <code>EncryptionContextEquals</code> and <code>EncryptionContextSubset</code> grant
+     *         constraints, which allow the permissions in the grant only when the encryption context in the request
+     *         matches (<code>EncryptionContextEquals</code>) or includes (<code>EncryptionContextSubset</code>) the
+     *         encryption context specified in the constraint.
+     *         </p>
+     *         <p>
+     *         The encryption context grant constraints are supported only on <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">grant
+     *         operations</a> that include an <code>EncryptionContext</code> parameter, such as cryptographic operations
+     *         on symmetric encryption KMS keys. Grants with grant constraints can include the <a>DescribeKey</a> and
+     *         <a>RetireGrant</a> operations, but the constraint doesn't apply to these operations. If a grant with a
+     *         grant constraint includes the <code>CreateGrant</code> operation, the constraint requires that any grants
+     *         created with the <code>CreateGrant</code> permission have an equally strict or stricter encryption
+     *         context constraint.
+     *         </p>
+     *         <p>
+     *         You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS
+     *         keys or HMAC KMS keys. Operations with these keys don't support an encryption context.
+     *         </p>
+     *         <p>
+     *         Each constraint value can include up to 8 encryption context pairs. The encryption context value in each
+     *         constraint cannot exceed 384 characters. For information about grant constraints, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints"
+     *         >Using grant constraints</a> in the <i>Key Management Service Developer Guide</i>. For more information
+     *         about encryption context, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     */
+    public final GrantConstraints constraints() {
+        return constraints;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens. </p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * A friendly name for the grant. Use this value to prevent the unintended creation of duplicate grants when
+     * retrying this request.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * When this value is absent, all <code>CreateGrant</code> requests result in a new grant with a unique
+     * <code>GrantId</code> even if all the supplied parameters are identical. This can result in unintended duplicates
+     * when you retry the <code>CreateGrant</code> request.
+     * </p>
+     * <p>
+     * When this value is present, you can retry a <code>CreateGrant</code> request with identical parameters; if the
+     * grant already exists, the original <code>GrantId</code> is returned without creating a new grant. Note that the
+     * returned grant token is unique with every <code>CreateGrant</code> request, even when a duplicate
+     * <code>GrantId</code> is returned. All grant tokens for the same grant ID can be used interchangeably.
+     * </p>
+     * 
+     * @return A friendly name for the grant. Use this value to prevent the unintended creation of duplicate grants when
+     *         retrying this request.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         When this value is absent, all <code>CreateGrant</code> requests result in a new grant with a unique
+     *         <code>GrantId</code> even if all the supplied parameters are identical. This can result in unintended
+     *         duplicates when you retry the <code>CreateGrant</code> request.
+     *         </p>
+     *         <p>
+     *         When this value is present, you can retry a <code>CreateGrant</code> request with identical parameters;
+     *         if the grant already exists, the original <code>GrantId</code> is returned without creating a new grant.
+     *         Note that the returned grant token is unique with every <code>CreateGrant</code> request, even when a
+     *         duplicate <code>GrantId</code> is returned. All grant tokens for the same grant ID can be used
+     *         interchangeably.
+     */
+    public final String name() {
+        return name;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(granteePrincipal());
+        hashCode = 31 * hashCode + Objects.hashCode(retiringPrincipal());
+        hashCode = 31 * hashCode + Objects.hashCode(hasOperations() ? operationsAsStrings() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(constraints());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(name());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateGrantRequest)) {
+            return false;
+        }
+        CreateGrantRequest other = (CreateGrantRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(granteePrincipal(), other.granteePrincipal())
+                && Objects.equals(retiringPrincipal(), other.retiringPrincipal()) && hasOperations() == other.hasOperations()
+                && Objects.equals(operationsAsStrings(), other.operationsAsStrings())
+                && Objects.equals(constraints(), other.constraints()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens()) && Objects.equals(name(), other.name())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateGrantRequest").add("KeyId", keyId()).add("GranteePrincipal", granteePrincipal())
+                .add("RetiringPrincipal", retiringPrincipal()).add("Operations", hasOperations() ? operationsAsStrings() : null)
+                .add("Constraints", constraints()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("Name", name()).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GranteePrincipal":
+            return Optional.ofNullable(clazz.cast(granteePrincipal()));
+        case "RetiringPrincipal":
+            return Optional.ofNullable(clazz.cast(retiringPrincipal()));
+        case "Operations":
+            return Optional.ofNullable(clazz.cast(operationsAsStrings()));
+        case "Constraints":
+            return Optional.ofNullable(clazz.cast(constraints()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "Name":
+            return Optional.ofNullable(clazz.cast(name()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateGrantRequest, T> g) {
+        return obj -> g.apply((CreateGrantRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, CreateGrantRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key for the grant. The grant gives principals permission to use this KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         * account, you must use the key ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key for the grant. The grant gives principals permission to use this KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         *        account, you must use the key ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The identity that gets the permissions specified in the grant.
+         * </p>
+         * <p>
+         * To specify the grantee principal, use the Amazon Resource Name (ARN) of an Amazon Web Services principal.
+         * Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed
+         * role users. For help with the ARN syntax for a principal, see <a
+         * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM
+         * ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * </p>
+         * 
+         * @param granteePrincipal
+         *        The identity that gets the permissions specified in the grant.</p>
+         *        <p>
+         *        To specify the grantee principal, use the Amazon Resource Name (ARN) of an Amazon Web Services
+         *        principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated
+         *        users, and assumed role users. For help with the ARN syntax for a principal, see <a
+         *        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns"
+         *        >IAM ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder granteePrincipal(String granteePrincipal);
+
+        /**
+         * <p>
+         * The principal that has permission to use the <a>RetireGrant</a> operation to retire the grant.
+         * </p>
+         * <p>
+         * To specify the principal, use the <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
+         * (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM
+         * users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal, see
+         * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM
+         * ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * </p>
+         * <p>
+         * The grant determines the retiring principal. Other principals might have permission to retire the grant or
+         * revoke the grant. For details, see <a>RevokeGrant</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
+         * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param retiringPrincipal
+         *        The principal that has permission to use the <a>RetireGrant</a> operation to retire the grant. </p>
+         *        <p>
+         *        To specify the principal, use the <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
+         *        (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts,
+         *        IAM users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a
+         *        principal, see <a
+         *        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns"
+         *        >IAM ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         *        </p>
+         *        <p>
+         *        The grant determines the retiring principal. Other principals might have permission to retire the
+         *        grant or revoke the grant. For details, see <a>RevokeGrant</a> and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring
+         *        and revoking grants</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder retiringPrincipal(String retiringPrincipal);
+
+        /**
+         * <p>
+         * A list of operations that the grant permits.
+         * </p>
+         * <p>
+         * This list must include only operations that are permitted in a grant. Also, the operation must be supported
+         * on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the
+         * <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the <a>GenerateDataKey</a> operation.
+         * If you try, KMS returns a <code>ValidationError</code> exception. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         * operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param operations
+         *        A list of operations that the grant permits. </p>
+         *        <p>
+         *        This list must include only operations that are permitted in a grant. Also, the operation must be
+         *        supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key
+         *        that allows the <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the
+         *        <a>GenerateDataKey</a> operation. If you try, KMS returns a <code>ValidationError</code> exception.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         *        operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operationsWithStrings(Collection<String> operations);
+
+        /**
+         * <p>
+         * A list of operations that the grant permits.
+         * </p>
+         * <p>
+         * This list must include only operations that are permitted in a grant. Also, the operation must be supported
+         * on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the
+         * <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the <a>GenerateDataKey</a> operation.
+         * If you try, KMS returns a <code>ValidationError</code> exception. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         * operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param operations
+         *        A list of operations that the grant permits. </p>
+         *        <p>
+         *        This list must include only operations that are permitted in a grant. Also, the operation must be
+         *        supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key
+         *        that allows the <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the
+         *        <a>GenerateDataKey</a> operation. If you try, KMS returns a <code>ValidationError</code> exception.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         *        operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operationsWithStrings(String... operations);
+
+        /**
+         * <p>
+         * A list of operations that the grant permits.
+         * </p>
+         * <p>
+         * This list must include only operations that are permitted in a grant. Also, the operation must be supported
+         * on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the
+         * <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the <a>GenerateDataKey</a> operation.
+         * If you try, KMS returns a <code>ValidationError</code> exception. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         * operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param operations
+         *        A list of operations that the grant permits. </p>
+         *        <p>
+         *        This list must include only operations that are permitted in a grant. Also, the operation must be
+         *        supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key
+         *        that allows the <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the
+         *        <a>GenerateDataKey</a> operation. If you try, KMS returns a <code>ValidationError</code> exception.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         *        operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operations(Collection<GrantOperation> operations);
+
+        /**
+         * <p>
+         * A list of operations that the grant permits.
+         * </p>
+         * <p>
+         * This list must include only operations that are permitted in a grant. Also, the operation must be supported
+         * on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the
+         * <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the <a>GenerateDataKey</a> operation.
+         * If you try, KMS returns a <code>ValidationError</code> exception. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         * operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param operations
+         *        A list of operations that the grant permits. </p>
+         *        <p>
+         *        This list must include only operations that are permitted in a grant. Also, the operation must be
+         *        supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key
+         *        that allows the <a>Sign</a> operation, or a grant for an asymmetric KMS key that allows the
+         *        <a>GenerateDataKey</a> operation. If you try, KMS returns a <code>ValidationError</code> exception.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">Grant
+         *        operations</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operations(GrantOperation... operations);
+
+        /**
+         * <p>
+         * Specifies a grant constraint.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * KMS supports the <code>EncryptionContextEquals</code> and <code>EncryptionContextSubset</code> grant
+         * constraints, which allow the permissions in the grant only when the encryption context in the request matches
+         * (<code>EncryptionContextEquals</code>) or includes (<code>EncryptionContextSubset</code>) the encryption
+         * context specified in the constraint.
+         * </p>
+         * <p>
+         * The encryption context grant constraints are supported only on <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">grant
+         * operations</a> that include an <code>EncryptionContext</code> parameter, such as cryptographic operations on
+         * symmetric encryption KMS keys. Grants with grant constraints can include the <a>DescribeKey</a> and
+         * <a>RetireGrant</a> operations, but the constraint doesn't apply to these operations. If a grant with a grant
+         * constraint includes the <code>CreateGrant</code> operation, the constraint requires that any grants created
+         * with the <code>CreateGrant</code> permission have an equally strict or stricter encryption context
+         * constraint.
+         * </p>
+         * <p>
+         * You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS keys
+         * or HMAC KMS keys. Operations with these keys don't support an encryption context.
+         * </p>
+         * <p>
+         * Each constraint value can include up to 8 encryption context pairs. The encryption context value in each
+         * constraint cannot exceed 384 characters. For information about grant constraints, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints"
+         * >Using grant constraints</a> in the <i>Key Management Service Developer Guide</i>. For more information about
+         * encryption context, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * 
+         * @param constraints
+         *        Specifies a grant constraint.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        KMS supports the <code>EncryptionContextEquals</code> and <code>EncryptionContextSubset</code> grant
+         *        constraints, which allow the permissions in the grant only when the encryption context in the request
+         *        matches (<code>EncryptionContextEquals</code>) or includes (<code>EncryptionContextSubset</code>) the
+         *        encryption context specified in the constraint.
+         *        </p>
+         *        <p>
+         *        The encryption context grant constraints are supported only on <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">grant
+         *        operations</a> that include an <code>EncryptionContext</code> parameter, such as cryptographic
+         *        operations on symmetric encryption KMS keys. Grants with grant constraints can include the
+         *        <a>DescribeKey</a> and <a>RetireGrant</a> operations, but the constraint doesn't apply to these
+         *        operations. If a grant with a grant constraint includes the <code>CreateGrant</code> operation, the
+         *        constraint requires that any grants created with the <code>CreateGrant</code> permission have an
+         *        equally strict or stricter encryption context constraint.
+         *        </p>
+         *        <p>
+         *        You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS
+         *        keys or HMAC KMS keys. Operations with these keys don't support an encryption context.
+         *        </p>
+         *        <p>
+         *        Each constraint value can include up to 8 encryption context pairs. The encryption context value in
+         *        each constraint cannot exceed 384 characters. For information about grant constraints, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints"
+         *        >Using grant constraints</a> in the <i>Key Management Service Developer Guide</i>. For more
+         *        information about encryption context, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder constraints(GrantConstraints constraints);
+
+        /**
+         * <p>
+         * Specifies a grant constraint.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * KMS supports the <code>EncryptionContextEquals</code> and <code>EncryptionContextSubset</code> grant
+         * constraints, which allow the permissions in the grant only when the encryption context in the request matches
+         * (<code>EncryptionContextEquals</code>) or includes (<code>EncryptionContextSubset</code>) the encryption
+         * context specified in the constraint.
+         * </p>
+         * <p>
+         * The encryption context grant constraints are supported only on <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations">grant
+         * operations</a> that include an <code>EncryptionContext</code> parameter, such as cryptographic operations on
+         * symmetric encryption KMS keys. Grants with grant constraints can include the <a>DescribeKey</a> and
+         * <a>RetireGrant</a> operations, but the constraint doesn't apply to these operations. If a grant with a grant
+         * constraint includes the <code>CreateGrant</code> operation, the constraint requires that any grants created
+         * with the <code>CreateGrant</code> permission have an equally strict or stricter encryption context
+         * constraint.
+         * </p>
+         * <p>
+         * You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS keys
+         * or HMAC KMS keys. Operations with these keys don't support an encryption context.
+         * </p>
+         * <p>
+         * Each constraint value can include up to 8 encryption context pairs. The encryption context value in each
+         * constraint cannot exceed 384 characters. For information about grant constraints, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints"
+         * >Using grant constraints</a> in the <i>Key Management Service Developer Guide</i>. For more information about
+         * encryption context, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link GrantConstraints.Builder} avoiding the
+         * need to create one manually via {@link GrantConstraints#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link GrantConstraints.Builder#build()} is called immediately and its
+         * result is passed to {@link #constraints(GrantConstraints)}.
+         * 
+         * @param constraints
+         *        a consumer that will call methods on {@link GrantConstraints.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #constraints(GrantConstraints)
+         */
+        default Builder constraints(Consumer<GrantConstraints.Builder> constraints) {
+            return constraints(GrantConstraints.builder().applyMutation(constraints).build());
+        }
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens. </p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens. </p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * A friendly name for the grant. Use this value to prevent the unintended creation of duplicate grants when
+         * retrying this request.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * When this value is absent, all <code>CreateGrant</code> requests result in a new grant with a unique
+         * <code>GrantId</code> even if all the supplied parameters are identical. This can result in unintended
+         * duplicates when you retry the <code>CreateGrant</code> request.
+         * </p>
+         * <p>
+         * When this value is present, you can retry a <code>CreateGrant</code> request with identical parameters; if
+         * the grant already exists, the original <code>GrantId</code> is returned without creating a new grant. Note
+         * that the returned grant token is unique with every <code>CreateGrant</code> request, even when a duplicate
+         * <code>GrantId</code> is returned. All grant tokens for the same grant ID can be used interchangeably.
+         * </p>
+         * 
+         * @param name
+         *        A friendly name for the grant. Use this value to prevent the unintended creation of duplicate grants
+         *        when retrying this request.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        When this value is absent, all <code>CreateGrant</code> requests result in a new grant with a unique
+         *        <code>GrantId</code> even if all the supplied parameters are identical. This can result in unintended
+         *        duplicates when you retry the <code>CreateGrant</code> request.
+         *        </p>
+         *        <p>
+         *        When this value is present, you can retry a <code>CreateGrant</code> request with identical
+         *        parameters; if the grant already exists, the original <code>GrantId</code> is returned without
+         *        creating a new grant. Note that the returned grant token is unique with every <code>CreateGrant</code>
+         *        request, even when a duplicate <code>GrantId</code> is returned. All grant tokens for the same grant
+         *        ID can be used interchangeably.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder name(String name);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String granteePrincipal;
+
+        private String retiringPrincipal;
+
+        private List<String> operations = DefaultSdkAutoConstructList.getInstance();
+
+        private GrantConstraints constraints;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private String name;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateGrantRequest model) {
+            super(model);
+            keyId(model.keyId);
+            granteePrincipal(model.granteePrincipal);
+            retiringPrincipal(model.retiringPrincipal);
+            operationsWithStrings(model.operations);
+            constraints(model.constraints);
+            grantTokens(model.grantTokens);
+            name(model.name);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getGranteePrincipal() {
+            return granteePrincipal;
+        }
+
+        public final void setGranteePrincipal(String granteePrincipal) {
+            this.granteePrincipal = granteePrincipal;
+        }
+
+        @Override
+        public final Builder granteePrincipal(String granteePrincipal) {
+            this.granteePrincipal = granteePrincipal;
+            return this;
+        }
+
+        public final String getRetiringPrincipal() {
+            return retiringPrincipal;
+        }
+
+        public final void setRetiringPrincipal(String retiringPrincipal) {
+            this.retiringPrincipal = retiringPrincipal;
+        }
+
+        @Override
+        public final Builder retiringPrincipal(String retiringPrincipal) {
+            this.retiringPrincipal = retiringPrincipal;
+            return this;
+        }
+
+        public final Collection<String> getOperations() {
+            if (operations instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return operations;
+        }
+
+        public final void setOperations(Collection<String> operations) {
+            this.operations = GrantOperationListCopier.copy(operations);
+        }
+
+        @Override
+        public final Builder operationsWithStrings(Collection<String> operations) {
+            this.operations = GrantOperationListCopier.copy(operations);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder operationsWithStrings(String... operations) {
+            operationsWithStrings(Arrays.asList(operations));
+            return this;
+        }
+
+        @Override
+        public final Builder operations(Collection<GrantOperation> operations) {
+            this.operations = GrantOperationListCopier.copyEnumToString(operations);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder operations(GrantOperation... operations) {
+            operations(Arrays.asList(operations));
+            return this;
+        }
+
+        public final GrantConstraints.Builder getConstraints() {
+            return constraints != null ? constraints.toBuilder() : null;
+        }
+
+        public final void setConstraints(GrantConstraints.BuilderImpl constraints) {
+            this.constraints = constraints != null ? constraints.build() : null;
+        }
+
+        @Override
+        public final Builder constraints(GrantConstraints constraints) {
+            this.constraints = constraints;
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final String getName() {
+            return name;
+        }
+
+        public final void setName(String name) {
+            this.name = name;
+        }
+
+        @Override
+        public final Builder name(String name) {
+            this.name = name;
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public CreateGrantRequest build() {
+            return new CreateGrantRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateGrantResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateGrantResponse.java
new file mode 100644
index 0000000..f88e3b2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateGrantResponse.java
@@ -0,0 +1,272 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateGrantResponse extends KmsResponse implements
+        ToCopyableBuilder<CreateGrantResponse.Builder, CreateGrantResponse> {
+    private static final SdkField<String> GRANT_TOKEN_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantToken").getter(getter(CreateGrantResponse::grantToken)).setter(setter(Builder::grantToken))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantToken").build()).build();
+
+    private static final SdkField<String> GRANT_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantId").getter(getter(CreateGrantResponse::grantId)).setter(setter(Builder::grantId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(GRANT_TOKEN_FIELD,
+            GRANT_ID_FIELD));
+
+    private final String grantToken;
+
+    private final String grantId;
+
+    private CreateGrantResponse(BuilderImpl builder) {
+        super(builder);
+        this.grantToken = builder.grantToken;
+        this.grantId = builder.grantId;
+    }
+
+    /**
+     * <p>
+     * The grant token.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return The grant token.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final String grantToken() {
+        return grantToken;
+    }
+
+    /**
+     * <p>
+     * The unique identifier for the grant.
+     * </p>
+     * <p>
+     * You can use the <code>GrantId</code> in a <a>ListGrants</a>, <a>RetireGrant</a>, or <a>RevokeGrant</a> operation.
+     * </p>
+     * 
+     * @return The unique identifier for the grant.</p>
+     *         <p>
+     *         You can use the <code>GrantId</code> in a <a>ListGrants</a>, <a>RetireGrant</a>, or <a>RevokeGrant</a>
+     *         operation.
+     */
+    public final String grantId() {
+        return grantId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(grantToken());
+        hashCode = 31 * hashCode + Objects.hashCode(grantId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateGrantResponse)) {
+            return false;
+        }
+        CreateGrantResponse other = (CreateGrantResponse) obj;
+        return Objects.equals(grantToken(), other.grantToken()) && Objects.equals(grantId(), other.grantId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateGrantResponse").add("GrantToken", grantToken()).add("GrantId", grantId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "GrantToken":
+            return Optional.ofNullable(clazz.cast(grantToken()));
+        case "GrantId":
+            return Optional.ofNullable(clazz.cast(grantId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateGrantResponse, T> g) {
+        return obj -> g.apply((CreateGrantResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, CreateGrantResponse> {
+        /**
+         * <p>
+         * The grant token.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantToken
+         *        The grant token.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantToken(String grantToken);
+
+        /**
+         * <p>
+         * The unique identifier for the grant.
+         * </p>
+         * <p>
+         * You can use the <code>GrantId</code> in a <a>ListGrants</a>, <a>RetireGrant</a>, or <a>RevokeGrant</a>
+         * operation.
+         * </p>
+         * 
+         * @param grantId
+         *        The unique identifier for the grant.</p>
+         *        <p>
+         *        You can use the <code>GrantId</code> in a <a>ListGrants</a>, <a>RetireGrant</a>, or <a>RevokeGrant</a>
+         *        operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantId(String grantId);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String grantToken;
+
+        private String grantId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateGrantResponse model) {
+            super(model);
+            grantToken(model.grantToken);
+            grantId(model.grantId);
+        }
+
+        public final String getGrantToken() {
+            return grantToken;
+        }
+
+        public final void setGrantToken(String grantToken) {
+            this.grantToken = grantToken;
+        }
+
+        @Override
+        public final Builder grantToken(String grantToken) {
+            this.grantToken = grantToken;
+            return this;
+        }
+
+        public final String getGrantId() {
+            return grantId;
+        }
+
+        public final void setGrantId(String grantId) {
+            this.grantId = grantId;
+        }
+
+        @Override
+        public final Builder grantId(String grantId) {
+            this.grantId = grantId;
+            return this;
+        }
+
+        @Override
+        public CreateGrantResponse build() {
+            return new CreateGrantResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateKeyRequest.java
new file mode 100644
index 0000000..1c49a27
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateKeyRequest.java
@@ -0,0 +1,3268 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateKeyRequest extends KmsRequest implements ToCopyableBuilder<CreateKeyRequest.Builder, CreateKeyRequest> {
+    private static final SdkField<String> POLICY_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Policy")
+            .getter(getter(CreateKeyRequest::policy)).setter(setter(Builder::policy))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Policy").build()).build();
+
+    private static final SdkField<String> DESCRIPTION_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("Description").getter(getter(CreateKeyRequest::description)).setter(setter(Builder::description))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build();
+
+    private static final SdkField<String> KEY_USAGE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyUsage").getter(getter(CreateKeyRequest::keyUsageAsString)).setter(setter(Builder::keyUsage))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyUsage").build()).build();
+
+    private static final SdkField<String> CUSTOMER_MASTER_KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomerMasterKeySpec").getter(getter(CreateKeyRequest::customerMasterKeySpecAsString))
+            .setter(setter(Builder::customerMasterKeySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomerMasterKeySpec").build())
+            .build();
+
+    private static final SdkField<String> KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeySpec").getter(getter(CreateKeyRequest::keySpecAsString)).setter(setter(Builder::keySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeySpec").build()).build();
+
+    private static final SdkField<String> ORIGIN_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Origin")
+            .getter(getter(CreateKeyRequest::originAsString)).setter(setter(Builder::origin))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Origin").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(CreateKeyRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final SdkField<Boolean> BYPASS_POLICY_LOCKOUT_SAFETY_CHECK_FIELD = SdkField
+            .<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("BypassPolicyLockoutSafetyCheck")
+            .getter(getter(CreateKeyRequest::bypassPolicyLockoutSafetyCheck))
+            .setter(setter(Builder::bypassPolicyLockoutSafetyCheck))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BypassPolicyLockoutSafetyCheck")
+                    .build()).build();
+
+    private static final SdkField<List<Tag>> TAGS_FIELD = SdkField
+            .<List<Tag>> builder(MarshallingType.LIST)
+            .memberName("Tags")
+            .getter(getter(CreateKeyRequest::tags))
+            .setter(setter(Builder::tags))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<Tag> builder(MarshallingType.SDK_POJO)
+                                            .constructor(Tag::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> MULTI_REGION_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("MultiRegion").getter(getter(CreateKeyRequest::multiRegion)).setter(setter(Builder::multiRegion))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiRegion").build()).build();
+
+    private static final SdkField<String> XKS_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksKeyId").getter(getter(CreateKeyRequest::xksKeyId)).setter(setter(Builder::xksKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksKeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays
+            .asList(POLICY_FIELD, DESCRIPTION_FIELD, KEY_USAGE_FIELD, CUSTOMER_MASTER_KEY_SPEC_FIELD, KEY_SPEC_FIELD,
+                    ORIGIN_FIELD, CUSTOM_KEY_STORE_ID_FIELD, BYPASS_POLICY_LOCKOUT_SAFETY_CHECK_FIELD, TAGS_FIELD,
+                    MULTI_REGION_FIELD, XKS_KEY_ID_FIELD));
+
+    private final String policy;
+
+    private final String description;
+
+    private final String keyUsage;
+
+    private final String customerMasterKeySpec;
+
+    private final String keySpec;
+
+    private final String origin;
+
+    private final String customKeyStoreId;
+
+    private final Boolean bypassPolicyLockoutSafetyCheck;
+
+    private final List<Tag> tags;
+
+    private final Boolean multiRegion;
+
+    private final String xksKeyId;
+
+    private CreateKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.policy = builder.policy;
+        this.description = builder.description;
+        this.keyUsage = builder.keyUsage;
+        this.customerMasterKeySpec = builder.customerMasterKeySpec;
+        this.keySpec = builder.keySpec;
+        this.origin = builder.origin;
+        this.customKeyStoreId = builder.customKeyStoreId;
+        this.bypassPolicyLockoutSafetyCheck = builder.bypassPolicyLockoutSafetyCheck;
+        this.tags = builder.tags;
+        this.multiRegion = builder.multiRegion;
+        this.xksKeyId = builder.xksKeyId;
+    }
+
+    /**
+     * <p>
+     * The key policy to attach to the KMS key.
+     * </p>
+     * <p>
+     * If you provide a key policy, it must meet the following criteria:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the KMS
+     * key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set
+     * <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Each statement in the key policy must contain one or more principals. The principals in the key policy must exist
+     * and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a delay
+     * before including the new principal in a key policy because the new principal might not be immediately visible to
+     * KMS. For more information, see <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+     * >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access
+     * Management User Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If you do not provide a key policy, KMS attaches a default key policy to the KMS key. For more information, see
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">Default key
+     * policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * The key policy size quota is 32 kilobytes (32768 bytes).
+     * </p>
+     * <p>
+     * For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>.
+     * </p>
+     * 
+     * @return The key policy to attach to the KMS key.</p>
+     *         <p>
+     *         If you provide a key policy, it must meet the following criteria:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on
+     *         the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a
+     *         href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     *         >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition,
+     *         set <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Each statement in the key policy must contain one or more principals. The principals in the key policy
+     *         must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to
+     *         enforce a delay before including the new principal in a key policy because the new principal might not be
+     *         immediately visible to KMS. For more information, see <a href=
+     *         "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+     *         >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and
+     *         Access Management User Guide</i>.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         If you do not provide a key policy, KMS attaches a default key policy to the KMS key. For more
+     *         information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">Default
+     *         key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         The key policy size quota is 32 kilobytes (32768 bytes).
+     *         </p>
+     *         <p>
+     *         For help writing and formatting a JSON policy document, see the <a
+     *         href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy
+     *         Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     */
+    public final String policy() {
+        return policy;
+    }
+
+    /**
+     * <p>
+     * A description of the KMS key. Use a description that helps you decide whether the KMS key is appropriate for a
+     * task. The default value is an empty string (no description).
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * To set or change the description after the key is created, use <a>UpdateKeyDescription</a>.
+     * </p>
+     * 
+     * @return A description of the KMS key. Use a description that helps you decide whether the KMS key is appropriate
+     *         for a task. The default value is an empty string (no description).</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         To set or change the description after the key is created, use <a>UpdateKeyDescription</a>.
+     */
+    public final String description() {
+        return description;
+    }
+
+    /**
+     * <p>
+     * Determines the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> for which you can use the KMS key. The default value is <code>ENCRYPT_DECRYPT</code>. This
+     * parameter is optional when you are creating a symmetric encryption KMS key; otherwise, it is required. You can't
+     * change the <code>KeyUsage</code> value after the KMS key is created.
+     * </p>
+     * <p>
+     * Select only one valid value.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or <code>SIGN_VERIFY</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For asymmetric KMS keys with SM2 key material (China Regions only), specify <code>ENCRYPT_DECRYPT</code> or
+     * <code>SIGN_VERIFY</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyUsage} will
+     * return {@link KeyUsageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyUsageAsString}.
+     * </p>
+     * 
+     * @return Determines the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operations</a> for which you can use the KMS key. The default value is
+     *         <code>ENCRYPT_DECRYPT</code>. This parameter is optional when you are creating a symmetric encryption KMS
+     *         key; otherwise, it is required. You can't change the <code>KeyUsage</code> value after the KMS key is
+     *         created.</p>
+     *         <p>
+     *         Select only one valid value.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or
+     *         <code>SIGN_VERIFY</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For asymmetric KMS keys with SM2 key material (China Regions only), specify <code>ENCRYPT_DECRYPT</code>
+     *         or <code>SIGN_VERIFY</code>.
+     *         </p>
+     *         </li>
+     * @see KeyUsageType
+     */
+    public final KeyUsageType keyUsage() {
+        return KeyUsageType.fromValue(keyUsage);
+    }
+
+    /**
+     * <p>
+     * Determines the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> for which you can use the KMS key. The default value is <code>ENCRYPT_DECRYPT</code>. This
+     * parameter is optional when you are creating a symmetric encryption KMS key; otherwise, it is required. You can't
+     * change the <code>KeyUsage</code> value after the KMS key is created.
+     * </p>
+     * <p>
+     * Select only one valid value.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or <code>SIGN_VERIFY</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * For asymmetric KMS keys with SM2 key material (China Regions only), specify <code>ENCRYPT_DECRYPT</code> or
+     * <code>SIGN_VERIFY</code>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyUsage} will
+     * return {@link KeyUsageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyUsageAsString}.
+     * </p>
+     * 
+     * @return Determines the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operations</a> for which you can use the KMS key. The default value is
+     *         <code>ENCRYPT_DECRYPT</code>. This parameter is optional when you are creating a symmetric encryption KMS
+     *         key; otherwise, it is required. You can't change the <code>KeyUsage</code> value after the KMS key is
+     *         created.</p>
+     *         <p>
+     *         Select only one valid value.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or
+     *         <code>SIGN_VERIFY</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         For asymmetric KMS keys with SM2 key material (China Regions only), specify <code>ENCRYPT_DECRYPT</code>
+     *         or <code>SIGN_VERIFY</code>.
+     *         </p>
+     *         </li>
+     * @see KeyUsageType
+     */
+    public final String keyUsageAsString() {
+        return keyUsage;
+    }
+
+    /**
+     * <p>
+     * Instead, use the <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the names
+     * differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid breaking
+     * changes, KMS supports both parameters.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customerMasterKeySpec} will return {@link CustomerMasterKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #customerMasterKeySpecAsString}.
+     * </p>
+     * 
+     * @return Instead, use the <code>KeySpec</code> parameter.</p>
+     *         <p>
+     *         The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the
+     *         names differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid
+     *         breaking changes, KMS supports both parameters.
+     * @see CustomerMasterKeySpec
+     * @deprecated This parameter has been deprecated. Instead, use the KeySpec parameter.
+     */
+    @Deprecated
+    public final CustomerMasterKeySpec customerMasterKeySpec() {
+        return CustomerMasterKeySpec.fromValue(customerMasterKeySpec);
+    }
+
+    /**
+     * <p>
+     * Instead, use the <code>KeySpec</code> parameter.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the names
+     * differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid breaking
+     * changes, KMS supports both parameters.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customerMasterKeySpec} will return {@link CustomerMasterKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #customerMasterKeySpecAsString}.
+     * </p>
+     * 
+     * @return Instead, use the <code>KeySpec</code> parameter.</p>
+     *         <p>
+     *         The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the
+     *         names differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid
+     *         breaking changes, KMS supports both parameters.
+     * @see CustomerMasterKeySpec
+     * @deprecated This parameter has been deprecated. Instead, use the KeySpec parameter.
+     */
+    @Deprecated
+    public final String customerMasterKeySpecAsString() {
+        return customerMasterKeySpec;
+    }
+
+    /**
+     * <p>
+     * Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a KMS key
+     * with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where it creates
+     * a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing a KMS key
+     * type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key pair. It
+     * also determines the algorithms that the KMS key supports. You can't change the <code>KeySpec</code> after the KMS
+     * key is created. To further restrict the algorithms that can be used with the KMS key, use a condition key in its
+     * key policy or IAM policy. For more information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+     * >kms:EncryptionAlgorithm</a>, <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+     * >kms:MacAlgorithm</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+     * >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <important>
+     * <p>
+     * <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services that are
+     * integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These services do not support
+     * asymmetric KMS keys or HMAC KMS keys.
+     * </p>
+     * </important>
+     * <p>
+     * KMS supports the following key specs for KMS keys:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption key (default)
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * HMAC keys (symmetric)
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>HMAC_224</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>HMAC_256</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>HMAC_384</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>HMAC_512</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * Asymmetric RSA key pairs
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * Asymmetric NIST-recommended elliptic curve key pairs
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>ECC_NIST_P256</code> (secp256r1)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>ECC_NIST_P384</code> (secp384r1)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>ECC_NIST_P521</code> (secp521r1)
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * Other asymmetric elliptic curve key pairs
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * SM2 key pairs (China Regions only)
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SM2</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link KeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a KMS
+     *         key with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where
+     *         it creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS
+     *         key, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing a
+     *         KMS key type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.</p>
+     *         <p>
+     *         The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key
+     *         pair. It also determines the algorithms that the KMS key supports. You can't change the
+     *         <code>KeySpec</code> after the KMS key is created. To further restrict the algorithms that can be used
+     *         with the KMS key, use a condition key in its key policy or IAM policy. For more information, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+     *         >kms:EncryptionAlgorithm</a>, <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+     *         >kms:MacAlgorithm</a> or <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+     *         >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         <important>
+     *         <p>
+     *         <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services that
+     *         are integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These services do not
+     *         support asymmetric KMS keys or HMAC KMS keys.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         KMS supports the following key specs for KMS keys:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Symmetric encryption key (default)
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>SYMMETRIC_DEFAULT</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         HMAC keys (symmetric)
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_224</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_256</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_384</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_512</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Asymmetric RSA key pairs
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>RSA_2048</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>RSA_3072</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>RSA_4096</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Asymmetric NIST-recommended elliptic curve key pairs
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>ECC_NIST_P256</code> (secp256r1)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>ECC_NIST_P384</code> (secp384r1)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>ECC_NIST_P521</code> (secp521r1)
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Other asymmetric elliptic curve key pairs
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         SM2 key pairs (China Regions only)
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>SM2</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     * @see KeySpec
+     */
+    public final KeySpec keySpec() {
+        return KeySpec.fromValue(keySpec);
+    }
+
+    /**
+     * <p>
+     * Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a KMS key
+     * with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where it creates
+     * a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing a KMS key
+     * type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key pair. It
+     * also determines the algorithms that the KMS key supports. You can't change the <code>KeySpec</code> after the KMS
+     * key is created. To further restrict the algorithms that can be used with the KMS key, use a condition key in its
+     * key policy or IAM policy. For more information, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+     * >kms:EncryptionAlgorithm</a>, <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+     * >kms:MacAlgorithm</a> or <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+     * >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     * </p>
+     * <important>
+     * <p>
+     * <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services that are
+     * integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These services do not support
+     * asymmetric KMS keys or HMAC KMS keys.
+     * </p>
+     * </important>
+     * <p>
+     * KMS supports the following key specs for KMS keys:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Symmetric encryption key (default)
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SYMMETRIC_DEFAULT</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * HMAC keys (symmetric)
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>HMAC_224</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>HMAC_256</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>HMAC_384</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>HMAC_512</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * Asymmetric RSA key pairs
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>RSA_2048</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_3072</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>RSA_4096</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * Asymmetric NIST-recommended elliptic curve key pairs
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>ECC_NIST_P256</code> (secp256r1)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>ECC_NIST_P384</code> (secp384r1)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>ECC_NIST_P521</code> (secp521r1)
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * Other asymmetric elliptic curve key pairs
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * SM2 key pairs (China Regions only)
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>SM2</code>
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link KeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a KMS
+     *         key with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where
+     *         it creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS
+     *         key, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing a
+     *         KMS key type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.</p>
+     *         <p>
+     *         The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key
+     *         pair. It also determines the algorithms that the KMS key supports. You can't change the
+     *         <code>KeySpec</code> after the KMS key is created. To further restrict the algorithms that can be used
+     *         with the KMS key, use a condition key in its key policy or IAM policy. For more information, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+     *         >kms:EncryptionAlgorithm</a>, <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+     *         >kms:MacAlgorithm</a> or <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+     *         >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+     *         </p>
+     *         <important>
+     *         <p>
+     *         <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services that
+     *         are integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These services do not
+     *         support asymmetric KMS keys or HMAC KMS keys.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         KMS supports the following key specs for KMS keys:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Symmetric encryption key (default)
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>SYMMETRIC_DEFAULT</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         HMAC keys (symmetric)
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_224</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_256</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_384</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>HMAC_512</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Asymmetric RSA key pairs
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>RSA_2048</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>RSA_3072</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>RSA_4096</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Asymmetric NIST-recommended elliptic curve key pairs
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>ECC_NIST_P256</code> (secp256r1)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>ECC_NIST_P384</code> (secp384r1)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>ECC_NIST_P521</code> (secp521r1)
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Other asymmetric elliptic curve key pairs
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         SM2 key pairs (China Regions only)
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>SM2</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     * @see KeySpec
+     */
+    public final String keySpecAsString() {
+        return keySpec;
+    }
+
+    /**
+     * <p>
+     * The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The
+     * default is <code>AWS_KMS</code>, which means that KMS creates the key material.
+     * </p>
+     * <p>
+     * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a KMS
+     * key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value is valid only for
+     * symmetric KMS keys.
+     * </p>
+     * <p>
+     * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS key in
+     * an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this value to
+     * <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to identify the CloudHSM
+     * key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
+     * </p>
+     * <p>
+     * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key in an
+     * external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
+     * <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
+     * parameter to identify the associated external key. The <code>KeySpec</code> value must be
+     * <code>SYMMETRIC_DEFAULT</code>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #origin} will
+     * return {@link OriginType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #originAsString}.
+     * </p>
+     * 
+     * @return The source of the key material for the KMS key. You cannot change the origin after you create the KMS
+     *         key. The default is <code>AWS_KMS</code>, which means that KMS creates the key material.</p>
+     *         <p>
+     *         To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create
+     *         a KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>.
+     *         For more information about importing key material into KMS, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
+     *         Material</a> in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value
+     *         is valid only for symmetric KMS keys.
+     *         </p>
+     *         <p>
+     *         To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS
+     *         key in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this
+     *         value to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to
+     *         identify the CloudHSM key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
+     *         </p>
+     *         <p>
+     *         To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key
+     *         in an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
+     *         <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
+     *         parameter to identify the associated external key. The <code>KeySpec</code> value must be
+     *         <code>SYMMETRIC_DEFAULT</code>.
+     * @see OriginType
+     */
+    public final OriginType origin() {
+        return OriginType.fromValue(origin);
+    }
+
+    /**
+     * <p>
+     * The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The
+     * default is <code>AWS_KMS</code>, which means that KMS creates the key material.
+     * </p>
+     * <p>
+     * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a KMS
+     * key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>. For more
+     * information about importing key material into KMS, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
+     * the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value is valid only for
+     * symmetric KMS keys.
+     * </p>
+     * <p>
+     * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS key in
+     * an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this value to
+     * <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to identify the CloudHSM
+     * key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
+     * </p>
+     * <p>
+     * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key in an
+     * external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
+     * <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
+     * parameter to identify the associated external key. The <code>KeySpec</code> value must be
+     * <code>SYMMETRIC_DEFAULT</code>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #origin} will
+     * return {@link OriginType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #originAsString}.
+     * </p>
+     * 
+     * @return The source of the key material for the KMS key. You cannot change the origin after you create the KMS
+     *         key. The default is <code>AWS_KMS</code>, which means that KMS creates the key material.</p>
+     *         <p>
+     *         To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create
+     *         a KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>.
+     *         For more information about importing key material into KMS, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
+     *         Material</a> in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value
+     *         is valid only for symmetric KMS keys.
+     *         </p>
+     *         <p>
+     *         To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS
+     *         key in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this
+     *         value to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to
+     *         identify the CloudHSM key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
+     *         </p>
+     *         <p>
+     *         To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key
+     *         in an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
+     *         <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
+     *         parameter to identify the associated external key. The <code>KeySpec</code> value must be
+     *         <code>SYMMETRIC_DEFAULT</code>.
+     * @see OriginType
+     */
+    public final String originAsString() {
+        return origin;
+    }
+
+    /**
+     * <p>
+     * Creates the KMS key in the specified <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * The <code>ConnectionState</code> of the custom key store must be <code>CONNECTED</code>. To find the
+     * CustomKeyStoreID and ConnectionState use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * This parameter is valid only for symmetric encryption KMS keys in a single Region. You cannot create any other
+     * type of KMS key in a custom key store.
+     * </p>
+     * <p>
+     * When you create a KMS key in an CloudHSM key store, KMS generates a non-exportable 256-bit symmetric key in its
+     * associated CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key
+     * store, you must use the <code>XksKeyId</code> parameter to specify an external key that serves as key material
+     * for the KMS key.
+     * </p>
+     * 
+     * @return Creates the KMS key in the specified <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     *         store</a>. The <code>ConnectionState</code> of the custom key store must be <code>CONNECTED</code>. To
+     *         find the CustomKeyStoreID and ConnectionState use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         This parameter is valid only for symmetric encryption KMS keys in a single Region. You cannot create any
+     *         other type of KMS key in a custom key store.
+     *         </p>
+     *         <p>
+     *         When you create a KMS key in an CloudHSM key store, KMS generates a non-exportable 256-bit symmetric key
+     *         in its associated CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an
+     *         external key store, you must use the <code>XksKeyId</code> parameter to specify an external key that
+     *         serves as key material for the KMS key.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * Skips ("bypasses") the key policy lockout safety check. The default value is false.
+     * </p>
+     * <important>
+     * <p>
+     * Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to
+     * true indiscriminately.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </important>
+     * <p>
+     * Use this parameter only when you intend to prevent the principal that is making the request from making a
+     * subsequent <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * request on the KMS key.
+     * </p>
+     * 
+     * @return Skips ("bypasses") the key policy lockout safety check. The default value is false.</p> <important>
+     *         <p>
+     *         Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this
+     *         value to true indiscriminately.
+     *         </p>
+     *         <p>
+     *         For more information, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     *         >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         Use this parameter only when you intend to prevent the principal that is making the request from making a
+     *         subsequent <a
+     *         href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request
+     *         on the KMS key.
+     */
+    public final Boolean bypassPolicyLockoutSafetyCheck() {
+        return bypassPolicyLockoutSafetyCheck;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
+     * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
+     * because the SDK will never return a null collection or map, but you may need to differentiate between the service
+     * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
+     * if a value for the property was specified in the request builder, and false if a value was not specified.
+     */
+    public final boolean hasTags() {
+        return tags != null && !(tags instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag an
+     * existing KMS key, use the <a>TagResource</a> operation.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * To use this parameter, you must have <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> permission in an IAM policy.
+     * </p>
+     * <p>
+     * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+     * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If you
+     * specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified
+     * one.
+     * </p>
+     * <p>
+     * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report with
+     * usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasTags} method.
+     * </p>
+     * 
+     * @return Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag
+     *         an existing KMS key, use the <a>TagResource</a> operation.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important> <note>
+     *         <p>
+     *         Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     *         </p>
+     *         </note>
+     *         <p>
+     *         To use this parameter, you must have <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     *         >kms:TagResource</a> permission in an IAM policy.
+     *         </p>
+     *         <p>
+     *         Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the
+     *         tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag
+     *         key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value
+     *         with the specified one.
+     *         </p>
+     *         <p>
+     *         When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation
+     *         report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For
+     *         details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging
+     *         Keys</a>.
+     */
+    public final List<Tag> tags() {
+        return tags;
+    }
+
+    /**
+     * <p>
+     * Creates a multi-Region primary key that you can replicate into other Amazon Web Services Regions. You cannot
+     * change this value after you create the KMS key.
+     * </p>
+     * <p>
+     * For a multi-Region key, set this parameter to <code>True</code>. For a single-Region KMS key, omit this parameter
+     * or set it to <code>False</code>. The default value is <code>False</code>.
+     * </p>
+     * <p>
+     * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable KMS
+     * keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and
+     * other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it
+     * in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more
+     * information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * This value creates a <i>primary key</i>, not a replica. To create a <i>replica key</i>, use the
+     * <a>ReplicateKey</a> operation.
+     * </p>
+     * <p>
+     * You can create a symmetric or asymmetric multi-Region key, and you can create a multi-Region key with imported
+     * key material. However, you cannot create a multi-Region key in a custom key store.
+     * </p>
+     * 
+     * @return Creates a multi-Region primary key that you can replicate into other Amazon Web Services Regions. You
+     *         cannot change this value after you create the KMS key. </p>
+     *         <p>
+     *         For a multi-Region key, set this parameter to <code>True</code>. For a single-Region KMS key, omit this
+     *         parameter or set it to <code>False</code>. The default value is <code>False</code>.
+     *         </p>
+     *         <p>
+     *         This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple
+     *         interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key
+     *         ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web
+     *         Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data
+     *         or making a cross-Region call. For more information about multi-Region keys, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region
+     *         keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         This value creates a <i>primary key</i>, not a replica. To create a <i>replica key</i>, use the
+     *         <a>ReplicateKey</a> operation.
+     *         </p>
+     *         <p>
+     *         You can create a symmetric or asymmetric multi-Region key, and you can create a multi-Region key with
+     *         imported key material. However, you cannot create a multi-Region key in a custom key store.
+     */
+    public final Boolean multiRegion() {
+        return multiRegion;
+    }
+
+    /**
+     * <p>
+     * Identifies the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key">external
+     * key</a> that serves as key material for the KMS key in an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>.
+     * Specify the ID that the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy">external
+     * key store proxy</a> uses to refer to the external key. For help, see the documentation for your external key
+     * store proxy.
+     * </p>
+     * <p>
+     * This parameter is required for a KMS key with an <code>Origin</code> value of <code>EXTERNAL_KEY_STORE</code>. It
+     * is not valid for KMS keys with any other <code>Origin</code> value.
+     * </p>
+     * <p>
+     * The external key must be an existing 256-bit AES symmetric encryption key hosted outside of Amazon Web Services
+     * in an external key manager associated with the external key store specified by the <code>CustomKeyStoreId</code>
+     * parameter. This key must be enabled and configured to perform encryption and decryption. Each KMS key in an
+     * external key store must use a different external key. For details, see <a
+     * href="https://docs.aws.amazon.com/create-xks-keys.html#xks-key-requirements">Requirements for a KMS key in an
+     * external key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Each KMS key in an external key store is associated two backing keys. One is key material that KMS generates. The
+     * other is the external key specified by this parameter. When you use the KMS key in an external key store to
+     * encrypt data, the encryption operation is performed first by KMS using the KMS key material, and then by the
+     * external key manager using the specified external key, a process known as <i>double encryption</i>. For details,
+     * see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption"
+     * >Double encryption</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Identifies the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+     *         >external key</a> that serves as key material for the KMS key in an <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key
+     *         store</a>. Specify the ID that the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy"
+     *         >external key store proxy</a> uses to refer to the external key. For help, see the documentation for your
+     *         external key store proxy.</p>
+     *         <p>
+     *         This parameter is required for a KMS key with an <code>Origin</code> value of
+     *         <code>EXTERNAL_KEY_STORE</code>. It is not valid for KMS keys with any other <code>Origin</code> value.
+     *         </p>
+     *         <p>
+     *         The external key must be an existing 256-bit AES symmetric encryption key hosted outside of Amazon Web
+     *         Services in an external key manager associated with the external key store specified by the
+     *         <code>CustomKeyStoreId</code> parameter. This key must be enabled and configured to perform encryption
+     *         and decryption. Each KMS key in an external key store must use a different external key. For details, see
+     *         <a href="https://docs.aws.amazon.com/create-xks-keys.html#xks-key-requirements">Requirements for a KMS
+     *         key in an external key store</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         Each KMS key in an external key store is associated two backing keys. One is key material that KMS
+     *         generates. The other is the external key specified by this parameter. When you use the KMS key in an
+     *         external key store to encrypt data, the encryption operation is performed first by KMS using the KMS key
+     *         material, and then by the external key manager using the specified external key, a process known as
+     *         <i>double encryption</i>. For details, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption"
+     *         >Double encryption</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final String xksKeyId() {
+        return xksKeyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(policy());
+        hashCode = 31 * hashCode + Objects.hashCode(description());
+        hashCode = 31 * hashCode + Objects.hashCode(keyUsageAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(customerMasterKeySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(originAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        hashCode = 31 * hashCode + Objects.hashCode(bypassPolicyLockoutSafetyCheck());
+        hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(multiRegion());
+        hashCode = 31 * hashCode + Objects.hashCode(xksKeyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateKeyRequest)) {
+            return false;
+        }
+        CreateKeyRequest other = (CreateKeyRequest) obj;
+        return Objects.equals(policy(), other.policy()) && Objects.equals(description(), other.description())
+                && Objects.equals(keyUsageAsString(), other.keyUsageAsString())
+                && Objects.equals(customerMasterKeySpecAsString(), other.customerMasterKeySpecAsString())
+                && Objects.equals(keySpecAsString(), other.keySpecAsString())
+                && Objects.equals(originAsString(), other.originAsString())
+                && Objects.equals(customKeyStoreId(), other.customKeyStoreId())
+                && Objects.equals(bypassPolicyLockoutSafetyCheck(), other.bypassPolicyLockoutSafetyCheck())
+                && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags())
+                && Objects.equals(multiRegion(), other.multiRegion()) && Objects.equals(xksKeyId(), other.xksKeyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateKeyRequest").add("Policy", policy()).add("Description", description())
+                .add("KeyUsage", keyUsageAsString()).add("CustomerMasterKeySpec", customerMasterKeySpecAsString())
+                .add("KeySpec", keySpecAsString()).add("Origin", originAsString()).add("CustomKeyStoreId", customKeyStoreId())
+                .add("BypassPolicyLockoutSafetyCheck", bypassPolicyLockoutSafetyCheck()).add("Tags", hasTags() ? tags() : null)
+                .add("MultiRegion", multiRegion()).add("XksKeyId", xksKeyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Policy":
+            return Optional.ofNullable(clazz.cast(policy()));
+        case "Description":
+            return Optional.ofNullable(clazz.cast(description()));
+        case "KeyUsage":
+            return Optional.ofNullable(clazz.cast(keyUsageAsString()));
+        case "CustomerMasterKeySpec":
+            return Optional.ofNullable(clazz.cast(customerMasterKeySpecAsString()));
+        case "KeySpec":
+            return Optional.ofNullable(clazz.cast(keySpecAsString()));
+        case "Origin":
+            return Optional.ofNullable(clazz.cast(originAsString()));
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        case "BypassPolicyLockoutSafetyCheck":
+            return Optional.ofNullable(clazz.cast(bypassPolicyLockoutSafetyCheck()));
+        case "Tags":
+            return Optional.ofNullable(clazz.cast(tags()));
+        case "MultiRegion":
+            return Optional.ofNullable(clazz.cast(multiRegion()));
+        case "XksKeyId":
+            return Optional.ofNullable(clazz.cast(xksKeyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateKeyRequest, T> g) {
+        return obj -> g.apply((CreateKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, CreateKeyRequest> {
+        /**
+         * <p>
+         * The key policy to attach to the KMS key.
+         * </p>
+         * <p>
+         * If you provide a key policy, it must meet the following criteria:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the
+         * KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set
+         * <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Each statement in the key policy must contain one or more principals. The principals in the key policy must
+         * exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a
+         * delay before including the new principal in a key policy because the new principal might not be immediately
+         * visible to KMS. For more information, see <a href=
+         * "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+         * >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access
+         * Management User Guide</i>.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * If you do not provide a key policy, KMS attaches a default key policy to the KMS key. For more information,
+         * see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">Default key
+         * policy</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * The key policy size quota is 32 kilobytes (32768 bytes).
+         * </p>
+         * <p>
+         * For help writing and formatting a JSON policy document, see the <a
+         * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a>
+         * in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * </p>
+         * 
+         * @param policy
+         *        The key policy to attach to the KMS key.</p>
+         *        <p>
+         *        If you provide a key policy, it must meet the following criteria:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request
+         *        on the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see
+         *        <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition,
+         *        set <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Each statement in the key policy must contain one or more principals. The principals in the key policy
+         *        must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need
+         *        to enforce a delay before including the new principal in a key policy because the new principal might
+         *        not be immediately visible to KMS. For more information, see <a href=
+         *        "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+         *        >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and
+         *        Access Management User Guide</i>.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        If you do not provide a key policy, KMS attaches a default key policy to the KMS key. For more
+         *        information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        The key policy size quota is 32 kilobytes (32768 bytes).
+         *        </p>
+         *        <p>
+         *        For help writing and formatting a JSON policy document, see the <a
+         *        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy
+         *        Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policy(String policy);
+
+        /**
+         * <p>
+         * A description of the KMS key. Use a description that helps you decide whether the KMS key is appropriate for
+         * a task. The default value is an empty string (no description).
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * To set or change the description after the key is created, use <a>UpdateKeyDescription</a>.
+         * </p>
+         * 
+         * @param description
+         *        A description of the KMS key. Use a description that helps you decide whether the KMS key is
+         *        appropriate for a task. The default value is an empty string (no description).</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        To set or change the description after the key is created, use <a>UpdateKeyDescription</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder description(String description);
+
+        /**
+         * <p>
+         * Determines the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         * >cryptographic operations</a> for which you can use the KMS key. The default value is
+         * <code>ENCRYPT_DECRYPT</code>. This parameter is optional when you are creating a symmetric encryption KMS
+         * key; otherwise, it is required. You can't change the <code>KeyUsage</code> value after the KMS key is
+         * created.
+         * </p>
+         * <p>
+         * Select only one valid value.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For asymmetric KMS keys with SM2 key material (China Regions only), specify <code>ENCRYPT_DECRYPT</code> or
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param keyUsage
+         *        Determines the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operations</a> for which you can use the KMS key. The default value is
+         *        <code>ENCRYPT_DECRYPT</code>. This parameter is optional when you are creating a symmetric encryption
+         *        KMS key; otherwise, it is required. You can't change the <code>KeyUsage</code> value after the KMS key
+         *        is created.</p>
+         *        <p>
+         *        Select only one valid value.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or
+         *        <code>SIGN_VERIFY</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For asymmetric KMS keys with SM2 key material (China Regions only), specify
+         *        <code>ENCRYPT_DECRYPT</code> or <code>SIGN_VERIFY</code>.
+         *        </p>
+         *        </li>
+         * @see KeyUsageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyUsageType
+         */
+        Builder keyUsage(String keyUsage);
+
+        /**
+         * <p>
+         * Determines the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         * >cryptographic operations</a> for which you can use the KMS key. The default value is
+         * <code>ENCRYPT_DECRYPT</code>. This parameter is optional when you are creating a symmetric encryption KMS
+         * key; otherwise, it is required. You can't change the <code>KeyUsage</code> value after the KMS key is
+         * created.
+         * </p>
+         * <p>
+         * Select only one valid value.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * For asymmetric KMS keys with SM2 key material (China Regions only), specify <code>ENCRYPT_DECRYPT</code> or
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param keyUsage
+         *        Determines the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operations</a> for which you can use the KMS key. The default value is
+         *        <code>ENCRYPT_DECRYPT</code>. This parameter is optional when you are creating a symmetric encryption
+         *        KMS key; otherwise, it is required. You can't change the <code>KeyUsage</code> value after the KMS key
+         *        is created.</p>
+         *        <p>
+         *        Select only one valid value.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        For symmetric encryption KMS keys, omit the parameter or specify <code>ENCRYPT_DECRYPT</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For HMAC KMS keys (symmetric), specify <code>GENERATE_VERIFY_MAC</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For asymmetric KMS keys with RSA key material, specify <code>ENCRYPT_DECRYPT</code> or
+         *        <code>SIGN_VERIFY</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For asymmetric KMS keys with ECC key material, specify <code>SIGN_VERIFY</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        For asymmetric KMS keys with SM2 key material (China Regions only), specify
+         *        <code>ENCRYPT_DECRYPT</code> or <code>SIGN_VERIFY</code>.
+         *        </p>
+         *        </li>
+         * @see KeyUsageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyUsageType
+         */
+        Builder keyUsage(KeyUsageType keyUsage);
+
+        /**
+         * <p>
+         * Instead, use the <code>KeySpec</code> parameter.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the names
+         * differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid breaking
+         * changes, KMS supports both parameters.
+         * </p>
+         * 
+         * @param customerMasterKeySpec
+         *        Instead, use the <code>KeySpec</code> parameter.</p>
+         *        <p>
+         *        The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the
+         *        names differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid
+         *        breaking changes, KMS supports both parameters.
+         * @see CustomerMasterKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomerMasterKeySpec
+         * @deprecated This parameter has been deprecated. Instead, use the KeySpec parameter.
+         */
+        @Deprecated
+        Builder customerMasterKeySpec(String customerMasterKeySpec);
+
+        /**
+         * <p>
+         * Instead, use the <code>KeySpec</code> parameter.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the names
+         * differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid breaking
+         * changes, KMS supports both parameters.
+         * </p>
+         * 
+         * @param customerMasterKeySpec
+         *        Instead, use the <code>KeySpec</code> parameter.</p>
+         *        <p>
+         *        The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> parameters work the same way. Only the
+         *        names differ. We recommend that you use <code>KeySpec</code> parameter in your code. However, to avoid
+         *        breaking changes, KMS supports both parameters.
+         * @see CustomerMasterKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomerMasterKeySpec
+         * @deprecated This parameter has been deprecated. Instead, use the KeySpec parameter.
+         */
+        @Deprecated
+        Builder customerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec);
+
+        /**
+         * <p>
+         * Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a KMS key
+         * with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where it
+         * creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS key, see
+         * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing a
+         * KMS key type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key pair.
+         * It also determines the algorithms that the KMS key supports. You can't change the <code>KeySpec</code> after
+         * the KMS key is created. To further restrict the algorithms that can be used with the KMS key, use a condition
+         * key in its key policy or IAM policy. For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+         * >kms:EncryptionAlgorithm</a>, <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+         * >kms:MacAlgorithm</a> or <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+         * >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * <important>
+         * <p>
+         * <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services that are
+         * integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These services do not support
+         * asymmetric KMS keys or HMAC KMS keys.
+         * </p>
+         * </important>
+         * <p>
+         * KMS supports the following key specs for KMS keys:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Symmetric encryption key (default)
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>SYMMETRIC_DEFAULT</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * HMAC keys (symmetric)
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>HMAC_224</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>HMAC_256</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>HMAC_384</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>HMAC_512</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * Asymmetric RSA key pairs
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>RSA_2048</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>RSA_3072</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>RSA_4096</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * Asymmetric NIST-recommended elliptic curve key pairs
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>ECC_NIST_P256</code> (secp256r1)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>ECC_NIST_P384</code> (secp384r1)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>ECC_NIST_P521</code> (secp521r1)
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * Other asymmetric elliptic curve key pairs
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * SM2 key pairs (China Regions only)
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>SM2</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * </ul>
+         * 
+         * @param keySpec
+         *        Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a
+         *        KMS key with a 256-bit AES-GCM key that is used for encryption and decryption, except in China
+         *        Regions, where it creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key
+         *        spec for your KMS key, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing
+         *        a KMS key type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.</p>
+         *        <p>
+         *        The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key
+         *        pair. It also determines the algorithms that the KMS key supports. You can't change the
+         *        <code>KeySpec</code> after the KMS key is created. To further restrict the algorithms that can be used
+         *        with the KMS key, use a condition key in its key policy or IAM policy. For more information, see <a
+         *        href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+         *        >kms:EncryptionAlgorithm</a>, <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+         *        >kms:MacAlgorithm</a> or <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+         *        >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         *        </p>
+         *        <important>
+         *        <p>
+         *        <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services
+         *        that are integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These
+         *        services do not support asymmetric KMS keys or HMAC KMS keys.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        KMS supports the following key specs for KMS keys:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Symmetric encryption key (default)
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>SYMMETRIC_DEFAULT</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        HMAC keys (symmetric)
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_224</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_256</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_384</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_512</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Asymmetric RSA key pairs
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>RSA_2048</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>RSA_3072</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>RSA_4096</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Asymmetric NIST-recommended elliptic curve key pairs
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>ECC_NIST_P256</code> (secp256r1)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>ECC_NIST_P384</code> (secp384r1)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>ECC_NIST_P521</code> (secp521r1)
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Other asymmetric elliptic curve key pairs
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        SM2 key pairs (China Regions only)
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>SM2</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         * @see KeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeySpec
+         */
+        Builder keySpec(String keySpec);
+
+        /**
+         * <p>
+         * Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a KMS key
+         * with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where it
+         * creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS key, see
+         * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing a
+         * KMS key type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key pair.
+         * It also determines the algorithms that the KMS key supports. You can't change the <code>KeySpec</code> after
+         * the KMS key is created. To further restrict the algorithms that can be used with the KMS key, use a condition
+         * key in its key policy or IAM policy. For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+         * >kms:EncryptionAlgorithm</a>, <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+         * >kms:MacAlgorithm</a> or <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+         * >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         * </p>
+         * <important>
+         * <p>
+         * <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services that are
+         * integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These services do not support
+         * asymmetric KMS keys or HMAC KMS keys.
+         * </p>
+         * </important>
+         * <p>
+         * KMS supports the following key specs for KMS keys:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Symmetric encryption key (default)
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>SYMMETRIC_DEFAULT</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * HMAC keys (symmetric)
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>HMAC_224</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>HMAC_256</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>HMAC_384</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>HMAC_512</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * Asymmetric RSA key pairs
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>RSA_2048</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>RSA_3072</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>RSA_4096</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * Asymmetric NIST-recommended elliptic curve key pairs
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>ECC_NIST_P256</code> (secp256r1)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>ECC_NIST_P384</code> (secp384r1)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>ECC_NIST_P521</code> (secp521r1)
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * Other asymmetric elliptic curve key pairs
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * SM2 key pairs (China Regions only)
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>SM2</code>
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * </ul>
+         * 
+         * @param keySpec
+         *        Specifies the type of KMS key to create. The default value, <code>SYMMETRIC_DEFAULT</code>, creates a
+         *        KMS key with a 256-bit AES-GCM key that is used for encryption and decryption, except in China
+         *        Regions, where it creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key
+         *        spec for your KMS key, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose">Choosing
+         *        a KMS key type</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.</p>
+         *        <p>
+         *        The <code>KeySpec</code> determines whether the KMS key contains a symmetric key or an asymmetric key
+         *        pair. It also determines the algorithms that the KMS key supports. You can't change the
+         *        <code>KeySpec</code> after the KMS key is created. To further restrict the algorithms that can be used
+         *        with the KMS key, use a condition key in its key policy or IAM policy. For more information, see <a
+         *        href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm"
+         *        >kms:EncryptionAlgorithm</a>, <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm"
+         *        >kms:MacAlgorithm</a> or <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm"
+         *        >kms:Signing Algorithm</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+         *        </p>
+         *        <important>
+         *        <p>
+         *        <a href="http://aws.amazon.com/kms/features/#AWS_Service_Integration">Amazon Web Services services
+         *        that are integrated with KMS</a> use symmetric encryption KMS keys to protect your data. These
+         *        services do not support asymmetric KMS keys or HMAC KMS keys.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        KMS supports the following key specs for KMS keys:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Symmetric encryption key (default)
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>SYMMETRIC_DEFAULT</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        HMAC keys (symmetric)
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_224</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_256</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_384</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>HMAC_512</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Asymmetric RSA key pairs
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>RSA_2048</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>RSA_3072</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>RSA_4096</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Asymmetric NIST-recommended elliptic curve key pairs
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>ECC_NIST_P256</code> (secp256r1)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>ECC_NIST_P384</code> (secp384r1)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>ECC_NIST_P521</code> (secp521r1)
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Other asymmetric elliptic curve key pairs
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>ECC_SECG_P256K1</code> (secp256k1), commonly used for cryptocurrencies.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        SM2 key pairs (China Regions only)
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>SM2</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         * @see KeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeySpec
+         */
+        Builder keySpec(KeySpec keySpec);
+
+        /**
+         * <p>
+         * The source of the key material for the KMS key. You cannot change the origin after you create the KMS key.
+         * The default is <code>AWS_KMS</code>, which means that KMS creates the key material.
+         * </p>
+         * <p>
+         * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a
+         * KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>. For
+         * more information about importing key material into KMS, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a>
+         * in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value is valid only
+         * for symmetric KMS keys.
+         * </p>
+         * <p>
+         * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS key
+         * in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this value
+         * to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to identify the
+         * CloudHSM key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
+         * </p>
+         * <p>
+         * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key in
+         * an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
+         * <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
+         * parameter to identify the associated external key. The <code>KeySpec</code> value must be
+         * <code>SYMMETRIC_DEFAULT</code>.
+         * </p>
+         * 
+         * @param origin
+         *        The source of the key material for the KMS key. You cannot change the origin after you create the KMS
+         *        key. The default is <code>AWS_KMS</code>, which means that KMS creates the key material.</p>
+         *        <p>
+         *        To <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a
+         *        KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>.
+         *        For more information about importing key material into KMS, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
+         *        Material</a> in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin
+         *        value is valid only for symmetric KMS keys.
+         *        </p>
+         *        <p>
+         *        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a
+         *        KMS key in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster,
+         *        set this value to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code>
+         *        parameter to identify the CloudHSM key store. The <code>KeySpec</code> value must be
+         *        <code>SYMMETRIC_DEFAULT</code>.
+         *        </p>
+         *        <p>
+         *        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS
+         *        key in an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use
+         *        the <code>CustomKeyStoreId</code> parameter to identify the external key store and the
+         *        <code>XksKeyId</code> parameter to identify the associated external key. The <code>KeySpec</code>
+         *        value must be <code>SYMMETRIC_DEFAULT</code>.
+         * @see OriginType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see OriginType
+         */
+        Builder origin(String origin);
+
+        /**
+         * <p>
+         * The source of the key material for the KMS key. You cannot change the origin after you create the KMS key.
+         * The default is <code>AWS_KMS</code>, which means that KMS creates the key material.
+         * </p>
+         * <p>
+         * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a
+         * KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>. For
+         * more information about importing key material into KMS, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a>
+         * in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value is valid only
+         * for symmetric KMS keys.
+         * </p>
+         * <p>
+         * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS key
+         * in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this value
+         * to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to identify the
+         * CloudHSM key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
+         * </p>
+         * <p>
+         * To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key in
+         * an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
+         * <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
+         * parameter to identify the associated external key. The <code>KeySpec</code> value must be
+         * <code>SYMMETRIC_DEFAULT</code>.
+         * </p>
+         * 
+         * @param origin
+         *        The source of the key material for the KMS key. You cannot change the origin after you create the KMS
+         *        key. The default is <code>AWS_KMS</code>, which means that KMS creates the key material.</p>
+         *        <p>
+         *        To <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a
+         *        KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>.
+         *        For more information about importing key material into KMS, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
+         *        Material</a> in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin
+         *        value is valid only for symmetric KMS keys.
+         *        </p>
+         *        <p>
+         *        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a
+         *        KMS key in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster,
+         *        set this value to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code>
+         *        parameter to identify the CloudHSM key store. The <code>KeySpec</code> value must be
+         *        <code>SYMMETRIC_DEFAULT</code>.
+         *        </p>
+         *        <p>
+         *        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS
+         *        key in an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use
+         *        the <code>CustomKeyStoreId</code> parameter to identify the external key store and the
+         *        <code>XksKeyId</code> parameter to identify the associated external key. The <code>KeySpec</code>
+         *        value must be <code>SYMMETRIC_DEFAULT</code>.
+         * @see OriginType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see OriginType
+         */
+        Builder origin(OriginType origin);
+
+        /**
+         * <p>
+         * Creates the KMS key in the specified <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         * store</a>. The <code>ConnectionState</code> of the custom key store must be <code>CONNECTED</code>. To find
+         * the CustomKeyStoreID and ConnectionState use the <a>DescribeCustomKeyStores</a> operation.
+         * </p>
+         * <p>
+         * This parameter is valid only for symmetric encryption KMS keys in a single Region. You cannot create any
+         * other type of KMS key in a custom key store.
+         * </p>
+         * <p>
+         * When you create a KMS key in an CloudHSM key store, KMS generates a non-exportable 256-bit symmetric key in
+         * its associated CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external
+         * key store, you must use the <code>XksKeyId</code> parameter to specify an external key that serves as key
+         * material for the KMS key.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Creates the KMS key in the specified <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         *        store</a>. The <code>ConnectionState</code> of the custom key store must be <code>CONNECTED</code>. To
+         *        find the CustomKeyStoreID and ConnectionState use the <a>DescribeCustomKeyStores</a> operation.</p>
+         *        <p>
+         *        This parameter is valid only for symmetric encryption KMS keys in a single Region. You cannot create
+         *        any other type of KMS key in a custom key store.
+         *        </p>
+         *        <p>
+         *        When you create a KMS key in an CloudHSM key store, KMS generates a non-exportable 256-bit symmetric
+         *        key in its associated CloudHSM cluster and associates it with the KMS key. When you create a KMS key
+         *        in an external key store, you must use the <code>XksKeyId</code> parameter to specify an external key
+         *        that serves as key material for the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        /**
+         * <p>
+         * Skips ("bypasses") the key policy lockout safety check. The default value is false.
+         * </p>
+         * <important>
+         * <p>
+         * Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to
+         * true indiscriminately.
+         * </p>
+         * <p>
+         * For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </important>
+         * <p>
+         * Use this parameter only when you intend to prevent the principal that is making the request from making a
+         * subsequent <a
+         * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request on
+         * the KMS key.
+         * </p>
+         * 
+         * @param bypassPolicyLockoutSafetyCheck
+         *        Skips ("bypasses") the key policy lockout safety check. The default value is false.</p> <important>
+         *        <p>
+         *        Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this
+         *        value to true indiscriminately.
+         *        </p>
+         *        <p>
+         *        For more information, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        Use this parameter only when you intend to prevent the principal that is making the request from
+         *        making a subsequent <a
+         *        href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+         *        request on the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder bypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck);
+
+        /**
+         * <p>
+         * Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag an
+         * existing KMS key, use the <a>TagResource</a> operation.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important> <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * To use this parameter, you must have <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         * >kms:TagResource</a> permission in an IAM policy.
+         * </p>
+         * <p>
+         * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+         * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If
+         * you specify an existing tag key with a different tag value, KMS replaces the current tag value with the
+         * specified one.
+         * </p>
+         * <p>
+         * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report
+         * with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details,
+         * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * </p>
+         * 
+         * @param tags
+         *        Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To
+         *        tag an existing KMS key, use the <a>TagResource</a> operation.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important> <note>
+         *        <p>
+         *        Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         *        Management Service Developer Guide</i>.
+         *        </p>
+         *        </note>
+         *        <p>
+         *        To use this parameter, you must have <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         *        >kms:TagResource</a> permission in an IAM policy.
+         *        </p>
+         *        <p>
+         *        Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but
+         *        the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the
+         *        same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current
+         *        tag value with the specified one.
+         *        </p>
+         *        <p>
+         *        When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation
+         *        report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Collection<Tag> tags);
+
+        /**
+         * <p>
+         * Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag an
+         * existing KMS key, use the <a>TagResource</a> operation.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important> <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * To use this parameter, you must have <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         * >kms:TagResource</a> permission in an IAM policy.
+         * </p>
+         * <p>
+         * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+         * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If
+         * you specify an existing tag key with a different tag value, KMS replaces the current tag value with the
+         * specified one.
+         * </p>
+         * <p>
+         * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report
+         * with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details,
+         * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * </p>
+         * 
+         * @param tags
+         *        Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To
+         *        tag an existing KMS key, use the <a>TagResource</a> operation.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important> <note>
+         *        <p>
+         *        Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         *        Management Service Developer Guide</i>.
+         *        </p>
+         *        </note>
+         *        <p>
+         *        To use this parameter, you must have <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         *        >kms:TagResource</a> permission in an IAM policy.
+         *        </p>
+         *        <p>
+         *        Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but
+         *        the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the
+         *        same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current
+         *        tag value with the specified one.
+         *        </p>
+         *        <p>
+         *        When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation
+         *        report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Tag... tags);
+
+        /**
+         * <p>
+         * Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag an
+         * existing KMS key, use the <a>TagResource</a> operation.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important> <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * To use this parameter, you must have <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         * >kms:TagResource</a> permission in an IAM policy.
+         * </p>
+         * <p>
+         * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+         * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If
+         * you specify an existing tag key with a different tag value, KMS replaces the current tag value with the
+         * specified one.
+         * </p>
+         * <p>
+         * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report
+         * with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details,
+         * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.Tag.Builder} avoiding the need to create one manually via
+         * {@link software.amazon.awssdk.services.kms.model.Tag#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link software.amazon.awssdk.services.kms.model.Tag.Builder#build()} is
+         * called immediately and its result is passed to {@link #tags(List<Tag>)}.
+         * 
+         * @param tags
+         *        a consumer that will call methods on {@link software.amazon.awssdk.services.kms.model.Tag.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #tags(java.util.Collection<Tag>)
+         */
+        Builder tags(Consumer<Tag.Builder>... tags);
+
+        /**
+         * <p>
+         * Creates a multi-Region primary key that you can replicate into other Amazon Web Services Regions. You cannot
+         * change this value after you create the KMS key.
+         * </p>
+         * <p>
+         * For a multi-Region key, set this parameter to <code>True</code>. For a single-Region KMS key, omit this
+         * parameter or set it to <code>False</code>. The default value is <code>False</code>.
+         * </p>
+         * <p>
+         * This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple interoperable
+         * KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material,
+         * and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and
+         * decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region
+         * call. For more information about multi-Region keys, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region
+         * keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * This value creates a <i>primary key</i>, not a replica. To create a <i>replica key</i>, use the
+         * <a>ReplicateKey</a> operation.
+         * </p>
+         * <p>
+         * You can create a symmetric or asymmetric multi-Region key, and you can create a multi-Region key with
+         * imported key material. However, you cannot create a multi-Region key in a custom key store.
+         * </p>
+         * 
+         * @param multiRegion
+         *        Creates a multi-Region primary key that you can replicate into other Amazon Web Services Regions. You
+         *        cannot change this value after you create the KMS key. </p>
+         *        <p>
+         *        For a multi-Region key, set this parameter to <code>True</code>. For a single-Region KMS key, omit
+         *        this parameter or set it to <code>False</code>. The default value is <code>False</code>.
+         *        </p>
+         *        <p>
+         *        This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple
+         *        interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same
+         *        key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one
+         *        Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without
+         *        re-encrypting the data or making a cross-Region call. For more information about multi-Region keys,
+         *        see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi
+         *        -Region keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        This value creates a <i>primary key</i>, not a replica. To create a <i>replica key</i>, use the
+         *        <a>ReplicateKey</a> operation.
+         *        </p>
+         *        <p>
+         *        You can create a symmetric or asymmetric multi-Region key, and you can create a multi-Region key with
+         *        imported key material. However, you cannot create a multi-Region key in a custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder multiRegion(Boolean multiRegion);
+
+        /**
+         * <p>
+         * Identifies the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+         * >external key</a> that serves as key material for the KMS key in an <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>.
+         * Specify the ID that the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy"
+         * >external key store proxy</a> uses to refer to the external key. For help, see the documentation for your
+         * external key store proxy.
+         * </p>
+         * <p>
+         * This parameter is required for a KMS key with an <code>Origin</code> value of <code>EXTERNAL_KEY_STORE</code>
+         * . It is not valid for KMS keys with any other <code>Origin</code> value.
+         * </p>
+         * <p>
+         * The external key must be an existing 256-bit AES symmetric encryption key hosted outside of Amazon Web
+         * Services in an external key manager associated with the external key store specified by the
+         * <code>CustomKeyStoreId</code> parameter. This key must be enabled and configured to perform encryption and
+         * decryption. Each KMS key in an external key store must use a different external key. For details, see <a
+         * href="https://docs.aws.amazon.com/create-xks-keys.html#xks-key-requirements">Requirements for a KMS key in an
+         * external key store</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * Each KMS key in an external key store is associated two backing keys. One is key material that KMS generates.
+         * The other is the external key specified by this parameter. When you use the KMS key in an external key store
+         * to encrypt data, the encryption operation is performed first by KMS using the KMS key material, and then by
+         * the external key manager using the specified external key, a process known as <i>double encryption</i>. For
+         * details, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption"
+         * >Double encryption</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param xksKeyId
+         *        Identifies the <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+         *        >external key</a> that serves as key material for the KMS key in an <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key
+         *        store</a>. Specify the ID that the <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy"
+         *        >external key store proxy</a> uses to refer to the external key. For help, see the documentation for
+         *        your external key store proxy.</p>
+         *        <p>
+         *        This parameter is required for a KMS key with an <code>Origin</code> value of
+         *        <code>EXTERNAL_KEY_STORE</code>. It is not valid for KMS keys with any other <code>Origin</code>
+         *        value.
+         *        </p>
+         *        <p>
+         *        The external key must be an existing 256-bit AES symmetric encryption key hosted outside of Amazon Web
+         *        Services in an external key manager associated with the external key store specified by the
+         *        <code>CustomKeyStoreId</code> parameter. This key must be enabled and configured to perform encryption
+         *        and decryption. Each KMS key in an external key store must use a different external key. For details,
+         *        see <a href="https://docs.aws.amazon.com/create-xks-keys.html#xks-key-requirements">Requirements for a
+         *        KMS key in an external key store</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        Each KMS key in an external key store is associated two backing keys. One is key material that KMS
+         *        generates. The other is the external key specified by this parameter. When you use the KMS key in an
+         *        external key store to encrypt data, the encryption operation is performed first by KMS using the KMS
+         *        key material, and then by the external key manager using the specified external key, a process known
+         *        as <i>double encryption</i>. For details, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption"
+         *        >Double encryption</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksKeyId(String xksKeyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String policy;
+
+        private String description;
+
+        private String keyUsage;
+
+        private String customerMasterKeySpec;
+
+        private String keySpec;
+
+        private String origin;
+
+        private String customKeyStoreId;
+
+        private Boolean bypassPolicyLockoutSafetyCheck;
+
+        private List<Tag> tags = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean multiRegion;
+
+        private String xksKeyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateKeyRequest model) {
+            super(model);
+            policy(model.policy);
+            description(model.description);
+            keyUsage(model.keyUsage);
+            customerMasterKeySpec(model.customerMasterKeySpec);
+            keySpec(model.keySpec);
+            origin(model.origin);
+            customKeyStoreId(model.customKeyStoreId);
+            bypassPolicyLockoutSafetyCheck(model.bypassPolicyLockoutSafetyCheck);
+            tags(model.tags);
+            multiRegion(model.multiRegion);
+            xksKeyId(model.xksKeyId);
+        }
+
+        public final String getPolicy() {
+            return policy;
+        }
+
+        public final void setPolicy(String policy) {
+            this.policy = policy;
+        }
+
+        @Override
+        public final Builder policy(String policy) {
+            this.policy = policy;
+            return this;
+        }
+
+        public final String getDescription() {
+            return description;
+        }
+
+        public final void setDescription(String description) {
+            this.description = description;
+        }
+
+        @Override
+        public final Builder description(String description) {
+            this.description = description;
+            return this;
+        }
+
+        public final String getKeyUsage() {
+            return keyUsage;
+        }
+
+        public final void setKeyUsage(String keyUsage) {
+            this.keyUsage = keyUsage;
+        }
+
+        @Override
+        public final Builder keyUsage(String keyUsage) {
+            this.keyUsage = keyUsage;
+            return this;
+        }
+
+        @Override
+        public final Builder keyUsage(KeyUsageType keyUsage) {
+            this.keyUsage(keyUsage == null ? null : keyUsage.toString());
+            return this;
+        }
+
+        @Deprecated
+        public final String getCustomerMasterKeySpec() {
+            return customerMasterKeySpec;
+        }
+
+        @Deprecated
+        public final void setCustomerMasterKeySpec(String customerMasterKeySpec) {
+            this.customerMasterKeySpec = customerMasterKeySpec;
+        }
+
+        @Override
+        @Deprecated
+        public final Builder customerMasterKeySpec(String customerMasterKeySpec) {
+            this.customerMasterKeySpec = customerMasterKeySpec;
+            return this;
+        }
+
+        @Override
+        @Deprecated
+        public final Builder customerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec) {
+            this.customerMasterKeySpec(customerMasterKeySpec == null ? null : customerMasterKeySpec.toString());
+            return this;
+        }
+
+        public final String getKeySpec() {
+            return keySpec;
+        }
+
+        public final void setKeySpec(String keySpec) {
+            this.keySpec = keySpec;
+        }
+
+        @Override
+        public final Builder keySpec(String keySpec) {
+            this.keySpec = keySpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keySpec(KeySpec keySpec) {
+            this.keySpec(keySpec == null ? null : keySpec.toString());
+            return this;
+        }
+
+        public final String getOrigin() {
+            return origin;
+        }
+
+        public final void setOrigin(String origin) {
+            this.origin = origin;
+        }
+
+        @Override
+        public final Builder origin(String origin) {
+            this.origin = origin;
+            return this;
+        }
+
+        @Override
+        public final Builder origin(OriginType origin) {
+            this.origin(origin == null ? null : origin.toString());
+            return this;
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        public final Boolean getBypassPolicyLockoutSafetyCheck() {
+            return bypassPolicyLockoutSafetyCheck;
+        }
+
+        public final void setBypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) {
+            this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck;
+        }
+
+        @Override
+        public final Builder bypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) {
+            this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck;
+            return this;
+        }
+
+        public final List<Tag.Builder> getTags() {
+            List<Tag.Builder> result = TagListCopier.copyToBuilder(this.tags);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setTags(Collection<Tag.BuilderImpl> tags) {
+            this.tags = TagListCopier.copyFromBuilder(tags);
+        }
+
+        @Override
+        public final Builder tags(Collection<Tag> tags) {
+            this.tags = TagListCopier.copy(tags);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Tag... tags) {
+            tags(Arrays.asList(tags));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Consumer<Tag.Builder>... tags) {
+            tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        public final Boolean getMultiRegion() {
+            return multiRegion;
+        }
+
+        public final void setMultiRegion(Boolean multiRegion) {
+            this.multiRegion = multiRegion;
+        }
+
+        @Override
+        public final Builder multiRegion(Boolean multiRegion) {
+            this.multiRegion = multiRegion;
+            return this;
+        }
+
+        public final String getXksKeyId() {
+            return xksKeyId;
+        }
+
+        public final void setXksKeyId(String xksKeyId) {
+            this.xksKeyId = xksKeyId;
+        }
+
+        @Override
+        public final Builder xksKeyId(String xksKeyId) {
+            this.xksKeyId = xksKeyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public CreateKeyRequest build() {
+            return new CreateKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateKeyResponse.java
new file mode 100644
index 0000000..e3a048c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CreateKeyResponse.java
@@ -0,0 +1,204 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CreateKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<CreateKeyResponse.Builder, CreateKeyResponse> {
+    private static final SdkField<KeyMetadata> KEY_METADATA_FIELD = SdkField.<KeyMetadata> builder(MarshallingType.SDK_POJO)
+            .memberName("KeyMetadata").getter(getter(CreateKeyResponse::keyMetadata)).setter(setter(Builder::keyMetadata))
+            .constructor(KeyMetadata::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyMetadata").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_METADATA_FIELD));
+
+    private final KeyMetadata keyMetadata;
+
+    private CreateKeyResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyMetadata = builder.keyMetadata;
+    }
+
+    /**
+     * <p>
+     * Metadata associated with the KMS key.
+     * </p>
+     * 
+     * @return Metadata associated with the KMS key.
+     */
+    public final KeyMetadata keyMetadata() {
+        return keyMetadata;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyMetadata());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CreateKeyResponse)) {
+            return false;
+        }
+        CreateKeyResponse other = (CreateKeyResponse) obj;
+        return Objects.equals(keyMetadata(), other.keyMetadata());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CreateKeyResponse").add("KeyMetadata", keyMetadata()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyMetadata":
+            return Optional.ofNullable(clazz.cast(keyMetadata()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CreateKeyResponse, T> g) {
+        return obj -> g.apply((CreateKeyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, CreateKeyResponse> {
+        /**
+         * <p>
+         * Metadata associated with the KMS key.
+         * </p>
+         * 
+         * @param keyMetadata
+         *        Metadata associated with the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyMetadata(KeyMetadata keyMetadata);
+
+        /**
+         * <p>
+         * Metadata associated with the KMS key.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link KeyMetadata.Builder} avoiding the need to
+         * create one manually via {@link KeyMetadata#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link KeyMetadata.Builder#build()} is called immediately and its result
+         * is passed to {@link #keyMetadata(KeyMetadata)}.
+         * 
+         * @param keyMetadata
+         *        a consumer that will call methods on {@link KeyMetadata.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #keyMetadata(KeyMetadata)
+         */
+        default Builder keyMetadata(Consumer<KeyMetadata.Builder> keyMetadata) {
+            return keyMetadata(KeyMetadata.builder().applyMutation(keyMetadata).build());
+        }
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private KeyMetadata keyMetadata;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CreateKeyResponse model) {
+            super(model);
+            keyMetadata(model.keyMetadata);
+        }
+
+        public final KeyMetadata.Builder getKeyMetadata() {
+            return keyMetadata != null ? keyMetadata.toBuilder() : null;
+        }
+
+        public final void setKeyMetadata(KeyMetadata.BuilderImpl keyMetadata) {
+            this.keyMetadata = keyMetadata != null ? keyMetadata.build() : null;
+        }
+
+        @Override
+        public final Builder keyMetadata(KeyMetadata keyMetadata) {
+            this.keyMetadata = keyMetadata;
+            return this;
+        }
+
+        @Override
+        public CreateKeyResponse build() {
+            return new CreateKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreHasCmKsException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreHasCmKsException.java
new file mode 100644
index 0000000..3aa1c5b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreHasCmKsException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the custom key store contains KMS keys. After verifying that you do not need to use
+ * the KMS keys, use the <a>ScheduleKeyDeletion</a> operation to delete the KMS keys. After they are deleted, you can
+ * delete the custom key store.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CustomKeyStoreHasCmKsException extends KmsException implements
+        ToCopyableBuilder<CustomKeyStoreHasCmKsException.Builder, CustomKeyStoreHasCmKsException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CustomKeyStoreHasCmKsException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CustomKeyStoreHasCmKsException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CustomKeyStoreHasCmKsException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CustomKeyStoreHasCmKsException build() {
+            return new CustomKeyStoreHasCmKsException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreInvalidStateException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreInvalidStateException.java
new file mode 100644
index 0000000..7d71629
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreInvalidStateException.java
@@ -0,0 +1,174 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the
+ * <code>ConnectionState</code> of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+ * </p>
+ * <p>
+ * This exception is thrown under the following conditions:
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * You requested the <a>ConnectCustomKeyStore</a> operation on a custom key store with a <code>ConnectionState</code> of
+ * <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is valid for all other <code>ConnectionState</code>
+ * values. To reconnect a custom key store in a <code>FAILED</code> state, disconnect it
+ * (<a>DisconnectCustomKeyStore</a>), then connect it (<code>ConnectCustomKeyStore</code>).
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * You requested the <a>CreateKey</a> operation in a custom key store that is not connected. This operations is valid
+ * only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * You requested the <a>DisconnectCustomKeyStore</a> operation on a custom key store with a <code>ConnectionState</code>
+ * of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation is valid for all other
+ * <code>ConnectionState</code> values.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * You requested the <a>UpdateCustomKeyStore</a> or <a>DeleteCustomKeyStore</a> operation on a custom key store that is
+ * not disconnected. This operation is valid only when the custom key store <code>ConnectionState</code> is
+ * <code>DISCONNECTED</code>.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * You requested the <a>GenerateRandom</a> operation in an CloudHSM key store that is not connected. This operation is
+ * valid only when the CloudHSM key store <code>ConnectionState</code> is <code>CONNECTED</code>.
+ * </p>
+ * </li>
+ * </ul>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CustomKeyStoreInvalidStateException extends KmsException implements
+        ToCopyableBuilder<CustomKeyStoreInvalidStateException.Builder, CustomKeyStoreInvalidStateException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CustomKeyStoreInvalidStateException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CustomKeyStoreInvalidStateException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CustomKeyStoreInvalidStateException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CustomKeyStoreInvalidStateException build() {
+            return new CustomKeyStoreInvalidStateException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreNameInUseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreNameInUseException.java
new file mode 100644
index 0000000..073cd89
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreNameInUseException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified custom key store name is already assigned to another custom key store
+ * in the account. Try again with a custom key store name that is unique in the account.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CustomKeyStoreNameInUseException extends KmsException implements
+        ToCopyableBuilder<CustomKeyStoreNameInUseException.Builder, CustomKeyStoreNameInUseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CustomKeyStoreNameInUseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CustomKeyStoreNameInUseException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CustomKeyStoreNameInUseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CustomKeyStoreNameInUseException build() {
+            return new CustomKeyStoreNameInUseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreNotFoundException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreNotFoundException.java
new file mode 100644
index 0000000..b2dd089
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreNotFoundException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because KMS cannot find a custom key store with the specified key store name or ID.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CustomKeyStoreNotFoundException extends KmsException implements
+        ToCopyableBuilder<CustomKeyStoreNotFoundException.Builder, CustomKeyStoreNotFoundException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private CustomKeyStoreNotFoundException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CustomKeyStoreNotFoundException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CustomKeyStoreNotFoundException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public CustomKeyStoreNotFoundException build() {
+            return new CustomKeyStoreNotFoundException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreType.java
new file mode 100644
index 0000000..8b1a640
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoreType.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum CustomKeyStoreType {
+    AWS_CLOUDHSM("AWS_CLOUDHSM"),
+
+    EXTERNAL_KEY_STORE("EXTERNAL_KEY_STORE"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, CustomKeyStoreType> VALUE_MAP = EnumUtils.uniqueIndex(CustomKeyStoreType.class,
+            CustomKeyStoreType::toString);
+
+    private final String value;
+
+    private CustomKeyStoreType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return CustomKeyStoreType corresponding to the value
+     */
+    public static CustomKeyStoreType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link CustomKeyStoreType}s
+     */
+    public static Set<CustomKeyStoreType> knownValues() {
+        Set<CustomKeyStoreType> knownValues = EnumSet.allOf(CustomKeyStoreType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoresListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoresListCopier.java
new file mode 100644
index 0000000..58a8a1b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoresListCopier.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class CustomKeyStoresListCopier {
+    static List<CustomKeyStoresListEntry> copy(Collection<? extends CustomKeyStoresListEntry> customKeyStoresListParam) {
+        List<CustomKeyStoresListEntry> list;
+        if (customKeyStoresListParam == null || customKeyStoresListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<CustomKeyStoresListEntry> modifiableList = new ArrayList<>();
+            customKeyStoresListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<CustomKeyStoresListEntry> copyFromBuilder(
+            Collection<? extends CustomKeyStoresListEntry.Builder> customKeyStoresListParam) {
+        List<CustomKeyStoresListEntry> list;
+        if (customKeyStoresListParam == null || customKeyStoresListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<CustomKeyStoresListEntry> modifiableList = new ArrayList<>();
+            customKeyStoresListParam.forEach(entry -> {
+                CustomKeyStoresListEntry member = entry == null ? null : entry.build();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<CustomKeyStoresListEntry.Builder> copyToBuilder(
+            Collection<? extends CustomKeyStoresListEntry> customKeyStoresListParam) {
+        List<CustomKeyStoresListEntry.Builder> list;
+        if (customKeyStoresListParam == null || customKeyStoresListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<CustomKeyStoresListEntry.Builder> modifiableList = new ArrayList<>();
+            customKeyStoresListParam.forEach(entry -> {
+                CustomKeyStoresListEntry.Builder member = entry == null ? null : entry.toBuilder();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoresListEntry.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoresListEntry.java
new file mode 100644
index 0000000..b94b310
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomKeyStoresListEntry.java
@@ -0,0 +1,2711 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Contains information about each custom key store in the custom key store list.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class CustomKeyStoresListEntry implements SdkPojo, Serializable,
+        ToCopyableBuilder<CustomKeyStoresListEntry.Builder, CustomKeyStoresListEntry> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(CustomKeyStoresListEntry::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreName").getter(getter(CustomKeyStoresListEntry::customKeyStoreName))
+            .setter(setter(Builder::customKeyStoreName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreName").build())
+            .build();
+
+    private static final SdkField<String> CLOUD_HSM_CLUSTER_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CloudHsmClusterId").getter(getter(CustomKeyStoresListEntry::cloudHsmClusterId))
+            .setter(setter(Builder::cloudHsmClusterId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CloudHsmClusterId").build()).build();
+
+    private static final SdkField<String> TRUST_ANCHOR_CERTIFICATE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("TrustAnchorCertificate").getter(getter(CustomKeyStoresListEntry::trustAnchorCertificate))
+            .setter(setter(Builder::trustAnchorCertificate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TrustAnchorCertificate").build())
+            .build();
+
+    private static final SdkField<String> CONNECTION_STATE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("ConnectionState").getter(getter(CustomKeyStoresListEntry::connectionStateAsString))
+            .setter(setter(Builder::connectionState))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ConnectionState").build()).build();
+
+    private static final SdkField<String> CONNECTION_ERROR_CODE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("ConnectionErrorCode").getter(getter(CustomKeyStoresListEntry::connectionErrorCodeAsString))
+            .setter(setter(Builder::connectionErrorCode))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ConnectionErrorCode").build())
+            .build();
+
+    private static final SdkField<Instant> CREATION_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("CreationDate").getter(getter(CustomKeyStoresListEntry::creationDate))
+            .setter(setter(Builder::creationDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationDate").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_TYPE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreType").getter(getter(CustomKeyStoresListEntry::customKeyStoreTypeAsString))
+            .setter(setter(Builder::customKeyStoreType))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreType").build())
+            .build();
+
+    private static final SdkField<XksProxyConfigurationType> XKS_PROXY_CONFIGURATION_FIELD = SdkField
+            .<XksProxyConfigurationType> builder(MarshallingType.SDK_POJO).memberName("XksProxyConfiguration")
+            .getter(getter(CustomKeyStoresListEntry::xksProxyConfiguration)).setter(setter(Builder::xksProxyConfiguration))
+            .constructor(XksProxyConfigurationType::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyConfiguration").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD,
+            CUSTOM_KEY_STORE_NAME_FIELD, CLOUD_HSM_CLUSTER_ID_FIELD, TRUST_ANCHOR_CERTIFICATE_FIELD, CONNECTION_STATE_FIELD,
+            CONNECTION_ERROR_CODE_FIELD, CREATION_DATE_FIELD, CUSTOM_KEY_STORE_TYPE_FIELD, XKS_PROXY_CONFIGURATION_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String customKeyStoreId;
+
+    private final String customKeyStoreName;
+
+    private final String cloudHsmClusterId;
+
+    private final String trustAnchorCertificate;
+
+    private final String connectionState;
+
+    private final String connectionErrorCode;
+
+    private final Instant creationDate;
+
+    private final String customKeyStoreType;
+
+    private final XksProxyConfigurationType xksProxyConfiguration;
+
+    private CustomKeyStoresListEntry(BuilderImpl builder) {
+        this.customKeyStoreId = builder.customKeyStoreId;
+        this.customKeyStoreName = builder.customKeyStoreName;
+        this.cloudHsmClusterId = builder.cloudHsmClusterId;
+        this.trustAnchorCertificate = builder.trustAnchorCertificate;
+        this.connectionState = builder.connectionState;
+        this.connectionErrorCode = builder.connectionErrorCode;
+        this.creationDate = builder.creationDate;
+        this.customKeyStoreType = builder.customKeyStoreType;
+        this.xksProxyConfiguration = builder.xksProxyConfiguration;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the custom key store.
+     * </p>
+     * 
+     * @return A unique identifier for the custom key store.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * The user-specified friendly name for the custom key store.
+     * </p>
+     * 
+     * @return The user-specified friendly name for the custom key store.
+     */
+    public final String customKeyStoreName() {
+        return customKeyStoreName;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the CloudHSM cluster that is associated with an CloudHSM key store. This field appears
+     * only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * 
+     * @return A unique identifier for the CloudHSM cluster that is associated with an CloudHSM key store. This field
+     *         appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+     */
+    public final String cloudHsmClusterId() {
+        return cloudHsmClusterId;
+    }
+
+    /**
+     * <p>
+     * The trust anchor certificate of the CloudHSM cluster associated with an CloudHSM key store. When you <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize the
+     * cluster</a>, you create this certificate and save it in the <code>customerCA.crt</code> file.
+     * </p>
+     * <p>
+     * This field appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * 
+     * @return The trust anchor certificate of the CloudHSM cluster associated with an CloudHSM key store. When you <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+     *         the cluster</a>, you create this certificate and save it in the <code>customerCA.crt</code> file.</p>
+     *         <p>
+     *         This field appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+     */
+    public final String trustAnchorCertificate() {
+        return trustAnchorCertificate;
+    }
+
+    /**
+     * <p>
+     * Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store, the
+     * <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For an external key
+     * store, the <code>ConnectionState</code> indicates whether it is connected to the external key store proxy that
+     * communicates with your external key manager.
+     * </p>
+     * <p>
+     * You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code> is
+     * <code>CONNECTED</code>.
+     * </p>
+     * <p>
+     * The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never been
+     * connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value is
+     * <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the backing key
+     * store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster is active
+     * and contains at least one active HSM. For an external key store, verify that the external key store proxy and
+     * external key manager are connected and enabled.
+     * </p>
+     * <p>
+     * A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+     * <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help resolving a
+     * connection failure, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #connectionState}
+     * will return {@link ConnectionStateType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #connectionStateAsString}.
+     * </p>
+     * 
+     * @return Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store,
+     *         the <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For an
+     *         external key store, the <code>ConnectionState</code> indicates whether it is connected to the external
+     *         key store proxy that communicates with your external key manager.</p>
+     *         <p>
+     *         You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         <p>
+     *         The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never been
+     *         connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value is
+     *         <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the backing
+     *         key store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster
+     *         is active and contains at least one active HSM. For an external key store, verify that the external key
+     *         store proxy and external key manager are connected and enabled.
+     *         </p>
+     *         <p>
+     *         A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+     *         <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help
+     *         resolving a connection failure, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom
+     *         key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * @see ConnectionStateType
+     */
+    public final ConnectionStateType connectionState() {
+        return ConnectionStateType.fromValue(connectionState);
+    }
+
+    /**
+     * <p>
+     * Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store, the
+     * <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For an external key
+     * store, the <code>ConnectionState</code> indicates whether it is connected to the external key store proxy that
+     * communicates with your external key manager.
+     * </p>
+     * <p>
+     * You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code> is
+     * <code>CONNECTED</code>.
+     * </p>
+     * <p>
+     * The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never been
+     * connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value is
+     * <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the backing key
+     * store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster is active
+     * and contains at least one active HSM. For an external key store, verify that the external key store proxy and
+     * external key manager are connected and enabled.
+     * </p>
+     * <p>
+     * A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+     * <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help resolving a
+     * connection failure, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+     * store</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #connectionState}
+     * will return {@link ConnectionStateType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #connectionStateAsString}.
+     * </p>
+     * 
+     * @return Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store,
+     *         the <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For an
+     *         external key store, the <code>ConnectionState</code> indicates whether it is connected to the external
+     *         key store proxy that communicates with your external key manager.</p>
+     *         <p>
+     *         You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code> is
+     *         <code>CONNECTED</code>.
+     *         </p>
+     *         <p>
+     *         The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never been
+     *         connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value is
+     *         <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the backing
+     *         key store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster
+     *         is active and contains at least one active HSM. For an external key store, verify that the external key
+     *         store proxy and external key manager are connected and enabled.
+     *         </p>
+     *         <p>
+     *         A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+     *         <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help
+     *         resolving a connection failure, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom
+     *         key store</a> in the <i>Key Management Service Developer Guide</i>.
+     * @see ConnectionStateType
+     */
+    public final String connectionStateAsString() {
+        return connectionState;
+    }
+
+    /**
+     * <p>
+     * Describes the connection error. This field appears in the response only when the <code>ConnectionState</code> is
+     * <code>FAILED</code>.
+     * </p>
+     * <p>
+     * Many failures can be resolved by updating the properties of the custom key store. To update a custom key store,
+     * disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors (<a>UpdateCustomKeyStore</a>), and try to
+     * connect again (<a>ConnectCustomKeyStore</a>). For additional help resolving these errors, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix a
+     * Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>All custom key stores:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the request. For
+     * <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before trying to connect again.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store to its
+     * backing key store.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>CloudHSM key stores:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active HSMs. To
+     * connect a custom key store to its CloudHSM cluster, the cluster must contain at least one active HSM.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the CloudHSM
+     * cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one free IP address in
+     * each of the associated private subnets, although two are preferable. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix a
+     * Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't match the
+     * current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you can connect your
+     * custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and update
+     * the <code>KeyStorePassword</code> value for the custom key store.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS cannot find
+     * all of the subnets in the cluster configuration, attempts to connect the custom key store to the CloudHSM cluster
+     * fail. To fix this error, create a cluster from a recent backup and associate it with your custom key store. (This
+     * process creates a new cluster configuration with a VPC and private subnets.) For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix a
+     * Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated CloudHSM
+     * cluster due to too many failed password attempts. Before you can connect your custom key store to its CloudHSM
+     * cluster, you must change the <code>kmsuser</code> account password and update the key store password value for
+     * the custom key store.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated CloudHSM cluster.
+     * This prevents KMS from rotating the <code>kmsuser</code> account password and logging into the cluster. Before
+     * you can connect your custom key store to its CloudHSM cluster, you must log the <code>kmsuser</code> CU out of
+     * the cluster. If you changed the <code>kmsuser</code> password to log into the cluster, you must also and update
+     * the key store password value for the custom key store. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How to Log Out and
+     * Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated CloudHSM
+     * cluster. Before you can connect your custom key store to its CloudHSM cluster, you must create a
+     * <code>kmsuser</code> CU account in the cluster, and then update the key store password value for the custom key
+     * store.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>External key stores:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code> values is not
+     * valid on the specified external key store proxy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy. If the
+     * external key store proxy has authorization rules, verify that they permit KMS to communicate with the proxy on
+     * your behalf.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key store from
+     * connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key store proxy. If
+     * you see this connection error code repeatedly, notify your external key store proxy vendor.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy because the
+     * TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also, verify that the TLS
+     * certificate is not expired, and that it matches the hostname in the <code>XksProxyUriEndpoint</code> value, and
+     * that it is signed by a certificate authority included in the <a
+     * href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">Trusted
+     * Certificate Authorities</a> list.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy. Verify that the
+     * <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the tools for your external
+     * key store proxy to verify that the proxy is active and available on its network. Also, verify that your external
+     * key manager instances are operating properly. Connection attempts fail with this connection error code if the
+     * proxy reports that all external key manager instances are unavailable.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does not
+     * respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your external key
+     * store proxy vendor.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service configuration
+     * doesn't conform to the requirements for an KMS external key store.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon Web Services
+     * account.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * It must have a network load balancer (NLB) connected to at least two subnets, each in a different Availability
+     * Zone.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>Allow principals</code> list must include the KMS service principal for the Region,
+     * <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * It must <i>not</i> require <a
+     * href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a> of
+     * connection requests.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * It must have a private DNS name. The private DNS name for an external key store with
+     * <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The domain of the private DNS name must have a <a
+     * href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a> of
+     * <code>verified</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+     * certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses to
+     * communicate with the external key store proxy. Verify that the <code>XksProxyVpcEndpointServiceName</code> is
+     * correct and the KMS service principal has service consumer permissions on the Amazon VPC endpoint service.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #connectionErrorCode} will return {@link ConnectionErrorCodeType#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #connectionErrorCodeAsString}.
+     * </p>
+     * 
+     * @return Describes the connection error. This field appears in the response only when the
+     *         <code>ConnectionState</code> is <code>FAILED</code>.</p>
+     *         <p>
+     *         Many failures can be resolved by updating the properties of the custom key store. To update a custom key
+     *         store, disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors (<a>UpdateCustomKeyStore</a>),
+     *         and try to connect again (<a>ConnectCustomKeyStore</a>). For additional help resolving these errors, see
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+     *         to Fix a Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         <b>All custom key stores:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the
+     *         request. For <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before trying
+     *         to connect again.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store to
+     *         its backing key store.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         <b>CloudHSM key stores:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active
+     *         HSMs. To connect a custom key store to its CloudHSM cluster, the cluster must contain at least one active
+     *         HSM.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the
+     *         CloudHSM cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one
+     *         free IP address in each of the associated private subnets, although two are preferable. For details, see
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+     *         to Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't
+     *         match the current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you
+     *         can connect your custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code>
+     *         account password and update the <code>KeyStorePassword</code> value for the custom key store.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS cannot
+     *         find all of the subnets in the cluster configuration, attempts to connect the custom key store to the
+     *         CloudHSM cluster fail. To fix this error, create a cluster from a recent backup and associate it with
+     *         your custom key store. (This process creates a new cluster configuration with a VPC and private subnets.)
+     *         For details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to
+     *         Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated
+     *         CloudHSM cluster due to too many failed password attempts. Before you can connect your custom key store
+     *         to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and update the key
+     *         store password value for the custom key store.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated CloudHSM
+     *         cluster. This prevents KMS from rotating the <code>kmsuser</code> account password and logging into the
+     *         cluster. Before you can connect your custom key store to its CloudHSM cluster, you must log the
+     *         <code>kmsuser</code> CU out of the cluster. If you changed the <code>kmsuser</code> password to log into
+     *         the cluster, you must also and update the key store password value for the custom key store. For help,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How
+     *         to Log Out and Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated
+     *         CloudHSM cluster. Before you can connect your custom key store to its CloudHSM cluster, you must create a
+     *         <code>kmsuser</code> CU account in the cluster, and then update the key store password value for the
+     *         custom key store.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         <b>External key stores:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code>
+     *         values is not valid on the specified external key store proxy.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy. If
+     *         the external key store proxy has authorization rules, verify that they permit KMS to communicate with the
+     *         proxy on your behalf.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key store
+     *         from connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key store
+     *         proxy. If you see this connection error code repeatedly, notify your external key store proxy vendor.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy
+     *         because the TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also, verify
+     *         that the TLS certificate is not expired, and that it matches the hostname in the
+     *         <code>XksProxyUriEndpoint</code> value, and that it is signed by a certificate authority included in the
+     *         <a
+     *         href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">Trusted
+     *         Certificate Authorities</a> list.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy. Verify
+     *         that the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the tools for
+     *         your external key store proxy to verify that the proxy is active and available on its network. Also,
+     *         verify that your external key manager instances are operating properly. Connection attempts fail with
+     *         this connection error code if the proxy reports that all external key manager instances are unavailable.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does
+     *         not respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your
+     *         external key store proxy vendor.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service
+     *         configuration doesn't conform to the requirements for an KMS external key store.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon Web
+     *         Services account.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         It must have a network load balancer (NLB) connected to at least two subnets, each in a different
+     *         Availability Zone.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <code>Allow principals</code> list must include the KMS service principal for the Region,
+     *         <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         It must <i>not</i> require <a
+     *         href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a> of
+     *         connection requests.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         It must have a private DNS name. The private DNS name for an external key store with
+     *         <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The domain of the private DNS name must have a <a
+     *         href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a> of
+     *         <code>verified</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a
+     *         href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+     *         certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses to
+     *         communicate with the external key store proxy. Verify that the
+     *         <code>XksProxyVpcEndpointServiceName</code> is correct and the KMS service principal has service consumer
+     *         permissions on the Amazon VPC endpoint service.
+     *         </p>
+     *         </li>
+     * @see ConnectionErrorCodeType
+     */
+    public final ConnectionErrorCodeType connectionErrorCode() {
+        return ConnectionErrorCodeType.fromValue(connectionErrorCode);
+    }
+
+    /**
+     * <p>
+     * Describes the connection error. This field appears in the response only when the <code>ConnectionState</code> is
+     * <code>FAILED</code>.
+     * </p>
+     * <p>
+     * Many failures can be resolved by updating the properties of the custom key store. To update a custom key store,
+     * disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors (<a>UpdateCustomKeyStore</a>), and try to
+     * connect again (<a>ConnectCustomKeyStore</a>). For additional help resolving these errors, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix a
+     * Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * <b>All custom key stores:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the request. For
+     * <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before trying to connect again.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store to its
+     * backing key store.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>CloudHSM key stores:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active HSMs. To
+     * connect a custom key store to its CloudHSM cluster, the cluster must contain at least one active HSM.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the CloudHSM
+     * cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one free IP address in
+     * each of the associated private subnets, although two are preferable. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix a
+     * Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't match the
+     * current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you can connect your
+     * custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and update
+     * the <code>KeyStorePassword</code> value for the custom key store.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS cannot find
+     * all of the subnets in the cluster configuration, attempts to connect the custom key store to the CloudHSM cluster
+     * fail. To fix this error, create a cluster from a recent backup and associate it with your custom key store. (This
+     * process creates a new cluster configuration with a VPC and private subnets.) For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix a
+     * Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated CloudHSM
+     * cluster due to too many failed password attempts. Before you can connect your custom key store to its CloudHSM
+     * cluster, you must change the <code>kmsuser</code> account password and update the key store password value for
+     * the custom key store.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated CloudHSM cluster.
+     * This prevents KMS from rotating the <code>kmsuser</code> account password and logging into the cluster. Before
+     * you can connect your custom key store to its CloudHSM cluster, you must log the <code>kmsuser</code> CU out of
+     * the cluster. If you changed the <code>kmsuser</code> password to log into the cluster, you must also and update
+     * the key store password value for the custom key store. For help, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How to Log Out and
+     * Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated CloudHSM
+     * cluster. Before you can connect your custom key store to its CloudHSM cluster, you must create a
+     * <code>kmsuser</code> CU account in the cluster, and then update the key store password value for the custom key
+     * store.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * <b>External key stores:</b>
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code> values is not
+     * valid on the specified external key store proxy.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy. If the
+     * external key store proxy has authorization rules, verify that they permit KMS to communicate with the proxy on
+     * your behalf.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key store from
+     * connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key store proxy. If
+     * you see this connection error code repeatedly, notify your external key store proxy vendor.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy because the
+     * TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also, verify that the TLS
+     * certificate is not expired, and that it matches the hostname in the <code>XksProxyUriEndpoint</code> value, and
+     * that it is signed by a certificate authority included in the <a
+     * href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">Trusted
+     * Certificate Authorities</a> list.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy. Verify that the
+     * <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the tools for your external
+     * key store proxy to verify that the proxy is active and available on its network. Also, verify that your external
+     * key manager instances are operating properly. Connection attempts fail with this connection error code if the
+     * proxy reports that all external key manager instances are unavailable.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does not
+     * respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your external key
+     * store proxy vendor.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service configuration
+     * doesn't conform to the requirements for an KMS external key store.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon Web Services
+     * account.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * It must have a network load balancer (NLB) connected to at least two subnets, each in a different Availability
+     * Zone.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <code>Allow principals</code> list must include the KMS service principal for the Region,
+     * <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * It must <i>not</i> require <a
+     * href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a> of
+     * connection requests.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * It must have a private DNS name. The private DNS name for an external key store with
+     * <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The domain of the private DNS name must have a <a
+     * href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a> of
+     * <code>verified</code>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+     * certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+     * </p>
+     * </li>
+     * </ul>
+     * </li>
+     * <li>
+     * <p>
+     * <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses to
+     * communicate with the external key store proxy. Verify that the <code>XksProxyVpcEndpointServiceName</code> is
+     * correct and the KMS service principal has service consumer permissions on the Amazon VPC endpoint service.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #connectionErrorCode} will return {@link ConnectionErrorCodeType#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #connectionErrorCodeAsString}.
+     * </p>
+     * 
+     * @return Describes the connection error. This field appears in the response only when the
+     *         <code>ConnectionState</code> is <code>FAILED</code>.</p>
+     *         <p>
+     *         Many failures can be resolved by updating the properties of the custom key store. To update a custom key
+     *         store, disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors (<a>UpdateCustomKeyStore</a>),
+     *         and try to connect again (<a>ConnectCustomKeyStore</a>). For additional help resolving these errors, see
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+     *         to Fix a Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         <p>
+     *         <b>All custom key stores:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the
+     *         request. For <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before trying
+     *         to connect again.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store to
+     *         its backing key store.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         <b>CloudHSM key stores:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active
+     *         HSMs. To connect a custom key store to its CloudHSM cluster, the cluster must contain at least one active
+     *         HSM.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the
+     *         CloudHSM cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one
+     *         free IP address in each of the associated private subnets, although two are preferable. For details, see
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+     *         to Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't
+     *         match the current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you
+     *         can connect your custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code>
+     *         account password and update the <code>KeyStorePassword</code> value for the custom key store.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS cannot
+     *         find all of the subnets in the cluster configuration, attempts to connect the custom key store to the
+     *         CloudHSM cluster fail. To fix this error, create a cluster from a recent backup and associate it with
+     *         your custom key store. (This process creates a new cluster configuration with a VPC and private subnets.)
+     *         For details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to
+     *         Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated
+     *         CloudHSM cluster due to too many failed password attempts. Before you can connect your custom key store
+     *         to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and update the key
+     *         store password value for the custom key store.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated CloudHSM
+     *         cluster. This prevents KMS from rotating the <code>kmsuser</code> account password and logging into the
+     *         cluster. Before you can connect your custom key store to its CloudHSM cluster, you must log the
+     *         <code>kmsuser</code> CU out of the cluster. If you changed the <code>kmsuser</code> password to log into
+     *         the cluster, you must also and update the key store password value for the custom key store. For help,
+     *         see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How
+     *         to Log Out and Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated
+     *         CloudHSM cluster. Before you can connect your custom key store to its CloudHSM cluster, you must create a
+     *         <code>kmsuser</code> CU account in the cluster, and then update the key store password value for the
+     *         custom key store.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         <b>External key stores:</b>
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code>
+     *         values is not valid on the specified external key store proxy.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy. If
+     *         the external key store proxy has authorization rules, verify that they permit KMS to communicate with the
+     *         proxy on your behalf.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key store
+     *         from connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key store
+     *         proxy. If you see this connection error code repeatedly, notify your external key store proxy vendor.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy
+     *         because the TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also, verify
+     *         that the TLS certificate is not expired, and that it matches the hostname in the
+     *         <code>XksProxyUriEndpoint</code> value, and that it is signed by a certificate authority included in the
+     *         <a
+     *         href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">Trusted
+     *         Certificate Authorities</a> list.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy. Verify
+     *         that the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the tools for
+     *         your external key store proxy to verify that the proxy is active and available on its network. Also,
+     *         verify that your external key manager instances are operating properly. Connection attempts fail with
+     *         this connection error code if the proxy reports that all external key manager instances are unavailable.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does
+     *         not respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your
+     *         external key store proxy vendor.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service
+     *         configuration doesn't conform to the requirements for an KMS external key store.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon Web
+     *         Services account.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         It must have a network load balancer (NLB) connected to at least two subnets, each in a different
+     *         Availability Zone.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <code>Allow principals</code> list must include the KMS service principal for the Region,
+     *         <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         It must <i>not</i> require <a
+     *         href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a> of
+     *         connection requests.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         It must have a private DNS name. The private DNS name for an external key store with
+     *         <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The domain of the private DNS name must have a <a
+     *         href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a> of
+     *         <code>verified</code>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The <a
+     *         href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+     *         certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses to
+     *         communicate with the external key store proxy. Verify that the
+     *         <code>XksProxyVpcEndpointServiceName</code> is correct and the KMS service principal has service consumer
+     *         permissions on the Amazon VPC endpoint service.
+     *         </p>
+     *         </li>
+     * @see ConnectionErrorCodeType
+     */
+    public final String connectionErrorCodeAsString() {
+        return connectionErrorCode;
+    }
+
+    /**
+     * <p>
+     * The date and time when the custom key store was created.
+     * </p>
+     * 
+     * @return The date and time when the custom key store was created.
+     */
+    public final Instant creationDate() {
+        return creationDate;
+    }
+
+    /**
+     * <p>
+     * Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store backed by an
+     * CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by an external key store
+     * proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customKeyStoreType} will return {@link CustomKeyStoreType#UNKNOWN_TO_SDK_VERSION}. The raw value returned
+     * by the service is available from {@link #customKeyStoreTypeAsString}.
+     * </p>
+     * 
+     * @return Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store backed
+     *         by an CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by an
+     *         external key store proxy and external key manager outside of Amazon Web Services.
+     * @see CustomKeyStoreType
+     */
+    public final CustomKeyStoreType customKeyStoreType() {
+        return CustomKeyStoreType.fromValue(customKeyStoreType);
+    }
+
+    /**
+     * <p>
+     * Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store backed by an
+     * CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by an external key store
+     * proxy and external key manager outside of Amazon Web Services.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customKeyStoreType} will return {@link CustomKeyStoreType#UNKNOWN_TO_SDK_VERSION}. The raw value returned
+     * by the service is available from {@link #customKeyStoreTypeAsString}.
+     * </p>
+     * 
+     * @return Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store backed
+     *         by an CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by an
+     *         external key store proxy and external key manager outside of Amazon Web Services.
+     * @see CustomKeyStoreType
+     */
+    public final String customKeyStoreTypeAsString() {
+        return customKeyStoreType;
+    }
+
+    /**
+     * <p>
+     * Configuration settings for the external key store proxy (XKS proxy). The external key store proxy translates KMS
+     * requests into a format that your external key manager can understand. The proxy configuration includes connection
+     * information that KMS requires.
+     * </p>
+     * <p>
+     * This field appears only when the <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * 
+     * @return Configuration settings for the external key store proxy (XKS proxy). The external key store proxy
+     *         translates KMS requests into a format that your external key manager can understand. The proxy
+     *         configuration includes connection information that KMS requires.</p>
+     *         <p>
+     *         This field appears only when the <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code>.
+     */
+    public final XksProxyConfigurationType xksProxyConfiguration() {
+        return xksProxyConfiguration;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreName());
+        hashCode = 31 * hashCode + Objects.hashCode(cloudHsmClusterId());
+        hashCode = 31 * hashCode + Objects.hashCode(trustAnchorCertificate());
+        hashCode = 31 * hashCode + Objects.hashCode(connectionStateAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(connectionErrorCodeAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(creationDate());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreTypeAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyConfiguration());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof CustomKeyStoresListEntry)) {
+            return false;
+        }
+        CustomKeyStoresListEntry other = (CustomKeyStoresListEntry) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId())
+                && Objects.equals(customKeyStoreName(), other.customKeyStoreName())
+                && Objects.equals(cloudHsmClusterId(), other.cloudHsmClusterId())
+                && Objects.equals(trustAnchorCertificate(), other.trustAnchorCertificate())
+                && Objects.equals(connectionStateAsString(), other.connectionStateAsString())
+                && Objects.equals(connectionErrorCodeAsString(), other.connectionErrorCodeAsString())
+                && Objects.equals(creationDate(), other.creationDate())
+                && Objects.equals(customKeyStoreTypeAsString(), other.customKeyStoreTypeAsString())
+                && Objects.equals(xksProxyConfiguration(), other.xksProxyConfiguration());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("CustomKeyStoresListEntry").add("CustomKeyStoreId", customKeyStoreId())
+                .add("CustomKeyStoreName", customKeyStoreName()).add("CloudHsmClusterId", cloudHsmClusterId())
+                .add("TrustAnchorCertificate", trustAnchorCertificate()).add("ConnectionState", connectionStateAsString())
+                .add("ConnectionErrorCode", connectionErrorCodeAsString()).add("CreationDate", creationDate())
+                .add("CustomKeyStoreType", customKeyStoreTypeAsString()).add("XksProxyConfiguration", xksProxyConfiguration())
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        case "CustomKeyStoreName":
+            return Optional.ofNullable(clazz.cast(customKeyStoreName()));
+        case "CloudHsmClusterId":
+            return Optional.ofNullable(clazz.cast(cloudHsmClusterId()));
+        case "TrustAnchorCertificate":
+            return Optional.ofNullable(clazz.cast(trustAnchorCertificate()));
+        case "ConnectionState":
+            return Optional.ofNullable(clazz.cast(connectionStateAsString()));
+        case "ConnectionErrorCode":
+            return Optional.ofNullable(clazz.cast(connectionErrorCodeAsString()));
+        case "CreationDate":
+            return Optional.ofNullable(clazz.cast(creationDate()));
+        case "CustomKeyStoreType":
+            return Optional.ofNullable(clazz.cast(customKeyStoreTypeAsString()));
+        case "XksProxyConfiguration":
+            return Optional.ofNullable(clazz.cast(xksProxyConfiguration()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<CustomKeyStoresListEntry, T> g) {
+        return obj -> g.apply((CustomKeyStoresListEntry) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, CustomKeyStoresListEntry> {
+        /**
+         * <p>
+         * A unique identifier for the custom key store.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        A unique identifier for the custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        /**
+         * <p>
+         * The user-specified friendly name for the custom key store.
+         * </p>
+         * 
+         * @param customKeyStoreName
+         *        The user-specified friendly name for the custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreName(String customKeyStoreName);
+
+        /**
+         * <p>
+         * A unique identifier for the CloudHSM cluster that is associated with an CloudHSM key store. This field
+         * appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * 
+         * @param cloudHsmClusterId
+         *        A unique identifier for the CloudHSM cluster that is associated with an CloudHSM key store. This field
+         *        appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder cloudHsmClusterId(String cloudHsmClusterId);
+
+        /**
+         * <p>
+         * The trust anchor certificate of the CloudHSM cluster associated with an CloudHSM key store. When you <a
+         * href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize the
+         * cluster</a>, you create this certificate and save it in the <code>customerCA.crt</code> file.
+         * </p>
+         * <p>
+         * This field appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * 
+         * @param trustAnchorCertificate
+         *        The trust anchor certificate of the CloudHSM cluster associated with an CloudHSM key store. When you
+         *        <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">
+         *        initialize the cluster</a>, you create this certificate and save it in the <code>customerCA.crt</code>
+         *        file.</p>
+         *        <p>
+         *        This field appears only when the <code>CustomKeyStoreType</code> is <code>AWS_CLOUDHSM</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder trustAnchorCertificate(String trustAnchorCertificate);
+
+        /**
+         * <p>
+         * Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store, the
+         * <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For an external key
+         * store, the <code>ConnectionState</code> indicates whether it is connected to the external key store proxy
+         * that communicates with your external key manager.
+         * </p>
+         * <p>
+         * You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code> is
+         * <code>CONNECTED</code>.
+         * </p>
+         * <p>
+         * The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never been
+         * connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value is
+         * <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the backing key
+         * store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster is
+         * active and contains at least one active HSM. For an external key store, verify that the external key store
+         * proxy and external key manager are connected and enabled.
+         * </p>
+         * <p>
+         * A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+         * <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help resolving
+         * a connection failure, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+         * store</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param connectionState
+         *        Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key
+         *        store, the <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For
+         *        an external key store, the <code>ConnectionState</code> indicates whether it is connected to the
+         *        external key store proxy that communicates with your external key manager.</p>
+         *        <p>
+         *        You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code>
+         *        is <code>CONNECTED</code>.
+         *        </p>
+         *        <p>
+         *        The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never
+         *        been connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value
+         *        is <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the
+         *        backing key store is reachable and active. For an CloudHSM key store, verify that its associated
+         *        CloudHSM cluster is active and contains at least one active HSM. For an external key store, verify
+         *        that the external key store proxy and external key manager are connected and enabled.
+         *        </p>
+         *        <p>
+         *        A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+         *        <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help
+         *        resolving a connection failure, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a
+         *        custom key store</a> in the <i>Key Management Service Developer Guide</i>.
+         * @see ConnectionStateType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ConnectionStateType
+         */
+        Builder connectionState(String connectionState);
+
+        /**
+         * <p>
+         * Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store, the
+         * <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For an external key
+         * store, the <code>ConnectionState</code> indicates whether it is connected to the external key store proxy
+         * that communicates with your external key manager.
+         * </p>
+         * <p>
+         * You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code> is
+         * <code>CONNECTED</code>.
+         * </p>
+         * <p>
+         * The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never been
+         * connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value is
+         * <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the backing key
+         * store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster is
+         * active and contains at least one active HSM. For an external key store, verify that the external key store
+         * proxy and external key manager are connected and enabled.
+         * </p>
+         * <p>
+         * A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+         * <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help resolving
+         * a connection failure, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a custom key
+         * store</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param connectionState
+         *        Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key
+         *        store, the <code>ConnectionState</code> indicates whether it is connected to its CloudHSM cluster. For
+         *        an external key store, the <code>ConnectionState</code> indicates whether it is connected to the
+         *        external key store proxy that communicates with your external key manager.</p>
+         *        <p>
+         *        You can create and use KMS keys in your custom key stores only when its <code>ConnectionState</code>
+         *        is <code>CONNECTED</code>.
+         *        </p>
+         *        <p>
+         *        The <code>ConnectionState</code> value is <code>DISCONNECTED</code> only if the key store has never
+         *        been connected or you use the <a>DisconnectCustomKeyStore</a> operation to disconnect it. If the value
+         *        is <code>CONNECTED</code> but you are having trouble using the custom key store, make sure that the
+         *        backing key store is reachable and active. For an CloudHSM key store, verify that its associated
+         *        CloudHSM cluster is active and contains at least one active HSM. For an external key store, verify
+         *        that the external key store proxy and external key manager are connected and enabled.
+         *        </p>
+         *        <p>
+         *        A value of <code>FAILED</code> indicates that an attempt to connect was unsuccessful. The
+         *        <code>ConnectionErrorCode</code> field in the response indicates the cause of the failure. For help
+         *        resolving a connection failure, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting a
+         *        custom key store</a> in the <i>Key Management Service Developer Guide</i>.
+         * @see ConnectionStateType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ConnectionStateType
+         */
+        Builder connectionState(ConnectionStateType connectionState);
+
+        /**
+         * <p>
+         * Describes the connection error. This field appears in the response only when the <code>ConnectionState</code>
+         * is <code>FAILED</code>.
+         * </p>
+         * <p>
+         * Many failures can be resolved by updating the properties of the custom key store. To update a custom key
+         * store, disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors (<a>UpdateCustomKeyStore</a>), and
+         * try to connect again (<a>ConnectCustomKeyStore</a>). For additional help resolving these errors, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix
+         * a Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * <b>All custom key stores:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the request.
+         * For <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before trying to connect
+         * again.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store to its
+         * backing key store.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * <b>CloudHSM key stores:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active HSMs.
+         * To connect a custom key store to its CloudHSM cluster, the cluster must contain at least one active HSM.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the CloudHSM
+         * cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one free IP address
+         * in each of the associated private subnets, although two are preferable. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix
+         * a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't match
+         * the current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you can connect
+         * your custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and
+         * update the <code>KeyStorePassword</code> value for the custom key store.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS cannot
+         * find all of the subnets in the cluster configuration, attempts to connect the custom key store to the
+         * CloudHSM cluster fail. To fix this error, create a cluster from a recent backup and associate it with your
+         * custom key store. (This process creates a new cluster configuration with a VPC and private subnets.) For
+         * details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix
+         * a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated CloudHSM
+         * cluster due to too many failed password attempts. Before you can connect your custom key store to its
+         * CloudHSM cluster, you must change the <code>kmsuser</code> account password and update the key store password
+         * value for the custom key store.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated CloudHSM
+         * cluster. This prevents KMS from rotating the <code>kmsuser</code> account password and logging into the
+         * cluster. Before you can connect your custom key store to its CloudHSM cluster, you must log the
+         * <code>kmsuser</code> CU out of the cluster. If you changed the <code>kmsuser</code> password to log into the
+         * cluster, you must also and update the key store password value for the custom key store. For help, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How to Log Out
+         * and Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated CloudHSM
+         * cluster. Before you can connect your custom key store to its CloudHSM cluster, you must create a
+         * <code>kmsuser</code> CU account in the cluster, and then update the key store password value for the custom
+         * key store.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * <b>External key stores:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code> values is
+         * not valid on the specified external key store proxy.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy. If the
+         * external key store proxy has authorization rules, verify that they permit KMS to communicate with the proxy
+         * on your behalf.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key store
+         * from connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key store
+         * proxy. If you see this connection error code repeatedly, notify your external key store proxy vendor.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy because
+         * the TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also, verify that the
+         * TLS certificate is not expired, and that it matches the hostname in the <code>XksProxyUriEndpoint</code>
+         * value, and that it is signed by a certificate authority included in the <a
+         * href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">Trusted
+         * Certificate Authorities</a> list.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy. Verify that
+         * the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the tools for your
+         * external key store proxy to verify that the proxy is active and available on its network. Also, verify that
+         * your external key manager instances are operating properly. Connection attempts fail with this connection
+         * error code if the proxy reports that all external key manager instances are unavailable.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does not
+         * respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your external
+         * key store proxy vendor.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service configuration
+         * doesn't conform to the requirements for an KMS external key store.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon Web
+         * Services account.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * It must have a network load balancer (NLB) connected to at least two subnets, each in a different
+         * Availability Zone.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The <code>Allow principals</code> list must include the KMS service principal for the Region,
+         * <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * It must <i>not</i> require <a
+         * href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a> of
+         * connection requests.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * It must have a private DNS name. The private DNS name for an external key store with
+         * <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The domain of the private DNS name must have a <a
+         * href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a> of
+         * <code>verified</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+         * certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses to
+         * communicate with the external key store proxy. Verify that the <code>XksProxyVpcEndpointServiceName</code> is
+         * correct and the KMS service principal has service consumer permissions on the Amazon VPC endpoint service.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param connectionErrorCode
+         *        Describes the connection error. This field appears in the response only when the
+         *        <code>ConnectionState</code> is <code>FAILED</code>.</p>
+         *        <p>
+         *        Many failures can be resolved by updating the properties of the custom key store. To update a custom
+         *        key store, disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors
+         *        (<a>UpdateCustomKeyStore</a>), and try to connect again (<a>ConnectCustomKeyStore</a>). For additional
+         *        help resolving these errors, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+         *        to Fix a Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        <b>All custom key stores:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the
+         *        request. For <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before
+         *        trying to connect again.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store
+         *        to its backing key store.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        <b>CloudHSM key stores:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active
+         *        HSMs. To connect a custom key store to its CloudHSM cluster, the cluster must contain at least one
+         *        active HSM.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the
+         *        CloudHSM cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one
+         *        free IP address in each of the associated private subnets, although two are preferable. For details,
+         *        see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+         *        to Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't
+         *        match the current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you
+         *        can connect your custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code>
+         *        account password and update the <code>KeyStorePassword</code> value for the custom key store.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS
+         *        cannot find all of the subnets in the cluster configuration, attempts to connect the custom key store
+         *        to the CloudHSM cluster fail. To fix this error, create a cluster from a recent backup and associate
+         *        it with your custom key store. (This process creates a new cluster configuration with a VPC and
+         *        private subnets.) For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+         *        to Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated
+         *        CloudHSM cluster due to too many failed password attempts. Before you can connect your custom key
+         *        store to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and update
+         *        the key store password value for the custom key store.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated
+         *        CloudHSM cluster. This prevents KMS from rotating the <code>kmsuser</code> account password and
+         *        logging into the cluster. Before you can connect your custom key store to its CloudHSM cluster, you
+         *        must log the <code>kmsuser</code> CU out of the cluster. If you changed the <code>kmsuser</code>
+         *        password to log into the cluster, you must also and update the key store password value for the custom
+         *        key store. For help, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How to
+         *        Log Out and Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated
+         *        CloudHSM cluster. Before you can connect your custom key store to its CloudHSM cluster, you must
+         *        create a <code>kmsuser</code> CU account in the cluster, and then update the key store password value
+         *        for the custom key store.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        <b>External key stores:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code>
+         *        values is not valid on the specified external key store proxy.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy.
+         *        If the external key store proxy has authorization rules, verify that they permit KMS to communicate
+         *        with the proxy on your behalf.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key
+         *        store from connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key
+         *        store proxy. If you see this connection error code repeatedly, notify your external key store proxy
+         *        vendor.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy
+         *        because the TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also,
+         *        verify that the TLS certificate is not expired, and that it matches the hostname in the
+         *        <code>XksProxyUriEndpoint</code> value, and that it is signed by a certificate authority included in
+         *        the <a
+         *        href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">
+         *        Trusted Certificate Authorities</a> list.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy.
+         *        Verify that the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the
+         *        tools for your external key store proxy to verify that the proxy is active and available on its
+         *        network. Also, verify that your external key manager instances are operating properly. Connection
+         *        attempts fail with this connection error code if the proxy reports that all external key manager
+         *        instances are unavailable.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does
+         *        not respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your
+         *        external key store proxy vendor.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service
+         *        configuration doesn't conform to the requirements for an KMS external key store.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon
+         *        Web Services account.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        It must have a network load balancer (NLB) connected to at least two subnets, each in a different
+         *        Availability Zone.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The <code>Allow principals</code> list must include the KMS service principal for the Region,
+         *        <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as
+         *        <code>cks.kms.us-east-1.amazonaws.com</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        It must <i>not</i> require <a
+         *        href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a>
+         *        of connection requests.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        It must have a private DNS name. The private DNS name for an external key store with
+         *        <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The domain of the private DNS name must have a <a
+         *        href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a>
+         *        of <code>verified</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The <a
+         *        href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+         *        certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses
+         *        to communicate with the external key store proxy. Verify that the
+         *        <code>XksProxyVpcEndpointServiceName</code> is correct and the KMS service principal has service
+         *        consumer permissions on the Amazon VPC endpoint service.
+         *        </p>
+         *        </li>
+         * @see ConnectionErrorCodeType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ConnectionErrorCodeType
+         */
+        Builder connectionErrorCode(String connectionErrorCode);
+
+        /**
+         * <p>
+         * Describes the connection error. This field appears in the response only when the <code>ConnectionState</code>
+         * is <code>FAILED</code>.
+         * </p>
+         * <p>
+         * Many failures can be resolved by updating the properties of the custom key store. To update a custom key
+         * store, disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors (<a>UpdateCustomKeyStore</a>), and
+         * try to connect again (<a>ConnectCustomKeyStore</a>). For additional help resolving these errors, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix
+         * a Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * <b>All custom key stores:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the request.
+         * For <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before trying to connect
+         * again.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store to its
+         * backing key store.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * <b>CloudHSM key stores:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active HSMs.
+         * To connect a custom key store to its CloudHSM cluster, the cluster must contain at least one active HSM.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the CloudHSM
+         * cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one free IP address
+         * in each of the associated private subnets, although two are preferable. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix
+         * a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't match
+         * the current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you can connect
+         * your custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and
+         * update the <code>KeyStorePassword</code> value for the custom key store.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS cannot
+         * find all of the subnets in the cluster configuration, attempts to connect the custom key store to the
+         * CloudHSM cluster fail. To fix this error, create a cluster from a recent backup and associate it with your
+         * custom key store. (This process creates a new cluster configuration with a VPC and private subnets.) For
+         * details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How to Fix
+         * a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated CloudHSM
+         * cluster due to too many failed password attempts. Before you can connect your custom key store to its
+         * CloudHSM cluster, you must change the <code>kmsuser</code> account password and update the key store password
+         * value for the custom key store.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated CloudHSM
+         * cluster. This prevents KMS from rotating the <code>kmsuser</code> account password and logging into the
+         * cluster. Before you can connect your custom key store to its CloudHSM cluster, you must log the
+         * <code>kmsuser</code> CU out of the cluster. If you changed the <code>kmsuser</code> password to log into the
+         * cluster, you must also and update the key store password value for the custom key store. For help, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How to Log Out
+         * and Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated CloudHSM
+         * cluster. Before you can connect your custom key store to its CloudHSM cluster, you must create a
+         * <code>kmsuser</code> CU account in the cluster, and then update the key store password value for the custom
+         * key store.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * <b>External key stores:</b>
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code> values is
+         * not valid on the specified external key store proxy.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy. If the
+         * external key store proxy has authorization rules, verify that they permit KMS to communicate with the proxy
+         * on your behalf.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key store
+         * from connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key store
+         * proxy. If you see this connection error code repeatedly, notify your external key store proxy vendor.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy because
+         * the TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also, verify that the
+         * TLS certificate is not expired, and that it matches the hostname in the <code>XksProxyUriEndpoint</code>
+         * value, and that it is signed by a certificate authority included in the <a
+         * href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">Trusted
+         * Certificate Authorities</a> list.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy. Verify that
+         * the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the tools for your
+         * external key store proxy to verify that the proxy is active and available on its network. Also, verify that
+         * your external key manager instances are operating properly. Connection attempts fail with this connection
+         * error code if the proxy reports that all external key manager instances are unavailable.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does not
+         * respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your external
+         * key store proxy vendor.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service configuration
+         * doesn't conform to the requirements for an KMS external key store.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon Web
+         * Services account.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * It must have a network load balancer (NLB) connected to at least two subnets, each in a different
+         * Availability Zone.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The <code>Allow principals</code> list must include the KMS service principal for the Region,
+         * <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * It must <i>not</i> require <a
+         * href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a> of
+         * connection requests.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * It must have a private DNS name. The private DNS name for an external key store with
+         * <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The domain of the private DNS name must have a <a
+         * href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a> of
+         * <code>verified</code>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+         * certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+         * </p>
+         * </li>
+         * </ul>
+         * </li>
+         * <li>
+         * <p>
+         * <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses to
+         * communicate with the external key store proxy. Verify that the <code>XksProxyVpcEndpointServiceName</code> is
+         * correct and the KMS service principal has service consumer permissions on the Amazon VPC endpoint service.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param connectionErrorCode
+         *        Describes the connection error. This field appears in the response only when the
+         *        <code>ConnectionState</code> is <code>FAILED</code>.</p>
+         *        <p>
+         *        Many failures can be resolved by updating the properties of the custom key store. To update a custom
+         *        key store, disconnect it (<a>DisconnectCustomKeyStore</a>), correct the errors
+         *        (<a>UpdateCustomKeyStore</a>), and try to connect again (<a>ConnectCustomKeyStore</a>). For additional
+         *        help resolving these errors, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+         *        to Fix a Connection Failure</a> in <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        <p>
+         *        <b>All custom key stores:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>INTERNAL_ERROR</code> — KMS could not complete the request due to an internal error. Retry the
+         *        request. For <code>ConnectCustomKeyStore</code> requests, disconnect the custom key store before
+         *        trying to connect again.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>NETWORK_ERRORS</code> — Network errors are preventing KMS from connecting the custom key store
+         *        to its backing key store.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        <b>CloudHSM key stores:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>CLUSTER_NOT_FOUND</code> — KMS cannot find the CloudHSM cluster with the specified cluster ID.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>INSUFFICIENT_CLOUDHSM_HSMS</code> — The associated CloudHSM cluster does not contain any active
+         *        HSMs. To connect a custom key store to its CloudHSM cluster, the cluster must contain at least one
+         *        active HSM.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET</code> — At least one private subnet associated with the
+         *        CloudHSM cluster doesn't have any available IP addresses. A CloudHSM key store connection requires one
+         *        free IP address in each of the associated private subnets, although two are preferable. For details,
+         *        see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+         *        to Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>INVALID_CREDENTIALS</code> — The <code>KeyStorePassword</code> for the custom key store doesn't
+         *        match the current password of the <code>kmsuser</code> crypto user in the CloudHSM cluster. Before you
+         *        can connect your custom key store to its CloudHSM cluster, you must change the <code>kmsuser</code>
+         *        account password and update the <code>KeyStorePassword</code> value for the custom key store.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>SUBNET_NOT_FOUND</code> — A subnet in the CloudHSM cluster configuration was deleted. If KMS
+         *        cannot find all of the subnets in the cluster configuration, attempts to connect the custom key store
+         *        to the CloudHSM cluster fail. To fix this error, create a cluster from a recent backup and associate
+         *        it with your custom key store. (This process creates a new cluster configuration with a VPC and
+         *        private subnets.) For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed">How
+         *        to Fix a Connection Failure</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>USER_LOCKED_OUT</code> — The <code>kmsuser</code> CU account is locked out of the associated
+         *        CloudHSM cluster due to too many failed password attempts. Before you can connect your custom key
+         *        store to its CloudHSM cluster, you must change the <code>kmsuser</code> account password and update
+         *        the key store password value for the custom key store.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>USER_LOGGED_IN</code> — The <code>kmsuser</code> CU account is logged into the associated
+         *        CloudHSM cluster. This prevents KMS from rotating the <code>kmsuser</code> account password and
+         *        logging into the cluster. Before you can connect your custom key store to its CloudHSM cluster, you
+         *        must log the <code>kmsuser</code> CU out of the cluster. If you changed the <code>kmsuser</code>
+         *        password to log into the cluster, you must also and update the key store password value for the custom
+         *        key store. For help, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2">How to
+         *        Log Out and Reconnect</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>USER_NOT_FOUND</code> — KMS cannot find a <code>kmsuser</code> CU account in the associated
+         *        CloudHSM cluster. Before you can connect your custom key store to its CloudHSM cluster, you must
+         *        create a <code>kmsuser</code> CU account in the cluster, and then update the key store password value
+         *        for the custom key store.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        <b>External key stores:</b>
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>INVALID_CREDENTIALS</code> — One or both of the <code>XksProxyAuthenticationCredential</code>
+         *        values is not valid on the specified external key store proxy.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_ACCESS_DENIED</code> — KMS requests are denied access to the external key store proxy.
+         *        If the external key store proxy has authorization rules, verify that they permit KMS to communicate
+         *        with the proxy on your behalf.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_INVALID_CONFIGURATION</code> — A configuration error is preventing the external key
+         *        store from connecting to its proxy. Verify the value of the <code>XksProxyUriPath</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_INVALID_RESPONSE</code> — KMS cannot interpret the response from the external key
+         *        store proxy. If you see this connection error code repeatedly, notify your external key store proxy
+         *        vendor.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_INVALID_TLS_CONFIGURATION</code> — KMS cannot connect to the external key store proxy
+         *        because the TLS configuration is invalid. Verify that the XKS proxy supports TLS 1.2 or 1.3. Also,
+         *        verify that the TLS certificate is not expired, and that it matches the hostname in the
+         *        <code>XksProxyUriEndpoint</code> value, and that it is signed by a certificate authority included in
+         *        the <a
+         *        href="https://github.com/aws/aws-kms-xksproxy-api-spec/blob/main/TrustedCertificateAuthorities">
+         *        Trusted Certificate Authorities</a> list.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_NOT_REACHABLE</code> — KMS can't communicate with your external key store proxy.
+         *        Verify that the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> are correct. Use the
+         *        tools for your external key store proxy to verify that the proxy is active and available on its
+         *        network. Also, verify that your external key manager instances are operating properly. Connection
+         *        attempts fail with this connection error code if the proxy reports that all external key manager
+         *        instances are unavailable.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_PROXY_TIMED_OUT</code> — KMS can connect to the external key store proxy, but the proxy does
+         *        not respond to KMS in the time allotted. If you see this connection error code repeatedly, notify your
+         *        external key store proxy vendor.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION</code> — The Amazon VPC endpoint service
+         *        configuration doesn't conform to the requirements for an KMS external key store.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The VPC endpoint service must be an endpoint service for interface endpoints in the caller's Amazon
+         *        Web Services account.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        It must have a network load balancer (NLB) connected to at least two subnets, each in a different
+         *        Availability Zone.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The <code>Allow principals</code> list must include the KMS service principal for the Region,
+         *        <code>cks.kms.&lt;region&gt;.amazonaws.com</code>, such as
+         *        <code>cks.kms.us-east-1.amazonaws.com</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        It must <i>not</i> require <a
+         *        href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html">acceptance</a>
+         *        of connection requests.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        It must have a private DNS name. The private DNS name for an external key store with
+         *        <code>VPC_ENDPOINT_SERVICE</code> connectivity must be unique in its Amazon Web Services Region.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The domain of the private DNS name must have a <a
+         *        href="https://docs.aws.amazon.com/vpc/latest/privatelink/verify-domains.html">verification status</a>
+         *        of <code>verified</code>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The <a
+         *        href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html">TLS
+         *        certificate</a> specifies the private DNS hostname at which the endpoint is reachable.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND</code> — KMS can't find the VPC endpoint service that it uses
+         *        to communicate with the external key store proxy. Verify that the
+         *        <code>XksProxyVpcEndpointServiceName</code> is correct and the KMS service principal has service
+         *        consumer permissions on the Amazon VPC endpoint service.
+         *        </p>
+         *        </li>
+         * @see ConnectionErrorCodeType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ConnectionErrorCodeType
+         */
+        Builder connectionErrorCode(ConnectionErrorCodeType connectionErrorCode);
+
+        /**
+         * <p>
+         * The date and time when the custom key store was created.
+         * </p>
+         * 
+         * @param creationDate
+         *        The date and time when the custom key store was created.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder creationDate(Instant creationDate);
+
+        /**
+         * <p>
+         * Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store backed by
+         * an CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by an external key
+         * store proxy and external key manager outside of Amazon Web Services.
+         * </p>
+         * 
+         * @param customKeyStoreType
+         *        Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store
+         *        backed by an CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by
+         *        an external key store proxy and external key manager outside of Amazon Web Services.
+         * @see CustomKeyStoreType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomKeyStoreType
+         */
+        Builder customKeyStoreType(String customKeyStoreType);
+
+        /**
+         * <p>
+         * Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store backed by
+         * an CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by an external key
+         * store proxy and external key manager outside of Amazon Web Services.
+         * </p>
+         * 
+         * @param customKeyStoreType
+         *        Indicates the type of the custom key store. <code>AWS_CLOUDHSM</code> indicates a custom key store
+         *        backed by an CloudHSM cluster. <code>EXTERNAL_KEY_STORE</code> indicates a custom key store backed by
+         *        an external key store proxy and external key manager outside of Amazon Web Services.
+         * @see CustomKeyStoreType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomKeyStoreType
+         */
+        Builder customKeyStoreType(CustomKeyStoreType customKeyStoreType);
+
+        /**
+         * <p>
+         * Configuration settings for the external key store proxy (XKS proxy). The external key store proxy translates
+         * KMS requests into a format that your external key manager can understand. The proxy configuration includes
+         * connection information that KMS requires.
+         * </p>
+         * <p>
+         * This field appears only when the <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * 
+         * @param xksProxyConfiguration
+         *        Configuration settings for the external key store proxy (XKS proxy). The external key store proxy
+         *        translates KMS requests into a format that your external key manager can understand. The proxy
+         *        configuration includes connection information that KMS requires.</p>
+         *        <p>
+         *        This field appears only when the <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyConfiguration(XksProxyConfigurationType xksProxyConfiguration);
+
+        /**
+         * <p>
+         * Configuration settings for the external key store proxy (XKS proxy). The external key store proxy translates
+         * KMS requests into a format that your external key manager can understand. The proxy configuration includes
+         * connection information that KMS requires.
+         * </p>
+         * <p>
+         * This field appears only when the <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link XksProxyConfigurationType.Builder}
+         * avoiding the need to create one manually via {@link XksProxyConfigurationType#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link XksProxyConfigurationType.Builder#build()} is called immediately
+         * and its result is passed to {@link #xksProxyConfiguration(XksProxyConfigurationType)}.
+         * 
+         * @param xksProxyConfiguration
+         *        a consumer that will call methods on {@link XksProxyConfigurationType.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #xksProxyConfiguration(XksProxyConfigurationType)
+         */
+        default Builder xksProxyConfiguration(Consumer<XksProxyConfigurationType.Builder> xksProxyConfiguration) {
+            return xksProxyConfiguration(XksProxyConfigurationType.builder().applyMutation(xksProxyConfiguration).build());
+        }
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private String customKeyStoreName;
+
+        private String cloudHsmClusterId;
+
+        private String trustAnchorCertificate;
+
+        private String connectionState;
+
+        private String connectionErrorCode;
+
+        private Instant creationDate;
+
+        private String customKeyStoreType;
+
+        private XksProxyConfigurationType xksProxyConfiguration;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(CustomKeyStoresListEntry model) {
+            customKeyStoreId(model.customKeyStoreId);
+            customKeyStoreName(model.customKeyStoreName);
+            cloudHsmClusterId(model.cloudHsmClusterId);
+            trustAnchorCertificate(model.trustAnchorCertificate);
+            connectionState(model.connectionState);
+            connectionErrorCode(model.connectionErrorCode);
+            creationDate(model.creationDate);
+            customKeyStoreType(model.customKeyStoreType);
+            xksProxyConfiguration(model.xksProxyConfiguration);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        public final String getCustomKeyStoreName() {
+            return customKeyStoreName;
+        }
+
+        public final void setCustomKeyStoreName(String customKeyStoreName) {
+            this.customKeyStoreName = customKeyStoreName;
+        }
+
+        @Override
+        public final Builder customKeyStoreName(String customKeyStoreName) {
+            this.customKeyStoreName = customKeyStoreName;
+            return this;
+        }
+
+        public final String getCloudHsmClusterId() {
+            return cloudHsmClusterId;
+        }
+
+        public final void setCloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+        }
+
+        @Override
+        public final Builder cloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+            return this;
+        }
+
+        public final String getTrustAnchorCertificate() {
+            return trustAnchorCertificate;
+        }
+
+        public final void setTrustAnchorCertificate(String trustAnchorCertificate) {
+            this.trustAnchorCertificate = trustAnchorCertificate;
+        }
+
+        @Override
+        public final Builder trustAnchorCertificate(String trustAnchorCertificate) {
+            this.trustAnchorCertificate = trustAnchorCertificate;
+            return this;
+        }
+
+        public final String getConnectionState() {
+            return connectionState;
+        }
+
+        public final void setConnectionState(String connectionState) {
+            this.connectionState = connectionState;
+        }
+
+        @Override
+        public final Builder connectionState(String connectionState) {
+            this.connectionState = connectionState;
+            return this;
+        }
+
+        @Override
+        public final Builder connectionState(ConnectionStateType connectionState) {
+            this.connectionState(connectionState == null ? null : connectionState.toString());
+            return this;
+        }
+
+        public final String getConnectionErrorCode() {
+            return connectionErrorCode;
+        }
+
+        public final void setConnectionErrorCode(String connectionErrorCode) {
+            this.connectionErrorCode = connectionErrorCode;
+        }
+
+        @Override
+        public final Builder connectionErrorCode(String connectionErrorCode) {
+            this.connectionErrorCode = connectionErrorCode;
+            return this;
+        }
+
+        @Override
+        public final Builder connectionErrorCode(ConnectionErrorCodeType connectionErrorCode) {
+            this.connectionErrorCode(connectionErrorCode == null ? null : connectionErrorCode.toString());
+            return this;
+        }
+
+        public final Instant getCreationDate() {
+            return creationDate;
+        }
+
+        public final void setCreationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+        }
+
+        @Override
+        public final Builder creationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+            return this;
+        }
+
+        public final String getCustomKeyStoreType() {
+            return customKeyStoreType;
+        }
+
+        public final void setCustomKeyStoreType(String customKeyStoreType) {
+            this.customKeyStoreType = customKeyStoreType;
+        }
+
+        @Override
+        public final Builder customKeyStoreType(String customKeyStoreType) {
+            this.customKeyStoreType = customKeyStoreType;
+            return this;
+        }
+
+        @Override
+        public final Builder customKeyStoreType(CustomKeyStoreType customKeyStoreType) {
+            this.customKeyStoreType(customKeyStoreType == null ? null : customKeyStoreType.toString());
+            return this;
+        }
+
+        public final XksProxyConfigurationType.Builder getXksProxyConfiguration() {
+            return xksProxyConfiguration != null ? xksProxyConfiguration.toBuilder() : null;
+        }
+
+        public final void setXksProxyConfiguration(XksProxyConfigurationType.BuilderImpl xksProxyConfiguration) {
+            this.xksProxyConfiguration = xksProxyConfiguration != null ? xksProxyConfiguration.build() : null;
+        }
+
+        @Override
+        public final Builder xksProxyConfiguration(XksProxyConfigurationType xksProxyConfiguration) {
+            this.xksProxyConfiguration = xksProxyConfiguration;
+            return this;
+        }
+
+        @Override
+        public CustomKeyStoresListEntry build() {
+            return new CustomKeyStoresListEntry(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomerMasterKeySpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomerMasterKeySpec.java
new file mode 100644
index 0000000..ba92ae0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/CustomerMasterKeySpec.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+@Deprecated
+public enum CustomerMasterKeySpec {
+    RSA_2048("RSA_2048"),
+
+    RSA_3072("RSA_3072"),
+
+    RSA_4096("RSA_4096"),
+
+    ECC_NIST_P256("ECC_NIST_P256"),
+
+    ECC_NIST_P384("ECC_NIST_P384"),
+
+    ECC_NIST_P521("ECC_NIST_P521"),
+
+    ECC_SECG_P256_K1("ECC_SECG_P256K1"),
+
+    SYMMETRIC_DEFAULT("SYMMETRIC_DEFAULT"),
+
+    HMAC_224("HMAC_224"),
+
+    HMAC_256("HMAC_256"),
+
+    HMAC_384("HMAC_384"),
+
+    HMAC_512("HMAC_512"),
+
+    SM2("SM2"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, CustomerMasterKeySpec> VALUE_MAP = EnumUtils.uniqueIndex(CustomerMasterKeySpec.class,
+            CustomerMasterKeySpec::toString);
+
+    private final String value;
+
+    private CustomerMasterKeySpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return CustomerMasterKeySpec corresponding to the value
+     */
+    public static CustomerMasterKeySpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link CustomerMasterKeySpec}s
+     */
+    public static Set<CustomerMasterKeySpec> knownValues() {
+        Set<CustomerMasterKeySpec> knownValues = EnumSet.allOf(CustomerMasterKeySpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DataKeyPairSpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DataKeyPairSpec.java
new file mode 100644
index 0000000..dfec073
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DataKeyPairSpec.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum DataKeyPairSpec {
+    RSA_2048("RSA_2048"),
+
+    RSA_3072("RSA_3072"),
+
+    RSA_4096("RSA_4096"),
+
+    ECC_NIST_P256("ECC_NIST_P256"),
+
+    ECC_NIST_P384("ECC_NIST_P384"),
+
+    ECC_NIST_P521("ECC_NIST_P521"),
+
+    ECC_SECG_P256_K1("ECC_SECG_P256K1"),
+
+    SM2("SM2"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, DataKeyPairSpec> VALUE_MAP = EnumUtils.uniqueIndex(DataKeyPairSpec.class,
+            DataKeyPairSpec::toString);
+
+    private final String value;
+
+    private DataKeyPairSpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return DataKeyPairSpec corresponding to the value
+     */
+    public static DataKeyPairSpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link DataKeyPairSpec}s
+     */
+    public static Set<DataKeyPairSpec> knownValues() {
+        Set<DataKeyPairSpec> knownValues = EnumSet.allOf(DataKeyPairSpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DataKeySpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DataKeySpec.java
new file mode 100644
index 0000000..ac54e50
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DataKeySpec.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum DataKeySpec {
+    AES_256("AES_256"),
+
+    AES_128("AES_128"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, DataKeySpec> VALUE_MAP = EnumUtils.uniqueIndex(DataKeySpec.class, DataKeySpec::toString);
+
+    private final String value;
+
+    private DataKeySpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return DataKeySpec corresponding to the value
+     */
+    public static DataKeySpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link DataKeySpec}s
+     */
+    public static Set<DataKeySpec> knownValues() {
+        Set<DataKeySpec> knownValues = EnumSet.allOf(DataKeySpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DecryptRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DecryptRequest.java
new file mode 100644
index 0000000..17eb624
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DecryptRequest.java
@@ -0,0 +1,1106 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DecryptRequest extends KmsRequest implements ToCopyableBuilder<DecryptRequest.Builder, DecryptRequest> {
+    private static final SdkField<SdkBytes> CIPHERTEXT_BLOB_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("CiphertextBlob").getter(getter(DecryptRequest::ciphertextBlob)).setter(setter(Builder::ciphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextBlob").build()).build();
+
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContext")
+            .getter(getter(DecryptRequest::encryptionContext))
+            .setter(setter(Builder::encryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(DecryptRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(DecryptRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("EncryptionAlgorithm").getter(getter(DecryptRequest::encryptionAlgorithmAsString))
+            .setter(setter(Builder::encryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionAlgorithm").build())
+            .build();
+
+    private static final SdkField<RecipientInfo> RECIPIENT_FIELD = SdkField.<RecipientInfo> builder(MarshallingType.SDK_POJO)
+            .memberName("Recipient").getter(getter(DecryptRequest::recipient)).setter(setter(Builder::recipient))
+            .constructor(RecipientInfo::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Recipient").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(DecryptRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CIPHERTEXT_BLOB_FIELD,
+            ENCRYPTION_CONTEXT_FIELD, GRANT_TOKENS_FIELD, KEY_ID_FIELD, ENCRYPTION_ALGORITHM_FIELD, RECIPIENT_FIELD,
+            DRY_RUN_FIELD));
+
+    private final SdkBytes ciphertextBlob;
+
+    private final Map<String, String> encryptionContext;
+
+    private final List<String> grantTokens;
+
+    private final String keyId;
+
+    private final String encryptionAlgorithm;
+
+    private final RecipientInfo recipient;
+
+    private final Boolean dryRun;
+
+    private DecryptRequest(BuilderImpl builder) {
+        super(builder);
+        this.ciphertextBlob = builder.ciphertextBlob;
+        this.encryptionContext = builder.encryptionContext;
+        this.grantTokens = builder.grantTokens;
+        this.keyId = builder.keyId;
+        this.encryptionAlgorithm = builder.encryptionAlgorithm;
+        this.recipient = builder.recipient;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Ciphertext to be decrypted. The blob includes metadata.
+     * </p>
+     * 
+     * @return Ciphertext to be decrypted. The blob includes metadata.
+     */
+    public final SdkBytes ciphertextBlob() {
+        return ciphertextBlob;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContext property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionContext() {
+        return encryptionContext != null && !(encryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context to use when decrypting the data. An encryption context is valid only for <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption algorithms and HMAC
+     * algorithms that KMS uses do not support an encryption context.
+     * </p>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context to use when decrypting the data. An encryption context is valid only for
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+     *         cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption
+     *         algorithms and HMAC algorithms that KMS uses do not support an encryption context.</p>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> encryptionContext() {
+        return encryptionContext;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens. </p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Specifies the KMS key that KMS uses to decrypt the ciphertext.
+     * </p>
+     * <p>
+     * Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS key, the
+     * <code>Decrypt</code> operation throws an <code>IncorrectKeyException</code>.
+     * </p>
+     * <p>
+     * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a
+     * symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext
+     * blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key that
+     * you intend.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Specifies the KMS key that KMS uses to decrypt the ciphertext.</p>
+     *         <p>
+     *         Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS
+     *         key, the <code>Decrypt</code> operation throws an <code>IncorrectKeyException</code>.
+     *         </p>
+     *         <p>
+     *         This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you
+     *         used a symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric
+     *         ciphertext blob. However, it is always recommended as a best practice. This practice ensures that you use
+     *         the KMS key that you intend.
+     *         </p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same algorithm that
+     * was used to encrypt the data. If you specify a different algorithm, the <code>Decrypt</code> operation fails.
+     * </p>
+     * <p>
+     * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The default value,
+     * <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid for symmetric encryption
+     * KMS keys.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same
+     *         algorithm that was used to encrypt the data. If you specify a different algorithm, the
+     *         <code>Decrypt</code> operation fails.</p>
+     *         <p>
+     *         This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The
+     *         default value, <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid for
+     *         symmetric encryption KMS keys.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec encryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(encryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same algorithm that
+     * was used to encrypt the data. If you specify a different algorithm, the <code>Decrypt</code> operation fails.
+     * </p>
+     * <p>
+     * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The default value,
+     * <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid for symmetric encryption
+     * KMS keys.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same
+     *         algorithm that was used to encrypt the data. If you specify a different algorithm, the
+     *         <code>Decrypt</code> operation fails.</p>
+     *         <p>
+     *         This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The
+     *         default value, <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid for
+     *         symmetric encryption KMS keys.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String encryptionAlgorithmAsString() {
+        return encryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * A signed <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-concepts.html#term-attestdoc">attestation
+     * document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
+     * public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     * </p>
+     * <p>
+     * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+     * parameter, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     * </p>
+     * <p>
+     * When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with the
+     * public key in the attestation document, and returns the resulting ciphertext in the
+     * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the private
+     * key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+     * </p>
+     * <p>
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return A signed <a
+     *         href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-concepts.html#term-attestdoc"
+     *         >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use
+     *         with the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     *         </p>
+     *         <p>
+     *         This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+     *         this parameter, use the <a
+     *         href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+     *         Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     *         </p>
+     *         <p>
+     *         When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data
+     *         with the public key in the attestation document, and returns the resulting ciphertext in the
+     *         <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+     *         private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+     *         </p>
+     *         <p>
+     *         For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final RecipientInfo recipient() {
+        return recipient;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContext() ? encryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(encryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(recipient());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DecryptRequest)) {
+            return false;
+        }
+        DecryptRequest other = (DecryptRequest) obj;
+        return Objects.equals(ciphertextBlob(), other.ciphertextBlob()) && hasEncryptionContext() == other.hasEncryptionContext()
+                && Objects.equals(encryptionContext(), other.encryptionContext()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(encryptionAlgorithmAsString(), other.encryptionAlgorithmAsString())
+                && Objects.equals(recipient(), other.recipient()) && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DecryptRequest").add("CiphertextBlob", ciphertextBlob())
+                .add("EncryptionContext", hasEncryptionContext() ? encryptionContext() : null)
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null).add("KeyId", keyId())
+                .add("EncryptionAlgorithm", encryptionAlgorithmAsString()).add("Recipient", recipient()).add("DryRun", dryRun())
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CiphertextBlob":
+            return Optional.ofNullable(clazz.cast(ciphertextBlob()));
+        case "EncryptionContext":
+            return Optional.ofNullable(clazz.cast(encryptionContext()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "EncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(encryptionAlgorithmAsString()));
+        case "Recipient":
+            return Optional.ofNullable(clazz.cast(recipient()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DecryptRequest, T> g) {
+        return obj -> g.apply((DecryptRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DecryptRequest> {
+        /**
+         * <p>
+         * Ciphertext to be decrypted. The blob includes metadata.
+         * </p>
+         * 
+         * @param ciphertextBlob
+         *        Ciphertext to be decrypted. The blob includes metadata.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextBlob(SdkBytes ciphertextBlob);
+
+        /**
+         * <p>
+         * Specifies the encryption context to use when decrypting the data. An encryption context is valid only for <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+         * cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption
+         * algorithms and HMAC algorithms that KMS uses do not support an encryption context.
+         * </p>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param encryptionContext
+         *        Specifies the encryption context to use when decrypting the data. An encryption context is valid only
+         *        for <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption
+         *        algorithms and HMAC algorithms that KMS uses do not support an encryption context.</p>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContext(Map<String, String> encryptionContext);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens. </p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens. </p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Specifies the KMS key that KMS uses to decrypt the ciphertext.
+         * </p>
+         * <p>
+         * Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS key,
+         * the <code>Decrypt</code> operation throws an <code>IncorrectKeyException</code>.
+         * </p>
+         * <p>
+         * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a
+         * symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext
+         * blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key
+         * that you intend.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Specifies the KMS key that KMS uses to decrypt the ciphertext.</p>
+         *        <p>
+         *        Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS
+         *        key, the <code>Decrypt</code> operation throws an <code>IncorrectKeyException</code>.
+         *        </p>
+         *        <p>
+         *        This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you
+         *        used a symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the
+         *        symmetric ciphertext blob. However, it is always recommended as a best practice. This practice ensures
+         *        that you use the KMS key that you intend.
+         *        </p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same algorithm
+         * that was used to encrypt the data. If you specify a different algorithm, the <code>Decrypt</code> operation
+         * fails.
+         * </p>
+         * <p>
+         * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The default
+         * value, <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid for symmetric
+         * encryption KMS keys.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same
+         *        algorithm that was used to encrypt the data. If you specify a different algorithm, the
+         *        <code>Decrypt</code> operation fails.</p>
+         *        <p>
+         *        This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The
+         *        default value, <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid
+         *        for symmetric encryption KMS keys.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(String encryptionAlgorithm);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same algorithm
+         * that was used to encrypt the data. If you specify a different algorithm, the <code>Decrypt</code> operation
+         * fails.
+         * </p>
+         * <p>
+         * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The default
+         * value, <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid for symmetric
+         * encryption KMS keys.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same
+         *        algorithm that was used to encrypt the data. If you specify a different algorithm, the
+         *        <code>Decrypt</code> operation fails.</p>
+         *        <p>
+         *        This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The
+         *        default value, <code>SYMMETRIC_DEFAULT</code>, represents the only supported algorithm that is valid
+         *        for symmetric encryption KMS keys.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm);
+
+        /**
+         * <p>
+         * A signed <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-concepts.html#term-attestdoc"
+         * >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with
+         * the public key in the attestation document, and returns the resulting ciphertext in the
+         * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+         * private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param recipient
+         *        A signed <a
+         *        href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-concepts.html#term-attestdoc"
+         *        >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to
+         *        use with the enclave's public key. The only valid encryption algorithm is
+         *        <code>RSAES_OAEP_SHA_256</code>. </p>
+         *        <p>
+         *        This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+         *        this parameter, use the <a
+         *        href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+         *        Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         *        </p>
+         *        <p>
+         *        When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data
+         *        with the public key in the attestation document, and returns the resulting ciphertext in the
+         *        <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with
+         *        the private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+         *        </p>
+         *        <p>
+         *        For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder recipient(RecipientInfo recipient);
+
+        /**
+         * <p>
+         * A signed <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-concepts.html#term-attestdoc"
+         * >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with
+         * the public key in the attestation document, and returns the resulting ciphertext in the
+         * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+         * private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link RecipientInfo.Builder} avoiding the need
+         * to create one manually via {@link RecipientInfo#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link RecipientInfo.Builder#build()} is called immediately and its
+         * result is passed to {@link #recipient(RecipientInfo)}.
+         * 
+         * @param recipient
+         *        a consumer that will call methods on {@link RecipientInfo.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #recipient(RecipientInfo)
+         */
+        default Builder recipient(Consumer<RecipientInfo.Builder> recipient) {
+            return recipient(RecipientInfo.builder().applyMutation(recipient).build());
+        }
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private SdkBytes ciphertextBlob;
+
+        private Map<String, String> encryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private String keyId;
+
+        private String encryptionAlgorithm;
+
+        private RecipientInfo recipient;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DecryptRequest model) {
+            super(model);
+            ciphertextBlob(model.ciphertextBlob);
+            encryptionContext(model.encryptionContext);
+            grantTokens(model.grantTokens);
+            keyId(model.keyId);
+            encryptionAlgorithm(model.encryptionAlgorithm);
+            recipient(model.recipient);
+            dryRun(model.dryRun);
+        }
+
+        public final ByteBuffer getCiphertextBlob() {
+            return ciphertextBlob == null ? null : ciphertextBlob.asByteBuffer();
+        }
+
+        public final void setCiphertextBlob(ByteBuffer ciphertextBlob) {
+            ciphertextBlob(ciphertextBlob == null ? null : SdkBytes.fromByteBuffer(ciphertextBlob));
+        }
+
+        @Override
+        public final Builder ciphertextBlob(SdkBytes ciphertextBlob) {
+            this.ciphertextBlob = ciphertextBlob;
+            return this;
+        }
+
+        public final Map<String, String> getEncryptionContext() {
+            if (encryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContext;
+        }
+
+        public final void setEncryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+        }
+
+        @Override
+        public final Builder encryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getEncryptionAlgorithm() {
+            return encryptionAlgorithm;
+        }
+
+        public final void setEncryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm) {
+            this.encryptionAlgorithm(encryptionAlgorithm == null ? null : encryptionAlgorithm.toString());
+            return this;
+        }
+
+        public final RecipientInfo.Builder getRecipient() {
+            return recipient != null ? recipient.toBuilder() : null;
+        }
+
+        public final void setRecipient(RecipientInfo.BuilderImpl recipient) {
+            this.recipient = recipient != null ? recipient.build() : null;
+        }
+
+        @Override
+        public final Builder recipient(RecipientInfo recipient) {
+            this.recipient = recipient;
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DecryptRequest build() {
+            return new DecryptRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DecryptResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DecryptResponse.java
new file mode 100644
index 0000000..9d74930
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DecryptResponse.java
@@ -0,0 +1,436 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DecryptResponse extends KmsResponse implements ToCopyableBuilder<DecryptResponse.Builder, DecryptResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(DecryptResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> PLAINTEXT_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Plaintext").getter(getter(DecryptResponse::plaintext)).setter(setter(Builder::plaintext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Plaintext").build()).build();
+
+    private static final SdkField<String> ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("EncryptionAlgorithm").getter(getter(DecryptResponse::encryptionAlgorithmAsString))
+            .setter(setter(Builder::encryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionAlgorithm").build())
+            .build();
+
+    private static final SdkField<SdkBytes> CIPHERTEXT_FOR_RECIPIENT_FIELD = SdkField
+            .<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("CiphertextForRecipient")
+            .getter(getter(DecryptResponse::ciphertextForRecipient)).setter(setter(Builder::ciphertextForRecipient))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextForRecipient").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, PLAINTEXT_FIELD,
+            ENCRYPTION_ALGORITHM_FIELD, CIPHERTEXT_FOR_RECIPIENT_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes plaintext;
+
+    private final String encryptionAlgorithm;
+
+    private final SdkBytes ciphertextForRecipient;
+
+    private DecryptResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.plaintext = builder.plaintext;
+        this.encryptionAlgorithm = builder.encryptionAlgorithm;
+        this.ciphertextForRecipient = builder.ciphertextForRecipient;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that was used to decrypt the ciphertext.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that was used to decrypt the ciphertext.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+     * Otherwise, it is not Base64-encoded.
+     * </p>
+     * <p>
+     * If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field is null
+     * or empty.
+     * </p>
+     * 
+     * @return Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.</p>
+     *         <p>
+     *         If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field
+     *         is null or empty.
+     */
+    public final SdkBytes plaintext() {
+        return plaintext;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to decrypt the ciphertext.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to decrypt the ciphertext.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec encryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(encryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to decrypt the ciphertext.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to decrypt the ciphertext.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String encryptionAlgorithmAsString() {
+        return encryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The plaintext data encrypted with the public key in the attestation document.
+     * </p>
+     * <p>
+     * This field is included in the response only when the <code>Recipient</code> parameter in the request includes a
+     * valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+     * between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return The plaintext data encrypted with the public key in the attestation document. </p>
+     *         <p>
+     *         This field is included in the response only when the <code>Recipient</code> parameter in the request
+     *         includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+     *         the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final SdkBytes ciphertextForRecipient() {
+        return ciphertextForRecipient;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(plaintext());
+        hashCode = 31 * hashCode + Objects.hashCode(encryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextForRecipient());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DecryptResponse)) {
+            return false;
+        }
+        DecryptResponse other = (DecryptResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(plaintext(), other.plaintext())
+                && Objects.equals(encryptionAlgorithmAsString(), other.encryptionAlgorithmAsString())
+                && Objects.equals(ciphertextForRecipient(), other.ciphertextForRecipient());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DecryptResponse").add("KeyId", keyId())
+                .add("Plaintext", plaintext() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("EncryptionAlgorithm", encryptionAlgorithmAsString())
+                .add("CiphertextForRecipient", ciphertextForRecipient()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Plaintext":
+            return Optional.ofNullable(clazz.cast(plaintext()));
+        case "EncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(encryptionAlgorithmAsString()));
+        case "CiphertextForRecipient":
+            return Optional.ofNullable(clazz.cast(ciphertextForRecipient()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DecryptResponse, T> g) {
+        return obj -> g.apply((DecryptResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DecryptResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that was used to decrypt the ciphertext.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that was used to decrypt the ciphertext.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * <p>
+         * If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field is
+         * null or empty.
+         * </p>
+         * 
+         * @param plaintext
+         *        Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.</p>
+         *        <p>
+         *        If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code>
+         *        field is null or empty.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder plaintext(SdkBytes plaintext);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to decrypt the ciphertext.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        The encryption algorithm that was used to decrypt the ciphertext.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(String encryptionAlgorithm);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to decrypt the ciphertext.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        The encryption algorithm that was used to decrypt the ciphertext.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm);
+
+        /**
+         * <p>
+         * The plaintext data encrypted with the public key in the attestation document.
+         * </p>
+         * <p>
+         * This field is included in the response only when the <code>Recipient</code> parameter in the request includes
+         * a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+         * between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param ciphertextForRecipient
+         *        The plaintext data encrypted with the public key in the attestation document. </p>
+         *        <p>
+         *        This field is included in the response only when the <code>Recipient</code> parameter in the request
+         *        includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+         *        the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes plaintext;
+
+        private String encryptionAlgorithm;
+
+        private SdkBytes ciphertextForRecipient;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DecryptResponse model) {
+            super(model);
+            keyId(model.keyId);
+            plaintext(model.plaintext);
+            encryptionAlgorithm(model.encryptionAlgorithm);
+            ciphertextForRecipient(model.ciphertextForRecipient);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getPlaintext() {
+            return plaintext == null ? null : plaintext.asByteBuffer();
+        }
+
+        public final void setPlaintext(ByteBuffer plaintext) {
+            plaintext(plaintext == null ? null : SdkBytes.fromByteBuffer(plaintext));
+        }
+
+        @Override
+        public final Builder plaintext(SdkBytes plaintext) {
+            this.plaintext = plaintext;
+            return this;
+        }
+
+        public final String getEncryptionAlgorithm() {
+            return encryptionAlgorithm;
+        }
+
+        public final void setEncryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm) {
+            this.encryptionAlgorithm(encryptionAlgorithm == null ? null : encryptionAlgorithm.toString());
+            return this;
+        }
+
+        public final ByteBuffer getCiphertextForRecipient() {
+            return ciphertextForRecipient == null ? null : ciphertextForRecipient.asByteBuffer();
+        }
+
+        public final void setCiphertextForRecipient(ByteBuffer ciphertextForRecipient) {
+            ciphertextForRecipient(ciphertextForRecipient == null ? null : SdkBytes.fromByteBuffer(ciphertextForRecipient));
+        }
+
+        @Override
+        public final Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient) {
+            this.ciphertextForRecipient = ciphertextForRecipient;
+            return this;
+        }
+
+        @Override
+        public DecryptResponse build() {
+            return new DecryptResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteAliasRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteAliasRequest.java
new file mode 100644
index 0000000..2aca156
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteAliasRequest.java
@@ -0,0 +1,206 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DeleteAliasRequest extends KmsRequest implements
+        ToCopyableBuilder<DeleteAliasRequest.Builder, DeleteAliasRequest> {
+    private static final SdkField<String> ALIAS_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AliasName").getter(getter(DeleteAliasRequest::aliasName)).setter(setter(Builder::aliasName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AliasName").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ALIAS_NAME_FIELD));
+
+    private final String aliasName;
+
+    private DeleteAliasRequest(BuilderImpl builder) {
+        super(builder);
+        this.aliasName = builder.aliasName;
+    }
+
+    /**
+     * <p>
+     * The alias to be deleted. The alias name must begin with <code>alias/</code> followed by the alias name, such as
+     * <code>alias/ExampleAlias</code>.
+     * </p>
+     * 
+     * @return The alias to be deleted. The alias name must begin with <code>alias/</code> followed by the alias name,
+     *         such as <code>alias/ExampleAlias</code>.
+     */
+    public final String aliasName() {
+        return aliasName;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(aliasName());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DeleteAliasRequest)) {
+            return false;
+        }
+        DeleteAliasRequest other = (DeleteAliasRequest) obj;
+        return Objects.equals(aliasName(), other.aliasName());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DeleteAliasRequest").add("AliasName", aliasName()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "AliasName":
+            return Optional.ofNullable(clazz.cast(aliasName()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DeleteAliasRequest, T> g) {
+        return obj -> g.apply((DeleteAliasRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DeleteAliasRequest> {
+        /**
+         * <p>
+         * The alias to be deleted. The alias name must begin with <code>alias/</code> followed by the alias name, such
+         * as <code>alias/ExampleAlias</code>.
+         * </p>
+         * 
+         * @param aliasName
+         *        The alias to be deleted. The alias name must begin with <code>alias/</code> followed by the alias
+         *        name, such as <code>alias/ExampleAlias</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliasName(String aliasName);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String aliasName;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DeleteAliasRequest model) {
+            super(model);
+            aliasName(model.aliasName);
+        }
+
+        public final String getAliasName() {
+            return aliasName;
+        }
+
+        public final void setAliasName(String aliasName) {
+            this.aliasName = aliasName;
+        }
+
+        @Override
+        public final Builder aliasName(String aliasName) {
+            this.aliasName = aliasName;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DeleteAliasRequest build() {
+            return new DeleteAliasRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteAliasResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteAliasResponse.java
new file mode 100644
index 0000000..26b8c31
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteAliasResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class DeleteAliasResponse extends KmsResponse implements
+        ToCopyableBuilder<DeleteAliasResponse.Builder, DeleteAliasResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private DeleteAliasResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DeleteAliasResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DeleteAliasResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DeleteAliasResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DeleteAliasResponse model) {
+            super(model);
+        }
+
+        @Override
+        public DeleteAliasResponse build() {
+            return new DeleteAliasResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteCustomKeyStoreRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteCustomKeyStoreRequest.java
new file mode 100644
index 0000000..13b1598
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteCustomKeyStoreRequest.java
@@ -0,0 +1,207 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DeleteCustomKeyStoreRequest extends KmsRequest implements
+        ToCopyableBuilder<DeleteCustomKeyStoreRequest.Builder, DeleteCustomKeyStoreRequest> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(DeleteCustomKeyStoreRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD));
+
+    private final String customKeyStoreId;
+
+    private DeleteCustomKeyStoreRequest(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreId = builder.customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * 
+     * @return Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the
+     *         <a>DescribeCustomKeyStores</a> operation.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DeleteCustomKeyStoreRequest)) {
+            return false;
+        }
+        DeleteCustomKeyStoreRequest other = (DeleteCustomKeyStoreRequest) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DeleteCustomKeyStoreRequest").add("CustomKeyStoreId", customKeyStoreId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DeleteCustomKeyStoreRequest, T> g) {
+        return obj -> g.apply((DeleteCustomKeyStoreRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DeleteCustomKeyStoreRequest> {
+        /**
+         * <p>
+         * Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the
+         * <a>DescribeCustomKeyStores</a> operation.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the
+         *        <a>DescribeCustomKeyStores</a> operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DeleteCustomKeyStoreRequest model) {
+            super(model);
+            customKeyStoreId(model.customKeyStoreId);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DeleteCustomKeyStoreRequest build() {
+            return new DeleteCustomKeyStoreRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteCustomKeyStoreResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteCustomKeyStoreResponse.java
new file mode 100644
index 0000000..400abc6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteCustomKeyStoreResponse.java
@@ -0,0 +1,116 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DeleteCustomKeyStoreResponse extends KmsResponse implements
+        ToCopyableBuilder<DeleteCustomKeyStoreResponse.Builder, DeleteCustomKeyStoreResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private DeleteCustomKeyStoreResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DeleteCustomKeyStoreResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DeleteCustomKeyStoreResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DeleteCustomKeyStoreResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DeleteCustomKeyStoreResponse model) {
+            super(model);
+        }
+
+        @Override
+        public DeleteCustomKeyStoreResponse build() {
+            return new DeleteCustomKeyStoreResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteImportedKeyMaterialRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteImportedKeyMaterialRequest.java
new file mode 100644
index 0000000..b9969bb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteImportedKeyMaterialRequest.java
@@ -0,0 +1,288 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DeleteImportedKeyMaterialRequest extends KmsRequest implements
+        ToCopyableBuilder<DeleteImportedKeyMaterialRequest.Builder, DeleteImportedKeyMaterialRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(DeleteImportedKeyMaterialRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private DeleteImportedKeyMaterialRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key from which you are deleting imported key material. The <code>Origin</code> of the KMS key
+     * must be <code>EXTERNAL</code>.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key from which you are deleting imported key material. The <code>Origin</code> of the
+     *         KMS key must be <code>EXTERNAL</code>.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DeleteImportedKeyMaterialRequest)) {
+            return false;
+        }
+        DeleteImportedKeyMaterialRequest other = (DeleteImportedKeyMaterialRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DeleteImportedKeyMaterialRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DeleteImportedKeyMaterialRequest, T> g) {
+        return obj -> g.apply((DeleteImportedKeyMaterialRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DeleteImportedKeyMaterialRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key from which you are deleting imported key material. The <code>Origin</code> of the KMS
+         * key must be <code>EXTERNAL</code>.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key from which you are deleting imported key material. The <code>Origin</code> of
+         *        the KMS key must be <code>EXTERNAL</code>.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DeleteImportedKeyMaterialRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DeleteImportedKeyMaterialRequest build() {
+            return new DeleteImportedKeyMaterialRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteImportedKeyMaterialResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteImportedKeyMaterialResponse.java
new file mode 100644
index 0000000..9ceba14
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DeleteImportedKeyMaterialResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class DeleteImportedKeyMaterialResponse extends KmsResponse implements
+        ToCopyableBuilder<DeleteImportedKeyMaterialResponse.Builder, DeleteImportedKeyMaterialResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private DeleteImportedKeyMaterialResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DeleteImportedKeyMaterialResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DeleteImportedKeyMaterialResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DeleteImportedKeyMaterialResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DeleteImportedKeyMaterialResponse model) {
+            super(model);
+        }
+
+        @Override
+        public DeleteImportedKeyMaterialResponse build() {
+            return new DeleteImportedKeyMaterialResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DependencyTimeoutException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DependencyTimeoutException.java
new file mode 100644
index 0000000..17e04d6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DependencyTimeoutException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The system timed out while trying to fulfill the request. You can retry the request.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DependencyTimeoutException extends KmsException implements
+        ToCopyableBuilder<DependencyTimeoutException.Builder, DependencyTimeoutException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private DependencyTimeoutException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, DependencyTimeoutException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DependencyTimeoutException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public DependencyTimeoutException build() {
+            return new DependencyTimeoutException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeCustomKeyStoresRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeCustomKeyStoresRequest.java
new file mode 100644
index 0000000..4f4569b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeCustomKeyStoresRequest.java
@@ -0,0 +1,402 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DescribeCustomKeyStoresRequest extends KmsRequest implements
+        ToCopyableBuilder<DescribeCustomKeyStoresRequest.Builder, DescribeCustomKeyStoresRequest> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(DescribeCustomKeyStoresRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreName").getter(getter(DescribeCustomKeyStoresRequest::customKeyStoreName))
+            .setter(setter(Builder::customKeyStoreName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreName").build())
+            .build();
+
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(DescribeCustomKeyStoresRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(DescribeCustomKeyStoresRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD,
+            CUSTOM_KEY_STORE_NAME_FIELD, LIMIT_FIELD, MARKER_FIELD));
+
+    private final String customKeyStoreId;
+
+    private final String customKeyStoreName;
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private DescribeCustomKeyStoresRequest(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreId = builder.customKeyStoreId;
+        this.customKeyStoreName = builder.customKeyStoreName;
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+    }
+
+    /**
+     * <p>
+     * Gets only information about the specified custom key store. Enter the key store ID.
+     * </p>
+     * <p>
+     * By default, this operation gets information about all custom key stores in the account and Region. To limit the
+     * output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+     * <code>CustomKeyStoreName</code> parameter, but not both.
+     * </p>
+     * 
+     * @return Gets only information about the specified custom key store. Enter the key store ID.</p>
+     *         <p>
+     *         By default, this operation gets information about all custom key stores in the account and Region. To
+     *         limit the output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+     *         <code>CustomKeyStoreName</code> parameter, but not both.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * Gets only information about the specified custom key store. Enter the friendly name of the custom key store.
+     * </p>
+     * <p>
+     * By default, this operation gets information about all custom key stores in the account and Region. To limit the
+     * output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+     * <code>CustomKeyStoreName</code> parameter, but not both.
+     * </p>
+     * 
+     * @return Gets only information about the specified custom key store. Enter the friendly name of the custom key
+     *         store.</p>
+     *         <p>
+     *         By default, this operation gets information about all custom key stores in the account and Region. To
+     *         limit the output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+     *         <code>CustomKeyStoreName</code> parameter, but not both.
+     */
+    public final String customKeyStoreName() {
+        return customKeyStoreName;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreName());
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DescribeCustomKeyStoresRequest)) {
+            return false;
+        }
+        DescribeCustomKeyStoresRequest other = (DescribeCustomKeyStoresRequest) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId())
+                && Objects.equals(customKeyStoreName(), other.customKeyStoreName()) && Objects.equals(limit(), other.limit())
+                && Objects.equals(marker(), other.marker());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DescribeCustomKeyStoresRequest").add("CustomKeyStoreId", customKeyStoreId())
+                .add("CustomKeyStoreName", customKeyStoreName()).add("Limit", limit()).add("Marker", marker()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        case "CustomKeyStoreName":
+            return Optional.ofNullable(clazz.cast(customKeyStoreName()));
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DescribeCustomKeyStoresRequest, T> g) {
+        return obj -> g.apply((DescribeCustomKeyStoresRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DescribeCustomKeyStoresRequest> {
+        /**
+         * <p>
+         * Gets only information about the specified custom key store. Enter the key store ID.
+         * </p>
+         * <p>
+         * By default, this operation gets information about all custom key stores in the account and Region. To limit
+         * the output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+         * <code>CustomKeyStoreName</code> parameter, but not both.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Gets only information about the specified custom key store. Enter the key store ID.</p>
+         *        <p>
+         *        By default, this operation gets information about all custom key stores in the account and Region. To
+         *        limit the output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+         *        <code>CustomKeyStoreName</code> parameter, but not both.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        /**
+         * <p>
+         * Gets only information about the specified custom key store. Enter the friendly name of the custom key store.
+         * </p>
+         * <p>
+         * By default, this operation gets information about all custom key stores in the account and Region. To limit
+         * the output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+         * <code>CustomKeyStoreName</code> parameter, but not both.
+         * </p>
+         * 
+         * @param customKeyStoreName
+         *        Gets only information about the specified custom key store. Enter the friendly name of the custom key
+         *        store.</p>
+         *        <p>
+         *        By default, this operation gets information about all custom key stores in the account and Region. To
+         *        limit the output to a particular custom key store, provide either the <code>CustomKeyStoreId</code> or
+         *        <code>CustomKeyStoreName</code> parameter, but not both.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreName(String customKeyStoreName);
+
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private String customKeyStoreName;
+
+        private Integer limit;
+
+        private String marker;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DescribeCustomKeyStoresRequest model) {
+            super(model);
+            customKeyStoreId(model.customKeyStoreId);
+            customKeyStoreName(model.customKeyStoreName);
+            limit(model.limit);
+            marker(model.marker);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        public final String getCustomKeyStoreName() {
+            return customKeyStoreName;
+        }
+
+        public final void setCustomKeyStoreName(String customKeyStoreName) {
+            this.customKeyStoreName = customKeyStoreName;
+        }
+
+        @Override
+        public final Builder customKeyStoreName(String customKeyStoreName) {
+            this.customKeyStoreName = customKeyStoreName;
+            return this;
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DescribeCustomKeyStoresRequest build() {
+            return new DescribeCustomKeyStoresRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeCustomKeyStoresResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeCustomKeyStoresResponse.java
new file mode 100644
index 0000000..9f0f1ec
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeCustomKeyStoresResponse.java
@@ -0,0 +1,386 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DescribeCustomKeyStoresResponse extends KmsResponse implements
+        ToCopyableBuilder<DescribeCustomKeyStoresResponse.Builder, DescribeCustomKeyStoresResponse> {
+    private static final SdkField<List<CustomKeyStoresListEntry>> CUSTOM_KEY_STORES_FIELD = SdkField
+            .<List<CustomKeyStoresListEntry>> builder(MarshallingType.LIST)
+            .memberName("CustomKeyStores")
+            .getter(getter(DescribeCustomKeyStoresResponse::customKeyStores))
+            .setter(setter(Builder::customKeyStores))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStores").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<CustomKeyStoresListEntry> builder(MarshallingType.SDK_POJO)
+                                            .constructor(CustomKeyStoresListEntry::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(DescribeCustomKeyStoresResponse::nextMarker))
+            .setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(DescribeCustomKeyStoresResponse::truncated))
+            .setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORES_FIELD,
+            NEXT_MARKER_FIELD, TRUNCATED_FIELD));
+
+    private final List<CustomKeyStoresListEntry> customKeyStores;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private DescribeCustomKeyStoresResponse(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStores = builder.customKeyStores;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the CustomKeyStores property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasCustomKeyStores() {
+        return customKeyStores != null && !(customKeyStores instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * Contains metadata about each custom key store.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasCustomKeyStores} method.
+     * </p>
+     * 
+     * @return Contains metadata about each custom key store.
+     */
+    public final List<CustomKeyStoresListEntry> customKeyStores() {
+        return customKeyStores;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasCustomKeyStores() ? customKeyStores() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DescribeCustomKeyStoresResponse)) {
+            return false;
+        }
+        DescribeCustomKeyStoresResponse other = (DescribeCustomKeyStoresResponse) obj;
+        return hasCustomKeyStores() == other.hasCustomKeyStores() && Objects.equals(customKeyStores(), other.customKeyStores())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DescribeCustomKeyStoresResponse")
+                .add("CustomKeyStores", hasCustomKeyStores() ? customKeyStores() : null).add("NextMarker", nextMarker())
+                .add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStores":
+            return Optional.ofNullable(clazz.cast(customKeyStores()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DescribeCustomKeyStoresResponse, T> g) {
+        return obj -> g.apply((DescribeCustomKeyStoresResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DescribeCustomKeyStoresResponse> {
+        /**
+         * <p>
+         * Contains metadata about each custom key store.
+         * </p>
+         * 
+         * @param customKeyStores
+         *        Contains metadata about each custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStores(Collection<CustomKeyStoresListEntry> customKeyStores);
+
+        /**
+         * <p>
+         * Contains metadata about each custom key store.
+         * </p>
+         * 
+         * @param customKeyStores
+         *        Contains metadata about each custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStores(CustomKeyStoresListEntry... customKeyStores);
+
+        /**
+         * <p>
+         * Contains metadata about each custom key store.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.CustomKeyStoresListEntry.Builder} avoiding the need to
+         * create one manually via {@link software.amazon.awssdk.services.kms.model.CustomKeyStoresListEntry#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes,
+         * {@link software.amazon.awssdk.services.kms.model.CustomKeyStoresListEntry.Builder#build()} is called
+         * immediately and its result is passed to {@link #customKeyStores(List<CustomKeyStoresListEntry>)}.
+         * 
+         * @param customKeyStores
+         *        a consumer that will call methods on
+         *        {@link software.amazon.awssdk.services.kms.model.CustomKeyStoresListEntry.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #customKeyStores(java.util.Collection<CustomKeyStoresListEntry>)
+         */
+        Builder customKeyStores(Consumer<CustomKeyStoresListEntry.Builder>... customKeyStores);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<CustomKeyStoresListEntry> customKeyStores = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DescribeCustomKeyStoresResponse model) {
+            super(model);
+            customKeyStores(model.customKeyStores);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final List<CustomKeyStoresListEntry.Builder> getCustomKeyStores() {
+            List<CustomKeyStoresListEntry.Builder> result = CustomKeyStoresListCopier.copyToBuilder(this.customKeyStores);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setCustomKeyStores(Collection<CustomKeyStoresListEntry.BuilderImpl> customKeyStores) {
+            this.customKeyStores = CustomKeyStoresListCopier.copyFromBuilder(customKeyStores);
+        }
+
+        @Override
+        public final Builder customKeyStores(Collection<CustomKeyStoresListEntry> customKeyStores) {
+            this.customKeyStores = CustomKeyStoresListCopier.copy(customKeyStores);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder customKeyStores(CustomKeyStoresListEntry... customKeyStores) {
+            customKeyStores(Arrays.asList(customKeyStores));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder customKeyStores(Consumer<CustomKeyStoresListEntry.Builder>... customKeyStores) {
+            customKeyStores(Stream.of(customKeyStores).map(c -> CustomKeyStoresListEntry.builder().applyMutation(c).build())
+                    .collect(Collectors.toList()));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public DescribeCustomKeyStoresResponse build() {
+            return new DescribeCustomKeyStoresResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeKeyRequest.java
new file mode 100644
index 0000000..ccef963
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeKeyRequest.java
@@ -0,0 +1,507 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DescribeKeyRequest extends KmsRequest implements
+        ToCopyableBuilder<DescribeKeyRequest.Builder, DescribeKeyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(DescribeKeyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(DescribeKeyRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            GRANT_TOKENS_FIELD));
+
+    private final String keyId;
+
+    private final List<String> grantTokens;
+
+    private DescribeKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.grantTokens = builder.grantTokens;
+    }
+
+    /**
+     * <p>
+     * Describes the specified KMS key.
+     * </p>
+     * <p>
+     * If you specify a predefined Amazon Web Services alias (an Amazon Web Services alias with no key ID), KMS
+     * associates the alias with an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html##aws-managed-cmk">Amazon Web Services
+     * managed key</a> and returns its <code>KeyId</code> and <code>Arn</code> in the response.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Describes the specified KMS key. </p>
+     *         <p>
+     *         If you specify a predefined Amazon Web Services alias (an Amazon Web Services alias with no key ID), KMS
+     *         associates the alias with an <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html##aws-managed-cmk">Amazon Web
+     *         Services managed key</a> and returns its <code>KeyId</code> and <code>Arn</code> in the response.
+     *         </p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DescribeKeyRequest)) {
+            return false;
+        }
+        DescribeKeyRequest other = (DescribeKeyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DescribeKeyRequest").add("KeyId", keyId())
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DescribeKeyRequest, T> g) {
+        return obj -> g.apply((DescribeKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DescribeKeyRequest> {
+        /**
+         * <p>
+         * Describes the specified KMS key.
+         * </p>
+         * <p>
+         * If you specify a predefined Amazon Web Services alias (an Amazon Web Services alias with no key ID), KMS
+         * associates the alias with an <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html##aws-managed-cmk">Amazon Web
+         * Services managed key</a> and returns its <code>KeyId</code> and <code>Arn</code> in the response.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Describes the specified KMS key. </p>
+         *        <p>
+         *        If you specify a predefined Amazon Web Services alias (an Amazon Web Services alias with no key ID),
+         *        KMS associates the alias with an <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html##aws-managed-cmk">Amazon Web
+         *        Services managed key</a> and returns its <code>KeyId</code> and <code>Arn</code> in the response.
+         *        </p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DescribeKeyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            grantTokens(model.grantTokens);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DescribeKeyRequest build() {
+            return new DescribeKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeKeyResponse.java
new file mode 100644
index 0000000..b06c11d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DescribeKeyResponse.java
@@ -0,0 +1,204 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DescribeKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<DescribeKeyResponse.Builder, DescribeKeyResponse> {
+    private static final SdkField<KeyMetadata> KEY_METADATA_FIELD = SdkField.<KeyMetadata> builder(MarshallingType.SDK_POJO)
+            .memberName("KeyMetadata").getter(getter(DescribeKeyResponse::keyMetadata)).setter(setter(Builder::keyMetadata))
+            .constructor(KeyMetadata::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyMetadata").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_METADATA_FIELD));
+
+    private final KeyMetadata keyMetadata;
+
+    private DescribeKeyResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyMetadata = builder.keyMetadata;
+    }
+
+    /**
+     * <p>
+     * Metadata associated with the key.
+     * </p>
+     * 
+     * @return Metadata associated with the key.
+     */
+    public final KeyMetadata keyMetadata() {
+        return keyMetadata;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyMetadata());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DescribeKeyResponse)) {
+            return false;
+        }
+        DescribeKeyResponse other = (DescribeKeyResponse) obj;
+        return Objects.equals(keyMetadata(), other.keyMetadata());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DescribeKeyResponse").add("KeyMetadata", keyMetadata()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyMetadata":
+            return Optional.ofNullable(clazz.cast(keyMetadata()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DescribeKeyResponse, T> g) {
+        return obj -> g.apply((DescribeKeyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DescribeKeyResponse> {
+        /**
+         * <p>
+         * Metadata associated with the key.
+         * </p>
+         * 
+         * @param keyMetadata
+         *        Metadata associated with the key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyMetadata(KeyMetadata keyMetadata);
+
+        /**
+         * <p>
+         * Metadata associated with the key.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link KeyMetadata.Builder} avoiding the need to
+         * create one manually via {@link KeyMetadata#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link KeyMetadata.Builder#build()} is called immediately and its result
+         * is passed to {@link #keyMetadata(KeyMetadata)}.
+         * 
+         * @param keyMetadata
+         *        a consumer that will call methods on {@link KeyMetadata.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #keyMetadata(KeyMetadata)
+         */
+        default Builder keyMetadata(Consumer<KeyMetadata.Builder> keyMetadata) {
+            return keyMetadata(KeyMetadata.builder().applyMutation(keyMetadata).build());
+        }
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private KeyMetadata keyMetadata;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DescribeKeyResponse model) {
+            super(model);
+            keyMetadata(model.keyMetadata);
+        }
+
+        public final KeyMetadata.Builder getKeyMetadata() {
+            return keyMetadata != null ? keyMetadata.toBuilder() : null;
+        }
+
+        public final void setKeyMetadata(KeyMetadata.BuilderImpl keyMetadata) {
+            this.keyMetadata = keyMetadata != null ? keyMetadata.build() : null;
+        }
+
+        @Override
+        public final Builder keyMetadata(KeyMetadata keyMetadata) {
+            this.keyMetadata = keyMetadata;
+            return this;
+        }
+
+        @Override
+        public DescribeKeyResponse build() {
+            return new DescribeKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRequest.java
new file mode 100644
index 0000000..2804bb4
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRequest.java
@@ -0,0 +1,284 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DisableKeyRequest extends KmsRequest implements
+        ToCopyableBuilder<DisableKeyRequest.Builder, DisableKeyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(DisableKeyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private DisableKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key to disable.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key to disable.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DisableKeyRequest)) {
+            return false;
+        }
+        DisableKeyRequest other = (DisableKeyRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DisableKeyRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DisableKeyRequest, T> g) {
+        return obj -> g.apply((DisableKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DisableKeyRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key to disable.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key to disable.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisableKeyRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DisableKeyRequest build() {
+            return new DisableKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyResponse.java
new file mode 100644
index 0000000..d21cc97
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class DisableKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<DisableKeyResponse.Builder, DisableKeyResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private DisableKeyResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DisableKeyResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DisableKeyResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DisableKeyResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisableKeyResponse model) {
+            super(model);
+        }
+
+        @Override
+        public DisableKeyResponse build() {
+            return new DisableKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRotationRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRotationRequest.java
new file mode 100644
index 0000000..7aac0fa
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRotationRequest.java
@@ -0,0 +1,310 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DisableKeyRotationRequest extends KmsRequest implements
+        ToCopyableBuilder<DisableKeyRotationRequest.Builder, DisableKeyRotationRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(DisableKeyRotationRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private DisableKeyRotationRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies a symmetric encryption KMS key. You cannot enable or disable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks">asymmetric
+     * KMS keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS
+     * keys with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     * material</a>, or KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies a symmetric encryption KMS key. You cannot enable or disable automatic rotation of <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks"
+     *         >asymmetric KMS keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC
+     *         KMS keys</a>, KMS keys with <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     *         material</a>, or KMS keys in a <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     *         store</a>.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DisableKeyRotationRequest)) {
+            return false;
+        }
+        DisableKeyRotationRequest other = (DisableKeyRotationRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DisableKeyRotationRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DisableKeyRotationRequest, T> g) {
+        return obj -> g.apply((DisableKeyRotationRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DisableKeyRotationRequest> {
+        /**
+         * <p>
+         * Identifies a symmetric encryption KMS key. You cannot enable or disable automatic rotation of <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks"
+         * >asymmetric KMS keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS
+         * keys</a>, KMS keys with <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>,
+         * or KMS keys in a <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         * store</a>.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies a symmetric encryption KMS key. You cannot enable or disable automatic rotation of <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks"
+         *        >asymmetric KMS keys</a>, <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys
+         *        with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+         *        material</a>, or KMS keys in a <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         *        store</a>.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisableKeyRotationRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DisableKeyRotationRequest build() {
+            return new DisableKeyRotationRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRotationResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRotationResponse.java
new file mode 100644
index 0000000..aa17a99
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisableKeyRotationResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class DisableKeyRotationResponse extends KmsResponse implements
+        ToCopyableBuilder<DisableKeyRotationResponse.Builder, DisableKeyRotationResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private DisableKeyRotationResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DisableKeyRotationResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DisableKeyRotationResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DisableKeyRotationResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisableKeyRotationResponse model) {
+            super(model);
+        }
+
+        @Override
+        public DisableKeyRotationResponse build() {
+            return new DisableKeyRotationResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisabledException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisabledException.java
new file mode 100644
index 0000000..5585463
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisabledException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified KMS key is not enabled.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DisabledException extends KmsException implements
+        ToCopyableBuilder<DisabledException.Builder, DisabledException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private DisabledException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, DisabledException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisabledException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public DisabledException build() {
+            return new DisabledException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisconnectCustomKeyStoreRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisconnectCustomKeyStoreRequest.java
new file mode 100644
index 0000000..41bcfbd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisconnectCustomKeyStoreRequest.java
@@ -0,0 +1,207 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DisconnectCustomKeyStoreRequest extends KmsRequest implements
+        ToCopyableBuilder<DisconnectCustomKeyStoreRequest.Builder, DisconnectCustomKeyStoreRequest> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(DisconnectCustomKeyStoreRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD));
+
+    private final String customKeyStoreId;
+
+    private DisconnectCustomKeyStoreRequest(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreId = builder.customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use the
+     * <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * 
+     * @return Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use
+     *         the <a>DescribeCustomKeyStores</a> operation.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DisconnectCustomKeyStoreRequest)) {
+            return false;
+        }
+        DisconnectCustomKeyStoreRequest other = (DisconnectCustomKeyStoreRequest) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DisconnectCustomKeyStoreRequest").add("CustomKeyStoreId", customKeyStoreId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<DisconnectCustomKeyStoreRequest, T> g) {
+        return obj -> g.apply((DisconnectCustomKeyStoreRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, DisconnectCustomKeyStoreRequest> {
+        /**
+         * <p>
+         * Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use the
+         * <a>DescribeCustomKeyStores</a> operation.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use
+         *        the <a>DescribeCustomKeyStores</a> operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisconnectCustomKeyStoreRequest model) {
+            super(model);
+            customKeyStoreId(model.customKeyStoreId);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public DisconnectCustomKeyStoreRequest build() {
+            return new DisconnectCustomKeyStoreRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisconnectCustomKeyStoreResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisconnectCustomKeyStoreResponse.java
new file mode 100644
index 0000000..f6b32c1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DisconnectCustomKeyStoreResponse.java
@@ -0,0 +1,116 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DisconnectCustomKeyStoreResponse extends KmsResponse implements
+        ToCopyableBuilder<DisconnectCustomKeyStoreResponse.Builder, DisconnectCustomKeyStoreResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private DisconnectCustomKeyStoreResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof DisconnectCustomKeyStoreResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("DisconnectCustomKeyStoreResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, DisconnectCustomKeyStoreResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DisconnectCustomKeyStoreResponse model) {
+            super(model);
+        }
+
+        @Override
+        public DisconnectCustomKeyStoreResponse build() {
+            return new DisconnectCustomKeyStoreResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DryRunOperationException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DryRunOperationException.java
new file mode 100644
index 0000000..c3dafb8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/DryRunOperationException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the DryRun parameter was specified.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class DryRunOperationException extends KmsException implements
+        ToCopyableBuilder<DryRunOperationException.Builder, DryRunOperationException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private DryRunOperationException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, DryRunOperationException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(DryRunOperationException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public DryRunOperationException build() {
+            return new DryRunOperationException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRequest.java
new file mode 100644
index 0000000..17156d9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRequest.java
@@ -0,0 +1,283 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class EnableKeyRequest extends KmsRequest implements ToCopyableBuilder<EnableKeyRequest.Builder, EnableKeyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(EnableKeyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private EnableKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key to enable.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key to enable.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof EnableKeyRequest)) {
+            return false;
+        }
+        EnableKeyRequest other = (EnableKeyRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("EnableKeyRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<EnableKeyRequest, T> g) {
+        return obj -> g.apply((EnableKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, EnableKeyRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key to enable.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key to enable.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(EnableKeyRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public EnableKeyRequest build() {
+            return new EnableKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyResponse.java
new file mode 100644
index 0000000..9291642
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class EnableKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<EnableKeyResponse.Builder, EnableKeyResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private EnableKeyResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof EnableKeyResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("EnableKeyResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, EnableKeyResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(EnableKeyResponse model) {
+            super(model);
+        }
+
+        @Override
+        public EnableKeyResponse build() {
+            return new EnableKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRotationRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRotationRequest.java
new file mode 100644
index 0000000..6d33f933
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRotationRequest.java
@@ -0,0 +1,318 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class EnableKeyRotationRequest extends KmsRequest implements
+        ToCopyableBuilder<EnableKeyRotationRequest.Builder, EnableKeyRotationRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(EnableKeyRotationRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private EnableKeyRotationRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>,
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS keys with <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or
+     * KMS keys in a <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>.
+     * To enable or disable automatic rotation of a set of related <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     * >multi-Region keys</a>, set the property on the primary key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+     *         keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>,
+     *         KMS keys with <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+     *         material</a>, or KMS keys in a <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     *         store</a>. To enable or disable automatic rotation of a set of related <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+     *         >multi-Region keys</a>, set the property on the primary key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof EnableKeyRotationRequest)) {
+            return false;
+        }
+        EnableKeyRotationRequest other = (EnableKeyRotationRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("EnableKeyRotationRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<EnableKeyRotationRequest, T> g) {
+        return obj -> g.apply((EnableKeyRotationRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, EnableKeyRotationRequest> {
+        /**
+         * <p>
+         * Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+         * keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, KMS
+         * keys with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+         * material</a>, or KMS keys in a <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         * store</a>. To enable or disable automatic rotation of a set of related <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+         * >multi-Region keys</a>, set the property on the primary key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS
+         *        keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>,
+         *        KMS keys with <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
+         *        material</a>, or KMS keys in a <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         *        store</a>. To enable or disable automatic rotation of a set of related <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate"
+         *        >multi-Region keys</a>, set the property on the primary key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(EnableKeyRotationRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public EnableKeyRotationRequest build() {
+            return new EnableKeyRotationRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRotationResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRotationResponse.java
new file mode 100644
index 0000000..2b180ec
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EnableKeyRotationResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class EnableKeyRotationResponse extends KmsResponse implements
+        ToCopyableBuilder<EnableKeyRotationResponse.Builder, EnableKeyRotationResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private EnableKeyRotationResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof EnableKeyRotationResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("EnableKeyRotationResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, EnableKeyRotationResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(EnableKeyRotationResponse model) {
+            super(model);
+        }
+
+        @Override
+        public EnableKeyRotationResponse build() {
+            return new EnableKeyRotationResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptRequest.java
new file mode 100644
index 0000000..62b5e2f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptRequest.java
@@ -0,0 +1,945 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class EncryptRequest extends KmsRequest implements ToCopyableBuilder<EncryptRequest.Builder, EncryptRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(EncryptRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> PLAINTEXT_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Plaintext").getter(getter(EncryptRequest::plaintext)).setter(setter(Builder::plaintext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Plaintext").build()).build();
+
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContext")
+            .getter(getter(EncryptRequest::encryptionContext))
+            .setter(setter(Builder::encryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(EncryptRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("EncryptionAlgorithm").getter(getter(EncryptRequest::encryptionAlgorithmAsString))
+            .setter(setter(Builder::encryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionAlgorithm").build())
+            .build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(EncryptRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, PLAINTEXT_FIELD,
+            ENCRYPTION_CONTEXT_FIELD, GRANT_TOKENS_FIELD, ENCRYPTION_ALGORITHM_FIELD, DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes plaintext;
+
+    private final Map<String, String> encryptionContext;
+
+    private final List<String> grantTokens;
+
+    private final String encryptionAlgorithm;
+
+    private final Boolean dryRun;
+
+    private EncryptRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.plaintext = builder.plaintext;
+        this.encryptionContext = builder.encryptionContext;
+        this.grantTokens = builder.grantTokens;
+        this.encryptionAlgorithm = builder.encryptionAlgorithm;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key to use in the encryption operation. The KMS key must have a <code>KeyUsage</code> of
+     * <code>ENCRYPT_DECRYPT</code>. To find the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key to use in the encryption operation. The KMS key must have a <code>KeyUsage</code>
+     *         of <code>ENCRYPT_DECRYPT</code>. To find the <code>KeyUsage</code> of a KMS key, use the
+     *         <a>DescribeKey</a> operation.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Data to be encrypted.
+     * </p>
+     * 
+     * @return Data to be encrypted.
+     */
+    public final SdkBytes plaintext() {
+        return plaintext;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContext property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionContext() {
+        return encryptionContext != null && !(encryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context that will be used to encrypt the data. An encryption context is valid only for
+     * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+     * cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption algorithms
+     * and HMAC algorithms that KMS uses do not support an encryption context.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context that will be used to encrypt the data. An encryption context is valid
+     *         only for <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption
+     *         algorithms and HMAC algorithms that KMS uses do not support an encryption context. </p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> encryptionContext() {
+        return encryptionContext;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must be
+     * compatible with the KMS key that you specify.
+     * </p>
+     * <p>
+     * This parameter is required only for asymmetric KMS keys. The default value, <code>SYMMETRIC_DEFAULT</code>, is
+     * the algorithm used for symmetric encryption KMS keys. If you are using an asymmetric KMS key, we recommend
+     * RSAES_OAEP_SHA_256.
+     * </p>
+     * <p>
+     * The SM2PKE algorithm is only available in China Regions.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must
+     *         be compatible with the KMS key that you specify.</p>
+     *         <p>
+     *         This parameter is required only for asymmetric KMS keys. The default value,
+     *         <code>SYMMETRIC_DEFAULT</code>, is the algorithm used for symmetric encryption KMS keys. If you are using
+     *         an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256.
+     *         </p>
+     *         <p>
+     *         The SM2PKE algorithm is only available in China Regions.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec encryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(encryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must be
+     * compatible with the KMS key that you specify.
+     * </p>
+     * <p>
+     * This parameter is required only for asymmetric KMS keys. The default value, <code>SYMMETRIC_DEFAULT</code>, is
+     * the algorithm used for symmetric encryption KMS keys. If you are using an asymmetric KMS key, we recommend
+     * RSAES_OAEP_SHA_256.
+     * </p>
+     * <p>
+     * The SM2PKE algorithm is only available in China Regions.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must
+     *         be compatible with the KMS key that you specify.</p>
+     *         <p>
+     *         This parameter is required only for asymmetric KMS keys. The default value,
+     *         <code>SYMMETRIC_DEFAULT</code>, is the algorithm used for symmetric encryption KMS keys. If you are using
+     *         an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256.
+     *         </p>
+     *         <p>
+     *         The SM2PKE algorithm is only available in China Regions.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String encryptionAlgorithmAsString() {
+        return encryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(plaintext());
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContext() ? encryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(encryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof EncryptRequest)) {
+            return false;
+        }
+        EncryptRequest other = (EncryptRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(plaintext(), other.plaintext())
+                && hasEncryptionContext() == other.hasEncryptionContext()
+                && Objects.equals(encryptionContext(), other.encryptionContext()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(encryptionAlgorithmAsString(), other.encryptionAlgorithmAsString())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("EncryptRequest").add("KeyId", keyId())
+                .add("Plaintext", plaintext() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("EncryptionContext", hasEncryptionContext() ? encryptionContext() : null)
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("EncryptionAlgorithm", encryptionAlgorithmAsString()).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Plaintext":
+            return Optional.ofNullable(clazz.cast(plaintext()));
+        case "EncryptionContext":
+            return Optional.ofNullable(clazz.cast(encryptionContext()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "EncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(encryptionAlgorithmAsString()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<EncryptRequest, T> g) {
+        return obj -> g.apply((EncryptRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, EncryptRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key to use in the encryption operation. The KMS key must have a <code>KeyUsage</code> of
+         * <code>ENCRYPT_DECRYPT</code>. To find the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a>
+         * operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key to use in the encryption operation. The KMS key must have a
+         *        <code>KeyUsage</code> of <code>ENCRYPT_DECRYPT</code>. To find the <code>KeyUsage</code> of a KMS key,
+         *        use the <a>DescribeKey</a> operation.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Data to be encrypted.
+         * </p>
+         * 
+         * @param plaintext
+         *        Data to be encrypted.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder plaintext(SdkBytes plaintext);
+
+        /**
+         * <p>
+         * Specifies the encryption context that will be used to encrypt the data. An encryption context is valid only
+         * for <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+         * cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption
+         * algorithms and HMAC algorithms that KMS uses do not support an encryption context.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param encryptionContext
+         *        Specifies the encryption context that will be used to encrypt the data. An encryption context is valid
+         *        only for <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operations</a> with a symmetric encryption KMS key. The standard asymmetric encryption
+         *        algorithms and HMAC algorithms that KMS uses do not support an encryption context. </p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContext(Map<String, String> encryptionContext);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must be
+         * compatible with the KMS key that you specify.
+         * </p>
+         * <p>
+         * This parameter is required only for asymmetric KMS keys. The default value, <code>SYMMETRIC_DEFAULT</code>,
+         * is the algorithm used for symmetric encryption KMS keys. If you are using an asymmetric KMS key, we recommend
+         * RSAES_OAEP_SHA_256.
+         * </p>
+         * <p>
+         * The SM2PKE algorithm is only available in China Regions.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm
+         *        must be compatible with the KMS key that you specify.</p>
+         *        <p>
+         *        This parameter is required only for asymmetric KMS keys. The default value,
+         *        <code>SYMMETRIC_DEFAULT</code>, is the algorithm used for symmetric encryption KMS keys. If you are
+         *        using an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256.
+         *        </p>
+         *        <p>
+         *        The SM2PKE algorithm is only available in China Regions.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(String encryptionAlgorithm);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must be
+         * compatible with the KMS key that you specify.
+         * </p>
+         * <p>
+         * This parameter is required only for asymmetric KMS keys. The default value, <code>SYMMETRIC_DEFAULT</code>,
+         * is the algorithm used for symmetric encryption KMS keys. If you are using an asymmetric KMS key, we recommend
+         * RSAES_OAEP_SHA_256.
+         * </p>
+         * <p>
+         * The SM2PKE algorithm is only available in China Regions.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm
+         *        must be compatible with the KMS key that you specify.</p>
+         *        <p>
+         *        This parameter is required only for asymmetric KMS keys. The default value,
+         *        <code>SYMMETRIC_DEFAULT</code>, is the algorithm used for symmetric encryption KMS keys. If you are
+         *        using an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256.
+         *        </p>
+         *        <p>
+         *        The SM2PKE algorithm is only available in China Regions.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes plaintext;
+
+        private Map<String, String> encryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private String encryptionAlgorithm;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(EncryptRequest model) {
+            super(model);
+            keyId(model.keyId);
+            plaintext(model.plaintext);
+            encryptionContext(model.encryptionContext);
+            grantTokens(model.grantTokens);
+            encryptionAlgorithm(model.encryptionAlgorithm);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getPlaintext() {
+            return plaintext == null ? null : plaintext.asByteBuffer();
+        }
+
+        public final void setPlaintext(ByteBuffer plaintext) {
+            plaintext(plaintext == null ? null : SdkBytes.fromByteBuffer(plaintext));
+        }
+
+        @Override
+        public final Builder plaintext(SdkBytes plaintext) {
+            this.plaintext = plaintext;
+            return this;
+        }
+
+        public final Map<String, String> getEncryptionContext() {
+            if (encryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContext;
+        }
+
+        public final void setEncryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+        }
+
+        @Override
+        public final Builder encryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final String getEncryptionAlgorithm() {
+            return encryptionAlgorithm;
+        }
+
+        public final void setEncryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm) {
+            this.encryptionAlgorithm(encryptionAlgorithm == null ? null : encryptionAlgorithm.toString());
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public EncryptRequest build() {
+            return new EncryptRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptResponse.java
new file mode 100644
index 0000000..a4fc4ce
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptResponse.java
@@ -0,0 +1,342 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class EncryptResponse extends KmsResponse implements ToCopyableBuilder<EncryptResponse.Builder, EncryptResponse> {
+    private static final SdkField<SdkBytes> CIPHERTEXT_BLOB_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("CiphertextBlob").getter(getter(EncryptResponse::ciphertextBlob)).setter(setter(Builder::ciphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextBlob").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(EncryptResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("EncryptionAlgorithm").getter(getter(EncryptResponse::encryptionAlgorithmAsString))
+            .setter(setter(Builder::encryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionAlgorithm").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CIPHERTEXT_BLOB_FIELD,
+            KEY_ID_FIELD, ENCRYPTION_ALGORITHM_FIELD));
+
+    private final SdkBytes ciphertextBlob;
+
+    private final String keyId;
+
+    private final String encryptionAlgorithm;
+
+    private EncryptResponse(BuilderImpl builder) {
+        super(builder);
+        this.ciphertextBlob = builder.ciphertextBlob;
+        this.keyId = builder.keyId;
+        this.encryptionAlgorithm = builder.encryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The encrypted plaintext. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+     * Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The encrypted plaintext. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes ciphertextBlob() {
+        return ciphertextBlob;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that was used to encrypt the plaintext.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that was used to encrypt the plaintext.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to encrypt the plaintext.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to encrypt the plaintext.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec encryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(encryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to encrypt the plaintext.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #encryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #encryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to encrypt the plaintext.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String encryptionAlgorithmAsString() {
+        return encryptionAlgorithm;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(encryptionAlgorithmAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof EncryptResponse)) {
+            return false;
+        }
+        EncryptResponse other = (EncryptResponse) obj;
+        return Objects.equals(ciphertextBlob(), other.ciphertextBlob()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(encryptionAlgorithmAsString(), other.encryptionAlgorithmAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("EncryptResponse").add("CiphertextBlob", ciphertextBlob()).add("KeyId", keyId())
+                .add("EncryptionAlgorithm", encryptionAlgorithmAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CiphertextBlob":
+            return Optional.ofNullable(clazz.cast(ciphertextBlob()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "EncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(encryptionAlgorithmAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<EncryptResponse, T> g) {
+        return obj -> g.apply((EncryptResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, EncryptResponse> {
+        /**
+         * <p>
+         * The encrypted plaintext. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param ciphertextBlob
+         *        The encrypted plaintext. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextBlob(SdkBytes ciphertextBlob);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that was used to encrypt the plaintext.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that was used to encrypt the plaintext.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to encrypt the plaintext.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        The encryption algorithm that was used to encrypt the plaintext.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(String encryptionAlgorithm);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to encrypt the plaintext.
+         * </p>
+         * 
+         * @param encryptionAlgorithm
+         *        The encryption algorithm that was used to encrypt the plaintext.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes ciphertextBlob;
+
+        private String keyId;
+
+        private String encryptionAlgorithm;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(EncryptResponse model) {
+            super(model);
+            ciphertextBlob(model.ciphertextBlob);
+            keyId(model.keyId);
+            encryptionAlgorithm(model.encryptionAlgorithm);
+        }
+
+        public final ByteBuffer getCiphertextBlob() {
+            return ciphertextBlob == null ? null : ciphertextBlob.asByteBuffer();
+        }
+
+        public final void setCiphertextBlob(ByteBuffer ciphertextBlob) {
+            ciphertextBlob(ciphertextBlob == null ? null : SdkBytes.fromByteBuffer(ciphertextBlob));
+        }
+
+        @Override
+        public final Builder ciphertextBlob(SdkBytes ciphertextBlob) {
+            this.ciphertextBlob = ciphertextBlob;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getEncryptionAlgorithm() {
+            return encryptionAlgorithm;
+        }
+
+        public final void setEncryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(String encryptionAlgorithm) {
+            this.encryptionAlgorithm = encryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithm(EncryptionAlgorithmSpec encryptionAlgorithm) {
+            this.encryptionAlgorithm(encryptionAlgorithm == null ? null : encryptionAlgorithm.toString());
+            return this;
+        }
+
+        @Override
+        public EncryptResponse build() {
+            return new EncryptResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionAlgorithmSpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionAlgorithmSpec.java
new file mode 100644
index 0000000..3f40546
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionAlgorithmSpec.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum EncryptionAlgorithmSpec {
+    SYMMETRIC_DEFAULT("SYMMETRIC_DEFAULT"),
+
+    RSAES_OAEP_SHA_1("RSAES_OAEP_SHA_1"),
+
+    RSAES_OAEP_SHA_256("RSAES_OAEP_SHA_256"),
+
+    SM2_PKE("SM2PKE"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, EncryptionAlgorithmSpec> VALUE_MAP = EnumUtils.uniqueIndex(EncryptionAlgorithmSpec.class,
+            EncryptionAlgorithmSpec::toString);
+
+    private final String value;
+
+    private EncryptionAlgorithmSpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return EncryptionAlgorithmSpec corresponding to the value
+     */
+    public static EncryptionAlgorithmSpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link EncryptionAlgorithmSpec}s
+     */
+    public static Set<EncryptionAlgorithmSpec> knownValues() {
+        Set<EncryptionAlgorithmSpec> knownValues = EnumSet.allOf(EncryptionAlgorithmSpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionAlgorithmSpecListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionAlgorithmSpecListCopier.java
new file mode 100644
index 0000000..0c82acf
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionAlgorithmSpecListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class EncryptionAlgorithmSpecListCopier {
+    static List<String> copy(Collection<String> encryptionAlgorithmSpecListParam) {
+        List<String> list;
+        if (encryptionAlgorithmSpecListParam == null || encryptionAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            encryptionAlgorithmSpecListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<String> copyEnumToString(Collection<EncryptionAlgorithmSpec> encryptionAlgorithmSpecListParam) {
+        List<String> list;
+        if (encryptionAlgorithmSpecListParam == null || encryptionAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            encryptionAlgorithmSpecListParam.forEach(entry -> {
+                String result = entry.toString();
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<EncryptionAlgorithmSpec> copyStringToEnum(Collection<String> encryptionAlgorithmSpecListParam) {
+        List<EncryptionAlgorithmSpec> list;
+        if (encryptionAlgorithmSpecListParam == null || encryptionAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<EncryptionAlgorithmSpec> modifiableList = new ArrayList<>();
+            encryptionAlgorithmSpecListParam.forEach(entry -> {
+                EncryptionAlgorithmSpec result = EncryptionAlgorithmSpec.fromValue(entry);
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionContextTypeCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionContextTypeCopier.java
new file mode 100644
index 0000000..fc6b350
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/EncryptionContextTypeCopier.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+
+@Generated("software.amazon.awssdk:codegen")
+final class EncryptionContextTypeCopier {
+    static Map<String, String> copy(Map<String, String> encryptionContextTypeParam) {
+        Map<String, String> map;
+        if (encryptionContextTypeParam == null || encryptionContextTypeParam instanceof SdkAutoConstructMap) {
+            map = DefaultSdkAutoConstructMap.getInstance();
+        } else {
+            Map<String, String> modifiableMap = new LinkedHashMap<>();
+            encryptionContextTypeParam.forEach((key, value) -> {
+                modifiableMap.put(key, value);
+            });
+            map = Collections.unmodifiableMap(modifiableMap);
+        }
+        return map;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ExpirationModelType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ExpirationModelType.java
new file mode 100644
index 0000000..2ecc463
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ExpirationModelType.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum ExpirationModelType {
+    KEY_MATERIAL_EXPIRES("KEY_MATERIAL_EXPIRES"),
+
+    KEY_MATERIAL_DOES_NOT_EXPIRE("KEY_MATERIAL_DOES_NOT_EXPIRE"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, ExpirationModelType> VALUE_MAP = EnumUtils.uniqueIndex(ExpirationModelType.class,
+            ExpirationModelType::toString);
+
+    private final String value;
+
+    private ExpirationModelType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return ExpirationModelType corresponding to the value
+     */
+    public static ExpirationModelType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link ExpirationModelType}s
+     */
+    public static Set<ExpirationModelType> knownValues() {
+        Set<ExpirationModelType> knownValues = EnumSet.allOf(ExpirationModelType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ExpiredImportTokenException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ExpiredImportTokenException.java
new file mode 100644
index 0000000..2b0d8d1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ExpiredImportTokenException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified import token is expired. Use <a>GetParametersForImport</a> to get a
+ * new import token and public key, use the new public key to encrypt the key material, and then try the request again.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ExpiredImportTokenException extends KmsException implements
+        ToCopyableBuilder<ExpiredImportTokenException.Builder, ExpiredImportTokenException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private ExpiredImportTokenException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, ExpiredImportTokenException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ExpiredImportTokenException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public ExpiredImportTokenException build() {
+            return new ExpiredImportTokenException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairRequest.java
new file mode 100644
index 0000000..004fe98
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairRequest.java
@@ -0,0 +1,1034 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyPairRequest extends KmsRequest implements
+        ToCopyableBuilder<GenerateDataKeyPairRequest.Builder, GenerateDataKeyPairRequest> {
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContext")
+            .getter(getter(GenerateDataKeyPairRequest::encryptionContext))
+            .setter(setter(Builder::encryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyPairRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> KEY_PAIR_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyPairSpec").getter(getter(GenerateDataKeyPairRequest::keyPairSpecAsString))
+            .setter(setter(Builder::keyPairSpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyPairSpec").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(GenerateDataKeyPairRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<RecipientInfo> RECIPIENT_FIELD = SdkField.<RecipientInfo> builder(MarshallingType.SDK_POJO)
+            .memberName("Recipient").getter(getter(GenerateDataKeyPairRequest::recipient)).setter(setter(Builder::recipient))
+            .constructor(RecipientInfo::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Recipient").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(GenerateDataKeyPairRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENCRYPTION_CONTEXT_FIELD,
+            KEY_ID_FIELD, KEY_PAIR_SPEC_FIELD, GRANT_TOKENS_FIELD, RECIPIENT_FIELD, DRY_RUN_FIELD));
+
+    private final Map<String, String> encryptionContext;
+
+    private final String keyId;
+
+    private final String keyPairSpec;
+
+    private final List<String> grantTokens;
+
+    private final RecipientInfo recipient;
+
+    private final Boolean dryRun;
+
+    private GenerateDataKeyPairRequest(BuilderImpl builder) {
+        super(builder);
+        this.encryptionContext = builder.encryptionContext;
+        this.keyId = builder.keyId;
+        this.keyPairSpec = builder.keyPairSpec;
+        this.grantTokens = builder.grantTokens;
+        this.recipient = builder.recipient;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContext property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionContext() {
+        return encryptionContext != null && !(encryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context that will be used when encrypting the private key in the data key pair.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context that will be used when encrypting the private key in the data key
+     *         pair.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> encryptionContext() {
+        return encryptionContext;
+    }
+
+    /**
+     * <p>
+     * Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot specify
+     * an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot
+     *         specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS
+     *         key, use the <a>DescribeKey</a> operation.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Determines the type of data key pair that is generated.
+     * </p>
+     * <p>
+     * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+     * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+     * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return Determines the type of data key pair that is generated. </p>
+     *         <p>
+     *         The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign
+     *         and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are
+     *         not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in
+     *         China Regions.
+     * @see DataKeyPairSpec
+     */
+    public final DataKeyPairSpec keyPairSpec() {
+        return DataKeyPairSpec.fromValue(keyPairSpec);
+    }
+
+    /**
+     * <p>
+     * Determines the type of data key pair that is generated.
+     * </p>
+     * <p>
+     * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+     * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+     * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return Determines the type of data key pair that is generated. </p>
+     *         <p>
+     *         The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign
+     *         and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are
+     *         not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in
+     *         China Regions.
+     * @see DataKeyPairSpec
+     */
+    public final String keyPairSpecAsString() {
+        return keyPairSpec;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * A signed <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">attestation
+     * document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
+     * public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     * </p>
+     * <p>
+     * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+     * parameter, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     * </p>
+     * <p>
+     * When you use this parameter, instead of returning a plaintext copy of the private data key, KMS encrypts the
+     * plaintext private data key under the public key in the attestation document, and returns the resulting ciphertext
+     * in the <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+     * private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a copy of the private
+     * data key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The
+     * <code>PrivateKeyPlaintext</code> field in the response is null or empty.
+     * </p>
+     * <p>
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return A signed <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc"
+     *         >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use
+     *         with the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     *         </p>
+     *         <p>
+     *         This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+     *         this parameter, use the <a
+     *         href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+     *         Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     *         </p>
+     *         <p>
+     *         When you use this parameter, instead of returning a plaintext copy of the private data key, KMS encrypts
+     *         the plaintext private data key under the public key in the attestation document, and returns the
+     *         resulting ciphertext in the <code>CiphertextForRecipient</code> field in the response. This ciphertext
+     *         can be decrypted only with the private key in the enclave. The <code>CiphertextBlob</code> field in the
+     *         response contains a copy of the private data key encrypted under the KMS key specified by the
+     *         <code>KeyId</code> parameter. The <code>PrivateKeyPlaintext</code> field in the response is null or
+     *         empty.
+     *         </p>
+     *         <p>
+     *         For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final RecipientInfo recipient() {
+        return recipient;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContext() ? encryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyPairSpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(recipient());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyPairRequest)) {
+            return false;
+        }
+        GenerateDataKeyPairRequest other = (GenerateDataKeyPairRequest) obj;
+        return hasEncryptionContext() == other.hasEncryptionContext()
+                && Objects.equals(encryptionContext(), other.encryptionContext()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(keyPairSpecAsString(), other.keyPairSpecAsString())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(recipient(), other.recipient()) && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyPairRequest")
+                .add("EncryptionContext", hasEncryptionContext() ? encryptionContext() : null).add("KeyId", keyId())
+                .add("KeyPairSpec", keyPairSpecAsString()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("Recipient", recipient()).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "EncryptionContext":
+            return Optional.ofNullable(clazz.cast(encryptionContext()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "KeyPairSpec":
+            return Optional.ofNullable(clazz.cast(keyPairSpecAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "Recipient":
+            return Optional.ofNullable(clazz.cast(recipient()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyPairRequest, T> g) {
+        return obj -> g.apply((GenerateDataKeyPairRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GenerateDataKeyPairRequest> {
+        /**
+         * <p>
+         * Specifies the encryption context that will be used when encrypting the private key in the data key pair.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param encryptionContext
+         *        Specifies the encryption context that will be used when encrypting the private key in the data key
+         *        pair.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContext(Map<String, String> encryptionContext);
+
+        /**
+         * <p>
+         * Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot
+         * specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key,
+         * use the <a>DescribeKey</a> operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You
+         *        cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+         *        your KMS key, use the <a>DescribeKey</a> operation.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Determines the type of data key pair that is generated.
+         * </p>
+         * <p>
+         * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+         * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+         * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China
+         * Regions.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        Determines the type of data key pair that is generated. </p>
+         *        <p>
+         *        The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to
+         *        sign and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and
+         *        verify, are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only
+         *        available in China Regions.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(String keyPairSpec);
+
+        /**
+         * <p>
+         * Determines the type of data key pair that is generated.
+         * </p>
+         * <p>
+         * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+         * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+         * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China
+         * Regions.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        Determines the type of data key pair that is generated. </p>
+         *        <p>
+         *        The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to
+         *        sign and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and
+         *        verify, are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only
+         *        available in China Regions.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(DataKeyPairSpec keyPairSpec);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * A signed <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">
+         * attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning a plaintext copy of the private data key, KMS encrypts the
+         * plaintext private data key under the public key in the attestation document, and returns the resulting
+         * ciphertext in the <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted
+         * only with the private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a
+         * copy of the private data key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The
+         * <code>PrivateKeyPlaintext</code> field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param recipient
+         *        A signed <a
+         *        href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc"
+         *        >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to
+         *        use with the enclave's public key. The only valid encryption algorithm is
+         *        <code>RSAES_OAEP_SHA_256</code>. </p>
+         *        <p>
+         *        This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+         *        this parameter, use the <a
+         *        href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+         *        Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         *        </p>
+         *        <p>
+         *        When you use this parameter, instead of returning a plaintext copy of the private data key, KMS
+         *        encrypts the plaintext private data key under the public key in the attestation document, and returns
+         *        the resulting ciphertext in the <code>CiphertextForRecipient</code> field in the response. This
+         *        ciphertext can be decrypted only with the private key in the enclave. The <code>CiphertextBlob</code>
+         *        field in the response contains a copy of the private data key encrypted under the KMS key specified by
+         *        the <code>KeyId</code> parameter. The <code>PrivateKeyPlaintext</code> field in the response is null
+         *        or empty.
+         *        </p>
+         *        <p>
+         *        For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder recipient(RecipientInfo recipient);
+
+        /**
+         * <p>
+         * A signed <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">
+         * attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning a plaintext copy of the private data key, KMS encrypts the
+         * plaintext private data key under the public key in the attestation document, and returns the resulting
+         * ciphertext in the <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted
+         * only with the private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a
+         * copy of the private data key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The
+         * <code>PrivateKeyPlaintext</code> field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link RecipientInfo.Builder} avoiding the need
+         * to create one manually via {@link RecipientInfo#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link RecipientInfo.Builder#build()} is called immediately and its
+         * result is passed to {@link #recipient(RecipientInfo)}.
+         * 
+         * @param recipient
+         *        a consumer that will call methods on {@link RecipientInfo.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #recipient(RecipientInfo)
+         */
+        default Builder recipient(Consumer<RecipientInfo.Builder> recipient) {
+            return recipient(RecipientInfo.builder().applyMutation(recipient).build());
+        }
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private Map<String, String> encryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private String keyId;
+
+        private String keyPairSpec;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private RecipientInfo recipient;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyPairRequest model) {
+            super(model);
+            encryptionContext(model.encryptionContext);
+            keyId(model.keyId);
+            keyPairSpec(model.keyPairSpec);
+            grantTokens(model.grantTokens);
+            recipient(model.recipient);
+            dryRun(model.dryRun);
+        }
+
+        public final Map<String, String> getEncryptionContext() {
+            if (encryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContext;
+        }
+
+        public final void setEncryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+        }
+
+        @Override
+        public final Builder encryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getKeyPairSpec() {
+            return keyPairSpec;
+        }
+
+        public final void setKeyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+        }
+
+        @Override
+        public final Builder keyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keyPairSpec(DataKeyPairSpec keyPairSpec) {
+            this.keyPairSpec(keyPairSpec == null ? null : keyPairSpec.toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final RecipientInfo.Builder getRecipient() {
+            return recipient != null ? recipient.toBuilder() : null;
+        }
+
+        public final void setRecipient(RecipientInfo.BuilderImpl recipient) {
+            this.recipient = recipient != null ? recipient.build() : null;
+        }
+
+        @Override
+        public final Builder recipient(RecipientInfo recipient) {
+            this.recipient = recipient;
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyPairRequest build() {
+            return new GenerateDataKeyPairRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairResponse.java
new file mode 100644
index 0000000..727e7b1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairResponse.java
@@ -0,0 +1,554 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyPairResponse extends KmsResponse implements
+        ToCopyableBuilder<GenerateDataKeyPairResponse.Builder, GenerateDataKeyPairResponse> {
+    private static final SdkField<SdkBytes> PRIVATE_KEY_CIPHERTEXT_BLOB_FIELD = SdkField
+            .<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("PrivateKeyCiphertextBlob")
+            .getter(getter(GenerateDataKeyPairResponse::privateKeyCiphertextBlob))
+            .setter(setter(Builder::privateKeyCiphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PrivateKeyCiphertextBlob").build())
+            .build();
+
+    private static final SdkField<SdkBytes> PRIVATE_KEY_PLAINTEXT_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("PrivateKeyPlaintext").getter(getter(GenerateDataKeyPairResponse::privateKeyPlaintext))
+            .setter(setter(Builder::privateKeyPlaintext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PrivateKeyPlaintext").build())
+            .build();
+
+    private static final SdkField<SdkBytes> PUBLIC_KEY_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("PublicKey").getter(getter(GenerateDataKeyPairResponse::publicKey)).setter(setter(Builder::publicKey))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PublicKey").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyPairResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> KEY_PAIR_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyPairSpec").getter(getter(GenerateDataKeyPairResponse::keyPairSpecAsString))
+            .setter(setter(Builder::keyPairSpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyPairSpec").build()).build();
+
+    private static final SdkField<SdkBytes> CIPHERTEXT_FOR_RECIPIENT_FIELD = SdkField
+            .<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("CiphertextForRecipient")
+            .getter(getter(GenerateDataKeyPairResponse::ciphertextForRecipient)).setter(setter(Builder::ciphertextForRecipient))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextForRecipient").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(
+            PRIVATE_KEY_CIPHERTEXT_BLOB_FIELD, PRIVATE_KEY_PLAINTEXT_FIELD, PUBLIC_KEY_FIELD, KEY_ID_FIELD, KEY_PAIR_SPEC_FIELD,
+            CIPHERTEXT_FOR_RECIPIENT_FIELD));
+
+    private final SdkBytes privateKeyCiphertextBlob;
+
+    private final SdkBytes privateKeyPlaintext;
+
+    private final SdkBytes publicKey;
+
+    private final String keyId;
+
+    private final String keyPairSpec;
+
+    private final SdkBytes ciphertextForRecipient;
+
+    private GenerateDataKeyPairResponse(BuilderImpl builder) {
+        super(builder);
+        this.privateKeyCiphertextBlob = builder.privateKeyCiphertextBlob;
+        this.privateKeyPlaintext = builder.privateKeyPlaintext;
+        this.publicKey = builder.publicKey;
+        this.keyId = builder.keyId;
+        this.keyPairSpec = builder.keyPairSpec;
+        this.ciphertextForRecipient = builder.ciphertextForRecipient;
+    }
+
+    /**
+     * <p>
+     * The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     * Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the
+     *         value is Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes privateKeyCiphertextBlob() {
+        return privateKeyCiphertextBlob;
+    }
+
+    /**
+     * <p>
+     * The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     * Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * <p>
+     * If the response includes the <code>CiphertextForRecipient</code> field, the <code>PrivateKeyPlaintext</code>
+     * field is null or empty.
+     * </p>
+     * 
+     * @return The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the
+     *         value is Base64-encoded. Otherwise, it is not Base64-encoded.</p>
+     *         <p>
+     *         If the response includes the <code>CiphertextForRecipient</code> field, the
+     *         <code>PrivateKeyPlaintext</code> field is null or empty.
+     */
+    public final SdkBytes privateKeyPlaintext() {
+        return privateKeyPlaintext;
+    }
+
+    /**
+     * <p>
+     * The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+     * Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes publicKey() {
+        return publicKey;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that encrypted the private key.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that encrypted the private key.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The type of data key pair that was generated.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return The type of data key pair that was generated.
+     * @see DataKeyPairSpec
+     */
+    public final DataKeyPairSpec keyPairSpec() {
+        return DataKeyPairSpec.fromValue(keyPairSpec);
+    }
+
+    /**
+     * <p>
+     * The type of data key pair that was generated.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return The type of data key pair that was generated.
+     * @see DataKeyPairSpec
+     */
+    public final String keyPairSpecAsString() {
+        return keyPairSpec;
+    }
+
+    /**
+     * <p>
+     * The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext can be
+     * decrypted only by using a private key in the Nitro enclave.
+     * </p>
+     * <p>
+     * This field is included in the response only when the <code>Recipient</code> parameter in the request includes a
+     * valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+     * between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext can
+     *         be decrypted only by using a private key in the Nitro enclave. </p>
+     *         <p>
+     *         This field is included in the response only when the <code>Recipient</code> parameter in the request
+     *         includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+     *         the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final SdkBytes ciphertextForRecipient() {
+        return ciphertextForRecipient;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(privateKeyCiphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(privateKeyPlaintext());
+        hashCode = 31 * hashCode + Objects.hashCode(publicKey());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyPairSpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextForRecipient());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyPairResponse)) {
+            return false;
+        }
+        GenerateDataKeyPairResponse other = (GenerateDataKeyPairResponse) obj;
+        return Objects.equals(privateKeyCiphertextBlob(), other.privateKeyCiphertextBlob())
+                && Objects.equals(privateKeyPlaintext(), other.privateKeyPlaintext())
+                && Objects.equals(publicKey(), other.publicKey()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(keyPairSpecAsString(), other.keyPairSpecAsString())
+                && Objects.equals(ciphertextForRecipient(), other.ciphertextForRecipient());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyPairResponse").add("PrivateKeyCiphertextBlob", privateKeyCiphertextBlob())
+                .add("PrivateKeyPlaintext", privateKeyPlaintext() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("PublicKey", publicKey()).add("KeyId", keyId()).add("KeyPairSpec", keyPairSpecAsString())
+                .add("CiphertextForRecipient", ciphertextForRecipient()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "PrivateKeyCiphertextBlob":
+            return Optional.ofNullable(clazz.cast(privateKeyCiphertextBlob()));
+        case "PrivateKeyPlaintext":
+            return Optional.ofNullable(clazz.cast(privateKeyPlaintext()));
+        case "PublicKey":
+            return Optional.ofNullable(clazz.cast(publicKey()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "KeyPairSpec":
+            return Optional.ofNullable(clazz.cast(keyPairSpecAsString()));
+        case "CiphertextForRecipient":
+            return Optional.ofNullable(clazz.cast(ciphertextForRecipient()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyPairResponse, T> g) {
+        return obj -> g.apply((GenerateDataKeyPairResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GenerateDataKeyPairResponse> {
+        /**
+         * <p>
+         * The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param privateKeyCiphertextBlob
+         *        The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the
+         *        value is Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder privateKeyCiphertextBlob(SdkBytes privateKeyCiphertextBlob);
+
+        /**
+         * <p>
+         * The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * <p>
+         * If the response includes the <code>CiphertextForRecipient</code> field, the <code>PrivateKeyPlaintext</code>
+         * field is null or empty.
+         * </p>
+         * 
+         * @param privateKeyPlaintext
+         *        The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the
+         *        value is Base64-encoded. Otherwise, it is not Base64-encoded.</p>
+         *        <p>
+         *        If the response includes the <code>CiphertextForRecipient</code> field, the
+         *        <code>PrivateKeyPlaintext</code> field is null or empty.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder privateKeyPlaintext(SdkBytes privateKeyPlaintext);
+
+        /**
+         * <p>
+         * The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param publicKey
+         *        The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder publicKey(SdkBytes publicKey);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that encrypted the private key.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that encrypted the private key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The type of data key pair that was generated.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        The type of data key pair that was generated.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(String keyPairSpec);
+
+        /**
+         * <p>
+         * The type of data key pair that was generated.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        The type of data key pair that was generated.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(DataKeyPairSpec keyPairSpec);
+
+        /**
+         * <p>
+         * The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext can be
+         * decrypted only by using a private key in the Nitro enclave.
+         * </p>
+         * <p>
+         * This field is included in the response only when the <code>Recipient</code> parameter in the request includes
+         * a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+         * between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param ciphertextForRecipient
+         *        The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext
+         *        can be decrypted only by using a private key in the Nitro enclave. </p>
+         *        <p>
+         *        This field is included in the response only when the <code>Recipient</code> parameter in the request
+         *        includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+         *        the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes privateKeyCiphertextBlob;
+
+        private SdkBytes privateKeyPlaintext;
+
+        private SdkBytes publicKey;
+
+        private String keyId;
+
+        private String keyPairSpec;
+
+        private SdkBytes ciphertextForRecipient;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyPairResponse model) {
+            super(model);
+            privateKeyCiphertextBlob(model.privateKeyCiphertextBlob);
+            privateKeyPlaintext(model.privateKeyPlaintext);
+            publicKey(model.publicKey);
+            keyId(model.keyId);
+            keyPairSpec(model.keyPairSpec);
+            ciphertextForRecipient(model.ciphertextForRecipient);
+        }
+
+        public final ByteBuffer getPrivateKeyCiphertextBlob() {
+            return privateKeyCiphertextBlob == null ? null : privateKeyCiphertextBlob.asByteBuffer();
+        }
+
+        public final void setPrivateKeyCiphertextBlob(ByteBuffer privateKeyCiphertextBlob) {
+            privateKeyCiphertextBlob(privateKeyCiphertextBlob == null ? null : SdkBytes.fromByteBuffer(privateKeyCiphertextBlob));
+        }
+
+        @Override
+        public final Builder privateKeyCiphertextBlob(SdkBytes privateKeyCiphertextBlob) {
+            this.privateKeyCiphertextBlob = privateKeyCiphertextBlob;
+            return this;
+        }
+
+        public final ByteBuffer getPrivateKeyPlaintext() {
+            return privateKeyPlaintext == null ? null : privateKeyPlaintext.asByteBuffer();
+        }
+
+        public final void setPrivateKeyPlaintext(ByteBuffer privateKeyPlaintext) {
+            privateKeyPlaintext(privateKeyPlaintext == null ? null : SdkBytes.fromByteBuffer(privateKeyPlaintext));
+        }
+
+        @Override
+        public final Builder privateKeyPlaintext(SdkBytes privateKeyPlaintext) {
+            this.privateKeyPlaintext = privateKeyPlaintext;
+            return this;
+        }
+
+        public final ByteBuffer getPublicKey() {
+            return publicKey == null ? null : publicKey.asByteBuffer();
+        }
+
+        public final void setPublicKey(ByteBuffer publicKey) {
+            publicKey(publicKey == null ? null : SdkBytes.fromByteBuffer(publicKey));
+        }
+
+        @Override
+        public final Builder publicKey(SdkBytes publicKey) {
+            this.publicKey = publicKey;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getKeyPairSpec() {
+            return keyPairSpec;
+        }
+
+        public final void setKeyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+        }
+
+        @Override
+        public final Builder keyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keyPairSpec(DataKeyPairSpec keyPairSpec) {
+            this.keyPairSpec(keyPairSpec == null ? null : keyPairSpec.toString());
+            return this;
+        }
+
+        public final ByteBuffer getCiphertextForRecipient() {
+            return ciphertextForRecipient == null ? null : ciphertextForRecipient.asByteBuffer();
+        }
+
+        public final void setCiphertextForRecipient(ByteBuffer ciphertextForRecipient) {
+            ciphertextForRecipient(ciphertextForRecipient == null ? null : SdkBytes.fromByteBuffer(ciphertextForRecipient));
+        }
+
+        @Override
+        public final Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient) {
+            this.ciphertextForRecipient = ciphertextForRecipient;
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyPairResponse build() {
+            return new GenerateDataKeyPairResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairWithoutPlaintextRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairWithoutPlaintextRequest.java
new file mode 100644
index 0000000..80b8a6e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairWithoutPlaintextRequest.java
@@ -0,0 +1,856 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyPairWithoutPlaintextRequest extends KmsRequest implements
+        ToCopyableBuilder<GenerateDataKeyPairWithoutPlaintextRequest.Builder, GenerateDataKeyPairWithoutPlaintextRequest> {
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContext")
+            .getter(getter(GenerateDataKeyPairWithoutPlaintextRequest::encryptionContext))
+            .setter(setter(Builder::encryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyPairWithoutPlaintextRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> KEY_PAIR_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyPairSpec").getter(getter(GenerateDataKeyPairWithoutPlaintextRequest::keyPairSpecAsString))
+            .setter(setter(Builder::keyPairSpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyPairSpec").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(GenerateDataKeyPairWithoutPlaintextRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(GenerateDataKeyPairWithoutPlaintextRequest::dryRun))
+            .setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENCRYPTION_CONTEXT_FIELD,
+            KEY_ID_FIELD, KEY_PAIR_SPEC_FIELD, GRANT_TOKENS_FIELD, DRY_RUN_FIELD));
+
+    private final Map<String, String> encryptionContext;
+
+    private final String keyId;
+
+    private final String keyPairSpec;
+
+    private final List<String> grantTokens;
+
+    private final Boolean dryRun;
+
+    private GenerateDataKeyPairWithoutPlaintextRequest(BuilderImpl builder) {
+        super(builder);
+        this.encryptionContext = builder.encryptionContext;
+        this.keyId = builder.keyId;
+        this.keyPairSpec = builder.keyPairSpec;
+        this.grantTokens = builder.grantTokens;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContext property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionContext() {
+        return encryptionContext != null && !(encryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context that will be used when encrypting the private key in the data key pair.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context that will be used when encrypting the private key in the data key
+     *         pair.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> encryptionContext() {
+        return encryptionContext;
+    }
+
+    /**
+     * <p>
+     * Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot specify
+     * an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
+     * <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot
+     *         specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS
+     *         key, use the <a>DescribeKey</a> operation. </p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Determines the type of data key pair that is generated.
+     * </p>
+     * <p>
+     * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+     * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+     * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return Determines the type of data key pair that is generated.</p>
+     *         <p>
+     *         The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign
+     *         and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are
+     *         not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in
+     *         China Regions.
+     * @see DataKeyPairSpec
+     */
+    public final DataKeyPairSpec keyPairSpec() {
+        return DataKeyPairSpec.fromValue(keyPairSpec);
+    }
+
+    /**
+     * <p>
+     * Determines the type of data key pair that is generated.
+     * </p>
+     * <p>
+     * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+     * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+     * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return Determines the type of data key pair that is generated.</p>
+     *         <p>
+     *         The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign
+     *         and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are
+     *         not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in
+     *         China Regions.
+     * @see DataKeyPairSpec
+     */
+    public final String keyPairSpecAsString() {
+        return keyPairSpec;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContext() ? encryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyPairSpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyPairWithoutPlaintextRequest)) {
+            return false;
+        }
+        GenerateDataKeyPairWithoutPlaintextRequest other = (GenerateDataKeyPairWithoutPlaintextRequest) obj;
+        return hasEncryptionContext() == other.hasEncryptionContext()
+                && Objects.equals(encryptionContext(), other.encryptionContext()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(keyPairSpecAsString(), other.keyPairSpecAsString())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyPairWithoutPlaintextRequest")
+                .add("EncryptionContext", hasEncryptionContext() ? encryptionContext() : null).add("KeyId", keyId())
+                .add("KeyPairSpec", keyPairSpecAsString()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "EncryptionContext":
+            return Optional.ofNullable(clazz.cast(encryptionContext()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "KeyPairSpec":
+            return Optional.ofNullable(clazz.cast(keyPairSpecAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyPairWithoutPlaintextRequest, T> g) {
+        return obj -> g.apply((GenerateDataKeyPairWithoutPlaintextRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo,
+            CopyableBuilder<Builder, GenerateDataKeyPairWithoutPlaintextRequest> {
+        /**
+         * <p>
+         * Specifies the encryption context that will be used when encrypting the private key in the data key pair.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param encryptionContext
+         *        Specifies the encryption context that will be used when encrypting the private key in the data key
+         *        pair.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContext(Map<String, String> encryptionContext);
+
+        /**
+         * <p>
+         * Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot
+         * specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key,
+         * use the <a>DescribeKey</a> operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You
+         *        cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of
+         *        your KMS key, use the <a>DescribeKey</a> operation. </p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Determines the type of data key pair that is generated.
+         * </p>
+         * <p>
+         * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+         * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+         * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China
+         * Regions.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        Determines the type of data key pair that is generated.</p>
+         *        <p>
+         *        The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to
+         *        sign and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and
+         *        verify, are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only
+         *        available in China Regions.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(String keyPairSpec);
+
+        /**
+         * <p>
+         * Determines the type of data key pair that is generated.
+         * </p>
+         * <p>
+         * The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and
+         * verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not
+         * effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China
+         * Regions.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        Determines the type of data key pair that is generated.</p>
+         *        <p>
+         *        The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to
+         *        sign and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and
+         *        verify, are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only
+         *        available in China Regions.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(DataKeyPairSpec keyPairSpec);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private Map<String, String> encryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private String keyId;
+
+        private String keyPairSpec;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyPairWithoutPlaintextRequest model) {
+            super(model);
+            encryptionContext(model.encryptionContext);
+            keyId(model.keyId);
+            keyPairSpec(model.keyPairSpec);
+            grantTokens(model.grantTokens);
+            dryRun(model.dryRun);
+        }
+
+        public final Map<String, String> getEncryptionContext() {
+            if (encryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContext;
+        }
+
+        public final void setEncryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+        }
+
+        @Override
+        public final Builder encryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getKeyPairSpec() {
+            return keyPairSpec;
+        }
+
+        public final void setKeyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+        }
+
+        @Override
+        public final Builder keyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keyPairSpec(DataKeyPairSpec keyPairSpec) {
+            this.keyPairSpec(keyPairSpec == null ? null : keyPairSpec.toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyPairWithoutPlaintextRequest build() {
+            return new GenerateDataKeyPairWithoutPlaintextRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairWithoutPlaintextResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairWithoutPlaintextResponse.java
new file mode 100644
index 0000000..8404a9b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyPairWithoutPlaintextResponse.java
@@ -0,0 +1,402 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyPairWithoutPlaintextResponse extends KmsResponse implements
+        ToCopyableBuilder<GenerateDataKeyPairWithoutPlaintextResponse.Builder, GenerateDataKeyPairWithoutPlaintextResponse> {
+    private static final SdkField<SdkBytes> PRIVATE_KEY_CIPHERTEXT_BLOB_FIELD = SdkField
+            .<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("PrivateKeyCiphertextBlob")
+            .getter(getter(GenerateDataKeyPairWithoutPlaintextResponse::privateKeyCiphertextBlob))
+            .setter(setter(Builder::privateKeyCiphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PrivateKeyCiphertextBlob").build())
+            .build();
+
+    private static final SdkField<SdkBytes> PUBLIC_KEY_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("PublicKey").getter(getter(GenerateDataKeyPairWithoutPlaintextResponse::publicKey))
+            .setter(setter(Builder::publicKey))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PublicKey").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyPairWithoutPlaintextResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> KEY_PAIR_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyPairSpec").getter(getter(GenerateDataKeyPairWithoutPlaintextResponse::keyPairSpecAsString))
+            .setter(setter(Builder::keyPairSpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyPairSpec").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(
+            PRIVATE_KEY_CIPHERTEXT_BLOB_FIELD, PUBLIC_KEY_FIELD, KEY_ID_FIELD, KEY_PAIR_SPEC_FIELD));
+
+    private final SdkBytes privateKeyCiphertextBlob;
+
+    private final SdkBytes publicKey;
+
+    private final String keyId;
+
+    private final String keyPairSpec;
+
+    private GenerateDataKeyPairWithoutPlaintextResponse(BuilderImpl builder) {
+        super(builder);
+        this.privateKeyCiphertextBlob = builder.privateKeyCiphertextBlob;
+        this.publicKey = builder.publicKey;
+        this.keyId = builder.keyId;
+        this.keyPairSpec = builder.keyPairSpec;
+    }
+
+    /**
+     * <p>
+     * The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     * Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the
+     *         value is Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes privateKeyCiphertextBlob() {
+        return privateKeyCiphertextBlob;
+    }
+
+    /**
+     * <p>
+     * The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+     * Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes publicKey() {
+        return publicKey;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that encrypted the private key.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that encrypted the private key.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The type of data key pair that was generated.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return The type of data key pair that was generated.
+     * @see DataKeyPairSpec
+     */
+    public final DataKeyPairSpec keyPairSpec() {
+        return DataKeyPairSpec.fromValue(keyPairSpec);
+    }
+
+    /**
+     * <p>
+     * The type of data key pair that was generated.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyPairSpec} will
+     * return {@link DataKeyPairSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyPairSpecAsString}.
+     * </p>
+     * 
+     * @return The type of data key pair that was generated.
+     * @see DataKeyPairSpec
+     */
+    public final String keyPairSpecAsString() {
+        return keyPairSpec;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(privateKeyCiphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(publicKey());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyPairSpecAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyPairWithoutPlaintextResponse)) {
+            return false;
+        }
+        GenerateDataKeyPairWithoutPlaintextResponse other = (GenerateDataKeyPairWithoutPlaintextResponse) obj;
+        return Objects.equals(privateKeyCiphertextBlob(), other.privateKeyCiphertextBlob())
+                && Objects.equals(publicKey(), other.publicKey()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(keyPairSpecAsString(), other.keyPairSpecAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyPairWithoutPlaintextResponse")
+                .add("PrivateKeyCiphertextBlob", privateKeyCiphertextBlob()).add("PublicKey", publicKey()).add("KeyId", keyId())
+                .add("KeyPairSpec", keyPairSpecAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "PrivateKeyCiphertextBlob":
+            return Optional.ofNullable(clazz.cast(privateKeyCiphertextBlob()));
+        case "PublicKey":
+            return Optional.ofNullable(clazz.cast(publicKey()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "KeyPairSpec":
+            return Optional.ofNullable(clazz.cast(keyPairSpecAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyPairWithoutPlaintextResponse, T> g) {
+        return obj -> g.apply((GenerateDataKeyPairWithoutPlaintextResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo,
+            CopyableBuilder<Builder, GenerateDataKeyPairWithoutPlaintextResponse> {
+        /**
+         * <p>
+         * The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param privateKeyCiphertextBlob
+         *        The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the
+         *        value is Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder privateKeyCiphertextBlob(SdkBytes privateKeyCiphertextBlob);
+
+        /**
+         * <p>
+         * The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param publicKey
+         *        The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder publicKey(SdkBytes publicKey);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that encrypted the private key.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that encrypted the private key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The type of data key pair that was generated.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        The type of data key pair that was generated.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(String keyPairSpec);
+
+        /**
+         * <p>
+         * The type of data key pair that was generated.
+         * </p>
+         * 
+         * @param keyPairSpec
+         *        The type of data key pair that was generated.
+         * @see DataKeyPairSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeyPairSpec
+         */
+        Builder keyPairSpec(DataKeyPairSpec keyPairSpec);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes privateKeyCiphertextBlob;
+
+        private SdkBytes publicKey;
+
+        private String keyId;
+
+        private String keyPairSpec;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyPairWithoutPlaintextResponse model) {
+            super(model);
+            privateKeyCiphertextBlob(model.privateKeyCiphertextBlob);
+            publicKey(model.publicKey);
+            keyId(model.keyId);
+            keyPairSpec(model.keyPairSpec);
+        }
+
+        public final ByteBuffer getPrivateKeyCiphertextBlob() {
+            return privateKeyCiphertextBlob == null ? null : privateKeyCiphertextBlob.asByteBuffer();
+        }
+
+        public final void setPrivateKeyCiphertextBlob(ByteBuffer privateKeyCiphertextBlob) {
+            privateKeyCiphertextBlob(privateKeyCiphertextBlob == null ? null : SdkBytes.fromByteBuffer(privateKeyCiphertextBlob));
+        }
+
+        @Override
+        public final Builder privateKeyCiphertextBlob(SdkBytes privateKeyCiphertextBlob) {
+            this.privateKeyCiphertextBlob = privateKeyCiphertextBlob;
+            return this;
+        }
+
+        public final ByteBuffer getPublicKey() {
+            return publicKey == null ? null : publicKey.asByteBuffer();
+        }
+
+        public final void setPublicKey(ByteBuffer publicKey) {
+            publicKey(publicKey == null ? null : SdkBytes.fromByteBuffer(publicKey));
+        }
+
+        @Override
+        public final Builder publicKey(SdkBytes publicKey) {
+            this.publicKey = publicKey;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getKeyPairSpec() {
+            return keyPairSpec;
+        }
+
+        public final void setKeyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+        }
+
+        @Override
+        public final Builder keyPairSpec(String keyPairSpec) {
+            this.keyPairSpec = keyPairSpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keyPairSpec(DataKeyPairSpec keyPairSpec) {
+            this.keyPairSpec(keyPairSpec == null ? null : keyPairSpec.toString());
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyPairWithoutPlaintextResponse build() {
+            return new GenerateDataKeyPairWithoutPlaintextResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyRequest.java
new file mode 100644
index 0000000..7832dc2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyRequest.java
@@ -0,0 +1,1097 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyRequest extends KmsRequest implements
+        ToCopyableBuilder<GenerateDataKeyRequest.Builder, GenerateDataKeyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContext")
+            .getter(getter(GenerateDataKeyRequest::encryptionContext))
+            .setter(setter(Builder::encryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<Integer> NUMBER_OF_BYTES_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER)
+            .memberName("NumberOfBytes").getter(getter(GenerateDataKeyRequest::numberOfBytes))
+            .setter(setter(Builder::numberOfBytes))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NumberOfBytes").build()).build();
+
+    private static final SdkField<String> KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeySpec").getter(getter(GenerateDataKeyRequest::keySpecAsString)).setter(setter(Builder::keySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeySpec").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(GenerateDataKeyRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<RecipientInfo> RECIPIENT_FIELD = SdkField.<RecipientInfo> builder(MarshallingType.SDK_POJO)
+            .memberName("Recipient").getter(getter(GenerateDataKeyRequest::recipient)).setter(setter(Builder::recipient))
+            .constructor(RecipientInfo::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Recipient").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(GenerateDataKeyRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            ENCRYPTION_CONTEXT_FIELD, NUMBER_OF_BYTES_FIELD, KEY_SPEC_FIELD, GRANT_TOKENS_FIELD, RECIPIENT_FIELD, DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final Map<String, String> encryptionContext;
+
+    private final Integer numberOfBytes;
+
+    private final String keySpec;
+
+    private final List<String> grantTokens;
+
+    private final RecipientInfo recipient;
+
+    private final Boolean dryRun;
+
+    private GenerateDataKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.encryptionContext = builder.encryptionContext;
+        this.numberOfBytes = builder.numberOfBytes;
+        this.keySpec = builder.keySpec;
+        this.grantTokens = builder.grantTokens;
+        this.recipient = builder.recipient;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS key
+     * or a KMS key in a custom key store. To get the type and origin of your KMS key, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric
+     *         KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
+     *         <a>DescribeKey</a> operation.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContext property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionContext() {
+        return encryptionContext != null && !(encryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context that will be used when encrypting the data key.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context that will be used when encrypting the data key.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> encryptionContext() {
+        return encryptionContext;
+    }
+
+    /**
+     * <p>
+     * Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64
+     * bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data keys, use the <code>KeySpec</code>
+     * parameter.
+     * </p>
+     * <p>
+     * You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both) in
+     * every <code>GenerateDataKey</code> request.
+     * </p>
+     * 
+     * @return Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit data
+     *         key (64 bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data keys, use the
+     *         <code>KeySpec</code> parameter.</p>
+     *         <p>
+     *         You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
+     *         both) in every <code>GenerateDataKey</code> request.
+     */
+    public final Integer numberOfBytes() {
+        return numberOfBytes;
+    }
+
+    /**
+     * <p>
+     * Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+     * <code>AES_256</code> to generate a 256-bit symmetric key.
+     * </p>
+     * <p>
+     * You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both) in
+     * every <code>GenerateDataKey</code> request.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link DataKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+     *         <code>AES_256</code> to generate a 256-bit symmetric key.</p>
+     *         <p>
+     *         You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
+     *         both) in every <code>GenerateDataKey</code> request.
+     * @see DataKeySpec
+     */
+    public final DataKeySpec keySpec() {
+        return DataKeySpec.fromValue(keySpec);
+    }
+
+    /**
+     * <p>
+     * Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+     * <code>AES_256</code> to generate a 256-bit symmetric key.
+     * </p>
+     * <p>
+     * You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both) in
+     * every <code>GenerateDataKey</code> request.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link DataKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+     *         <code>AES_256</code> to generate a 256-bit symmetric key.</p>
+     *         <p>
+     *         You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
+     *         both) in every <code>GenerateDataKey</code> request.
+     * @see DataKeySpec
+     */
+    public final String keySpecAsString() {
+        return keySpec;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * A signed <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">attestation
+     * document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
+     * public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     * </p>
+     * <p>
+     * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+     * parameter, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     * </p>
+     * <p>
+     * When you use this parameter, instead of returning the plaintext data key, KMS encrypts the plaintext data key
+     * under the public key in the attestation document, and returns the resulting ciphertext in the
+     * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the private
+     * key in the enclave. The <code>CiphertextBlob</code> field in the response contains a copy of the data key
+     * encrypted under the KMS key specified by the <code>KeyId</code> parameter. The <code>Plaintext</code> field in
+     * the response is null or empty.
+     * </p>
+     * <p>
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return A signed <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc"
+     *         >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use
+     *         with the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     *         </p>
+     *         <p>
+     *         This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+     *         this parameter, use the <a
+     *         href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+     *         Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     *         </p>
+     *         <p>
+     *         When you use this parameter, instead of returning the plaintext data key, KMS encrypts the plaintext data
+     *         key under the public key in the attestation document, and returns the resulting ciphertext in the
+     *         <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+     *         private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a copy of the
+     *         data key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The
+     *         <code>Plaintext</code> field in the response is null or empty.
+     *         </p>
+     *         <p>
+     *         For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final RecipientInfo recipient() {
+        return recipient;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContext() ? encryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(numberOfBytes());
+        hashCode = 31 * hashCode + Objects.hashCode(keySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(recipient());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyRequest)) {
+            return false;
+        }
+        GenerateDataKeyRequest other = (GenerateDataKeyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && hasEncryptionContext() == other.hasEncryptionContext()
+                && Objects.equals(encryptionContext(), other.encryptionContext())
+                && Objects.equals(numberOfBytes(), other.numberOfBytes())
+                && Objects.equals(keySpecAsString(), other.keySpecAsString()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens()) && Objects.equals(recipient(), other.recipient())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyRequest").add("KeyId", keyId())
+                .add("EncryptionContext", hasEncryptionContext() ? encryptionContext() : null)
+                .add("NumberOfBytes", numberOfBytes()).add("KeySpec", keySpecAsString())
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null).add("Recipient", recipient())
+                .add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "EncryptionContext":
+            return Optional.ofNullable(clazz.cast(encryptionContext()));
+        case "NumberOfBytes":
+            return Optional.ofNullable(clazz.cast(numberOfBytes()));
+        case "KeySpec":
+            return Optional.ofNullable(clazz.cast(keySpecAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "Recipient":
+            return Optional.ofNullable(clazz.cast(recipient()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyRequest, T> g) {
+        return obj -> g.apply((GenerateDataKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GenerateDataKeyRequest> {
+        /**
+         * <p>
+         * Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS
+         * key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
+         * <a>DescribeKey</a> operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an
+         *        asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use
+         *        the <a>DescribeKey</a> operation.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Specifies the encryption context that will be used when encrypting the data key.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param encryptionContext
+         *        Specifies the encryption context that will be used when encrypting the data key.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContext(Map<String, String> encryptionContext);
+
+        /**
+         * <p>
+         * Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key
+         * (64 bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data keys, use the <code>KeySpec</code>
+         * parameter.
+         * </p>
+         * <p>
+         * You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both)
+         * in every <code>GenerateDataKey</code> request.
+         * </p>
+         * 
+         * @param numberOfBytes
+         *        Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit
+         *        data key (64 bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data keys, use the
+         *        <code>KeySpec</code> parameter.</p>
+         *        <p>
+         *        You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
+         *        both) in every <code>GenerateDataKey</code> request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder numberOfBytes(Integer numberOfBytes);
+
+        /**
+         * <p>
+         * Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         * <code>AES_256</code> to generate a 256-bit symmetric key.
+         * </p>
+         * <p>
+         * You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both)
+         * in every <code>GenerateDataKey</code> request.
+         * </p>
+         * 
+         * @param keySpec
+         *        Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         *        <code>AES_256</code> to generate a 256-bit symmetric key.</p>
+         *        <p>
+         *        You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
+         *        both) in every <code>GenerateDataKey</code> request.
+         * @see DataKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeySpec
+         */
+        Builder keySpec(String keySpec);
+
+        /**
+         * <p>
+         * Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         * <code>AES_256</code> to generate a 256-bit symmetric key.
+         * </p>
+         * <p>
+         * You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both)
+         * in every <code>GenerateDataKey</code> request.
+         * </p>
+         * 
+         * @param keySpec
+         *        Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         *        <code>AES_256</code> to generate a 256-bit symmetric key.</p>
+         *        <p>
+         *        You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
+         *        both) in every <code>GenerateDataKey</code> request.
+         * @see DataKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeySpec
+         */
+        Builder keySpec(DataKeySpec keySpec);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * A signed <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">
+         * attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning the plaintext data key, KMS encrypts the plaintext data key
+         * under the public key in the attestation document, and returns the resulting ciphertext in the
+         * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+         * private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a copy of the data
+         * key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The <code>Plaintext</code>
+         * field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param recipient
+         *        A signed <a
+         *        href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc"
+         *        >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to
+         *        use with the enclave's public key. The only valid encryption algorithm is
+         *        <code>RSAES_OAEP_SHA_256</code>. </p>
+         *        <p>
+         *        This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+         *        this parameter, use the <a
+         *        href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+         *        Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         *        </p>
+         *        <p>
+         *        When you use this parameter, instead of returning the plaintext data key, KMS encrypts the plaintext
+         *        data key under the public key in the attestation document, and returns the resulting ciphertext in the
+         *        <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with
+         *        the private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a copy
+         *        of the data key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The
+         *        <code>Plaintext</code> field in the response is null or empty.
+         *        </p>
+         *        <p>
+         *        For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder recipient(RecipientInfo recipient);
+
+        /**
+         * <p>
+         * A signed <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">
+         * attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning the plaintext data key, KMS encrypts the plaintext data key
+         * under the public key in the attestation document, and returns the resulting ciphertext in the
+         * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+         * private key in the enclave. The <code>CiphertextBlob</code> field in the response contains a copy of the data
+         * key encrypted under the KMS key specified by the <code>KeyId</code> parameter. The <code>Plaintext</code>
+         * field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link RecipientInfo.Builder} avoiding the need
+         * to create one manually via {@link RecipientInfo#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link RecipientInfo.Builder#build()} is called immediately and its
+         * result is passed to {@link #recipient(RecipientInfo)}.
+         * 
+         * @param recipient
+         *        a consumer that will call methods on {@link RecipientInfo.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #recipient(RecipientInfo)
+         */
+        default Builder recipient(Consumer<RecipientInfo.Builder> recipient) {
+            return recipient(RecipientInfo.builder().applyMutation(recipient).build());
+        }
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Map<String, String> encryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private Integer numberOfBytes;
+
+        private String keySpec;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private RecipientInfo recipient;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            encryptionContext(model.encryptionContext);
+            numberOfBytes(model.numberOfBytes);
+            keySpec(model.keySpec);
+            grantTokens(model.grantTokens);
+            recipient(model.recipient);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Map<String, String> getEncryptionContext() {
+            if (encryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContext;
+        }
+
+        public final void setEncryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+        }
+
+        @Override
+        public final Builder encryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+            return this;
+        }
+
+        public final Integer getNumberOfBytes() {
+            return numberOfBytes;
+        }
+
+        public final void setNumberOfBytes(Integer numberOfBytes) {
+            this.numberOfBytes = numberOfBytes;
+        }
+
+        @Override
+        public final Builder numberOfBytes(Integer numberOfBytes) {
+            this.numberOfBytes = numberOfBytes;
+            return this;
+        }
+
+        public final String getKeySpec() {
+            return keySpec;
+        }
+
+        public final void setKeySpec(String keySpec) {
+            this.keySpec = keySpec;
+        }
+
+        @Override
+        public final Builder keySpec(String keySpec) {
+            this.keySpec = keySpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keySpec(DataKeySpec keySpec) {
+            this.keySpec(keySpec == null ? null : keySpec.toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final RecipientInfo.Builder getRecipient() {
+            return recipient != null ? recipient.toBuilder() : null;
+        }
+
+        public final void setRecipient(RecipientInfo.BuilderImpl recipient) {
+            this.recipient = recipient != null ? recipient.build() : null;
+        }
+
+        @Override
+        public final Builder recipient(RecipientInfo recipient) {
+            this.recipient = recipient;
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyRequest build() {
+            return new GenerateDataKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyResponse.java
new file mode 100644
index 0000000..80bf9e0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyResponse.java
@@ -0,0 +1,403 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<GenerateDataKeyResponse.Builder, GenerateDataKeyResponse> {
+    private static final SdkField<SdkBytes> CIPHERTEXT_BLOB_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("CiphertextBlob").getter(getter(GenerateDataKeyResponse::ciphertextBlob))
+            .setter(setter(Builder::ciphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextBlob").build()).build();
+
+    private static final SdkField<SdkBytes> PLAINTEXT_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Plaintext").getter(getter(GenerateDataKeyResponse::plaintext)).setter(setter(Builder::plaintext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Plaintext").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> CIPHERTEXT_FOR_RECIPIENT_FIELD = SdkField
+            .<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("CiphertextForRecipient")
+            .getter(getter(GenerateDataKeyResponse::ciphertextForRecipient)).setter(setter(Builder::ciphertextForRecipient))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextForRecipient").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CIPHERTEXT_BLOB_FIELD,
+            PLAINTEXT_FIELD, KEY_ID_FIELD, CIPHERTEXT_FOR_RECIPIENT_FIELD));
+
+    private final SdkBytes ciphertextBlob;
+
+    private final SdkBytes plaintext;
+
+    private final String keyId;
+
+    private final SdkBytes ciphertextForRecipient;
+
+    private GenerateDataKeyResponse(BuilderImpl builder) {
+        super(builder);
+        this.ciphertextBlob = builder.ciphertextBlob;
+        this.plaintext = builder.plaintext;
+        this.keyId = builder.keyId;
+        this.ciphertextForRecipient = builder.ciphertextForRecipient;
+    }
+
+    /**
+     * <p>
+     * The encrypted copy of the data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     * Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The encrypted copy of the data key. When you use the HTTP API or the Amazon Web Services CLI, the value
+     *         is Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes ciphertextBlob() {
+        return ciphertextBlob;
+    }
+
+    /**
+     * <p>
+     * The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+     * Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from
+     * memory as soon as possible.
+     * </p>
+     * <p>
+     * If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field is null
+     * or empty.
+     * </p>
+     * 
+     * @return The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of
+     *         KMS. Then, remove it from memory as soon as possible.</p>
+     *         <p>
+     *         If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field
+     *         is null or empty.
+     */
+    public final SdkBytes plaintext() {
+        return plaintext;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that encrypted the data key.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that encrypted the data key.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The plaintext data key encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted
+     * only by using a private key in the Nitro enclave.
+     * </p>
+     * <p>
+     * This field is included in the response only when the <code>Recipient</code> parameter in the request includes a
+     * valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+     * between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return The plaintext data key encrypted with the public key from the Nitro enclave. This ciphertext can be
+     *         decrypted only by using a private key in the Nitro enclave. </p>
+     *         <p>
+     *         This field is included in the response only when the <code>Recipient</code> parameter in the request
+     *         includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+     *         the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final SdkBytes ciphertextForRecipient() {
+        return ciphertextForRecipient;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(plaintext());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextForRecipient());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyResponse)) {
+            return false;
+        }
+        GenerateDataKeyResponse other = (GenerateDataKeyResponse) obj;
+        return Objects.equals(ciphertextBlob(), other.ciphertextBlob()) && Objects.equals(plaintext(), other.plaintext())
+                && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(ciphertextForRecipient(), other.ciphertextForRecipient());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyResponse").add("CiphertextBlob", ciphertextBlob())
+                .add("Plaintext", plaintext() == null ? null : "*** Sensitive Data Redacted ***").add("KeyId", keyId())
+                .add("CiphertextForRecipient", ciphertextForRecipient()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CiphertextBlob":
+            return Optional.ofNullable(clazz.cast(ciphertextBlob()));
+        case "Plaintext":
+            return Optional.ofNullable(clazz.cast(plaintext()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "CiphertextForRecipient":
+            return Optional.ofNullable(clazz.cast(ciphertextForRecipient()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyResponse, T> g) {
+        return obj -> g.apply((GenerateDataKeyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GenerateDataKeyResponse> {
+        /**
+         * <p>
+         * The encrypted copy of the data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param ciphertextBlob
+         *        The encrypted copy of the data key. When you use the HTTP API or the Amazon Web Services CLI, the
+         *        value is Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextBlob(SdkBytes ciphertextBlob);
+
+        /**
+         * <p>
+         * The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS.
+         * Then, remove it from memory as soon as possible.
+         * </p>
+         * <p>
+         * If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field is
+         * null or empty.
+         * </p>
+         * 
+         * @param plaintext
+         *        The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of
+         *        KMS. Then, remove it from memory as soon as possible.</p>
+         *        <p>
+         *        If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code>
+         *        field is null or empty.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder plaintext(SdkBytes plaintext);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that encrypted the data key.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that encrypted the data key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The plaintext data key encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted
+         * only by using a private key in the Nitro enclave.
+         * </p>
+         * <p>
+         * This field is included in the response only when the <code>Recipient</code> parameter in the request includes
+         * a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+         * between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param ciphertextForRecipient
+         *        The plaintext data key encrypted with the public key from the Nitro enclave. This ciphertext can be
+         *        decrypted only by using a private key in the Nitro enclave. </p>
+         *        <p>
+         *        This field is included in the response only when the <code>Recipient</code> parameter in the request
+         *        includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+         *        the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes ciphertextBlob;
+
+        private SdkBytes plaintext;
+
+        private String keyId;
+
+        private SdkBytes ciphertextForRecipient;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyResponse model) {
+            super(model);
+            ciphertextBlob(model.ciphertextBlob);
+            plaintext(model.plaintext);
+            keyId(model.keyId);
+            ciphertextForRecipient(model.ciphertextForRecipient);
+        }
+
+        public final ByteBuffer getCiphertextBlob() {
+            return ciphertextBlob == null ? null : ciphertextBlob.asByteBuffer();
+        }
+
+        public final void setCiphertextBlob(ByteBuffer ciphertextBlob) {
+            ciphertextBlob(ciphertextBlob == null ? null : SdkBytes.fromByteBuffer(ciphertextBlob));
+        }
+
+        @Override
+        public final Builder ciphertextBlob(SdkBytes ciphertextBlob) {
+            this.ciphertextBlob = ciphertextBlob;
+            return this;
+        }
+
+        public final ByteBuffer getPlaintext() {
+            return plaintext == null ? null : plaintext.asByteBuffer();
+        }
+
+        public final void setPlaintext(ByteBuffer plaintext) {
+            plaintext(plaintext == null ? null : SdkBytes.fromByteBuffer(plaintext));
+        }
+
+        @Override
+        public final Builder plaintext(SdkBytes plaintext) {
+            this.plaintext = plaintext;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getCiphertextForRecipient() {
+            return ciphertextForRecipient == null ? null : ciphertextForRecipient.asByteBuffer();
+        }
+
+        public final void setCiphertextForRecipient(ByteBuffer ciphertextForRecipient) {
+            ciphertextForRecipient(ciphertextForRecipient == null ? null : SdkBytes.fromByteBuffer(ciphertextForRecipient));
+        }
+
+        @Override
+        public final Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient) {
+            this.ciphertextForRecipient = ciphertextForRecipient;
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyResponse build() {
+            return new GenerateDataKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyWithoutPlaintextRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyWithoutPlaintextRequest.java
new file mode 100644
index 0000000..e609746
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyWithoutPlaintextRequest.java
@@ -0,0 +1,877 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyWithoutPlaintextRequest extends KmsRequest implements
+        ToCopyableBuilder<GenerateDataKeyWithoutPlaintextRequest.Builder, GenerateDataKeyWithoutPlaintextRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyWithoutPlaintextRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContext")
+            .getter(getter(GenerateDataKeyWithoutPlaintextRequest::encryptionContext))
+            .setter(setter(Builder::encryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<String> KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeySpec").getter(getter(GenerateDataKeyWithoutPlaintextRequest::keySpecAsString))
+            .setter(setter(Builder::keySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeySpec").build()).build();
+
+    private static final SdkField<Integer> NUMBER_OF_BYTES_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER)
+            .memberName("NumberOfBytes").getter(getter(GenerateDataKeyWithoutPlaintextRequest::numberOfBytes))
+            .setter(setter(Builder::numberOfBytes))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NumberOfBytes").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(GenerateDataKeyWithoutPlaintextRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(GenerateDataKeyWithoutPlaintextRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            ENCRYPTION_CONTEXT_FIELD, KEY_SPEC_FIELD, NUMBER_OF_BYTES_FIELD, GRANT_TOKENS_FIELD, DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final Map<String, String> encryptionContext;
+
+    private final String keySpec;
+
+    private final Integer numberOfBytes;
+
+    private final List<String> grantTokens;
+
+    private final Boolean dryRun;
+
+    private GenerateDataKeyWithoutPlaintextRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.encryptionContext = builder.encryptionContext;
+        this.keySpec = builder.keySpec;
+        this.numberOfBytes = builder.numberOfBytes;
+        this.grantTokens = builder.grantTokens;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS key
+     * or a KMS key in a custom key store. To get the type and origin of your KMS key, use the <a>DescribeKey</a>
+     * operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric
+     *         KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
+     *         <a>DescribeKey</a> operation.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContext property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionContext() {
+        return encryptionContext != null && !(encryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context that will be used when encrypting the data key.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context that will be used when encrypting the data key.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> encryptionContext() {
+        return encryptionContext;
+    }
+
+    /**
+     * <p>
+     * The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or <code>AES_256</code>
+     * to generate a 256-bit symmetric key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link DataKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+     *         <code>AES_256</code> to generate a 256-bit symmetric key.
+     * @see DataKeySpec
+     */
+    public final DataKeySpec keySpec() {
+        return DataKeySpec.fromValue(keySpec);
+    }
+
+    /**
+     * <p>
+     * The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or <code>AES_256</code>
+     * to generate a 256-bit symmetric key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link DataKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+     *         <code>AES_256</code> to generate a 256-bit symmetric key.
+     * @see DataKeySpec
+     */
+    public final String keySpecAsString() {
+        return keySpec;
+    }
+
+    /**
+     * <p>
+     * The length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64 bytes is
+     * 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use the
+     * <code>KeySpec</code> field instead of this one.
+     * </p>
+     * 
+     * @return The length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64
+     *         bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you
+     *         use the <code>KeySpec</code> field instead of this one.
+     */
+    public final Integer numberOfBytes() {
+        return numberOfBytes;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContext() ? encryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(keySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(numberOfBytes());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyWithoutPlaintextRequest)) {
+            return false;
+        }
+        GenerateDataKeyWithoutPlaintextRequest other = (GenerateDataKeyWithoutPlaintextRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && hasEncryptionContext() == other.hasEncryptionContext()
+                && Objects.equals(encryptionContext(), other.encryptionContext())
+                && Objects.equals(keySpecAsString(), other.keySpecAsString())
+                && Objects.equals(numberOfBytes(), other.numberOfBytes()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens()) && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyWithoutPlaintextRequest").add("KeyId", keyId())
+                .add("EncryptionContext", hasEncryptionContext() ? encryptionContext() : null).add("KeySpec", keySpecAsString())
+                .add("NumberOfBytes", numberOfBytes()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "EncryptionContext":
+            return Optional.ofNullable(clazz.cast(encryptionContext()));
+        case "KeySpec":
+            return Optional.ofNullable(clazz.cast(keySpecAsString()));
+        case "NumberOfBytes":
+            return Optional.ofNullable(clazz.cast(numberOfBytes()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyWithoutPlaintextRequest, T> g) {
+        return obj -> g.apply((GenerateDataKeyWithoutPlaintextRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo,
+            CopyableBuilder<Builder, GenerateDataKeyWithoutPlaintextRequest> {
+        /**
+         * <p>
+         * Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS
+         * key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
+         * <a>DescribeKey</a> operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an
+         *        asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use
+         *        the <a>DescribeKey</a> operation.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Specifies the encryption context that will be used when encrypting the data key.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param encryptionContext
+         *        Specifies the encryption context that will be used when encrypting the data key.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContext(Map<String, String> encryptionContext);
+
+        /**
+         * <p>
+         * The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         * <code>AES_256</code> to generate a 256-bit symmetric key.
+         * </p>
+         * 
+         * @param keySpec
+         *        The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         *        <code>AES_256</code> to generate a 256-bit symmetric key.
+         * @see DataKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeySpec
+         */
+        Builder keySpec(String keySpec);
+
+        /**
+         * <p>
+         * The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         * <code>AES_256</code> to generate a 256-bit symmetric key.
+         * </p>
+         * 
+         * @param keySpec
+         *        The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
+         *        <code>AES_256</code> to generate a 256-bit symmetric key.
+         * @see DataKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see DataKeySpec
+         */
+        Builder keySpec(DataKeySpec keySpec);
+
+        /**
+         * <p>
+         * The length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64 bytes
+         * is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use the
+         * <code>KeySpec</code> field instead of this one.
+         * </p>
+         * 
+         * @param numberOfBytes
+         *        The length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64
+         *        bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you
+         *        use the <code>KeySpec</code> field instead of this one.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder numberOfBytes(Integer numberOfBytes);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Map<String, String> encryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private String keySpec;
+
+        private Integer numberOfBytes;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyWithoutPlaintextRequest model) {
+            super(model);
+            keyId(model.keyId);
+            encryptionContext(model.encryptionContext);
+            keySpec(model.keySpec);
+            numberOfBytes(model.numberOfBytes);
+            grantTokens(model.grantTokens);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Map<String, String> getEncryptionContext() {
+            if (encryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContext;
+        }
+
+        public final void setEncryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+        }
+
+        @Override
+        public final Builder encryptionContext(Map<String, String> encryptionContext) {
+            this.encryptionContext = EncryptionContextTypeCopier.copy(encryptionContext);
+            return this;
+        }
+
+        public final String getKeySpec() {
+            return keySpec;
+        }
+
+        public final void setKeySpec(String keySpec) {
+            this.keySpec = keySpec;
+        }
+
+        @Override
+        public final Builder keySpec(String keySpec) {
+            this.keySpec = keySpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keySpec(DataKeySpec keySpec) {
+            this.keySpec(keySpec == null ? null : keySpec.toString());
+            return this;
+        }
+
+        public final Integer getNumberOfBytes() {
+            return numberOfBytes;
+        }
+
+        public final void setNumberOfBytes(Integer numberOfBytes) {
+            this.numberOfBytes = numberOfBytes;
+        }
+
+        @Override
+        public final Builder numberOfBytes(Integer numberOfBytes) {
+            this.numberOfBytes = numberOfBytes;
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyWithoutPlaintextRequest build() {
+            return new GenerateDataKeyWithoutPlaintextRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyWithoutPlaintextResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyWithoutPlaintextResponse.java
new file mode 100644
index 0000000..fc948eb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateDataKeyWithoutPlaintextResponse.java
@@ -0,0 +1,249 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateDataKeyWithoutPlaintextResponse extends KmsResponse implements
+        ToCopyableBuilder<GenerateDataKeyWithoutPlaintextResponse.Builder, GenerateDataKeyWithoutPlaintextResponse> {
+    private static final SdkField<SdkBytes> CIPHERTEXT_BLOB_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("CiphertextBlob").getter(getter(GenerateDataKeyWithoutPlaintextResponse::ciphertextBlob))
+            .setter(setter(Builder::ciphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextBlob").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateDataKeyWithoutPlaintextResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CIPHERTEXT_BLOB_FIELD,
+            KEY_ID_FIELD));
+
+    private final SdkBytes ciphertextBlob;
+
+    private final String keyId;
+
+    private GenerateDataKeyWithoutPlaintextResponse(BuilderImpl builder) {
+        super(builder);
+        this.ciphertextBlob = builder.ciphertextBlob;
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * The encrypted data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+     * Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The encrypted data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes ciphertextBlob() {
+        return ciphertextBlob;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that encrypted the data key.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that encrypted the data key.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateDataKeyWithoutPlaintextResponse)) {
+            return false;
+        }
+        GenerateDataKeyWithoutPlaintextResponse other = (GenerateDataKeyWithoutPlaintextResponse) obj;
+        return Objects.equals(ciphertextBlob(), other.ciphertextBlob()) && Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateDataKeyWithoutPlaintextResponse").add("CiphertextBlob", ciphertextBlob())
+                .add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CiphertextBlob":
+            return Optional.ofNullable(clazz.cast(ciphertextBlob()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateDataKeyWithoutPlaintextResponse, T> g) {
+        return obj -> g.apply((GenerateDataKeyWithoutPlaintextResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo,
+            CopyableBuilder<Builder, GenerateDataKeyWithoutPlaintextResponse> {
+        /**
+         * <p>
+         * The encrypted data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param ciphertextBlob
+         *        The encrypted data key. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextBlob(SdkBytes ciphertextBlob);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that encrypted the data key.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that encrypted the data key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes ciphertextBlob;
+
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateDataKeyWithoutPlaintextResponse model) {
+            super(model);
+            ciphertextBlob(model.ciphertextBlob);
+            keyId(model.keyId);
+        }
+
+        public final ByteBuffer getCiphertextBlob() {
+            return ciphertextBlob == null ? null : ciphertextBlob.asByteBuffer();
+        }
+
+        public final void setCiphertextBlob(ByteBuffer ciphertextBlob) {
+            ciphertextBlob(ciphertextBlob == null ? null : SdkBytes.fromByteBuffer(ciphertextBlob));
+        }
+
+        @Override
+        public final Builder ciphertextBlob(SdkBytes ciphertextBlob) {
+            this.ciphertextBlob = ciphertextBlob;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public GenerateDataKeyWithoutPlaintextResponse build() {
+            return new GenerateDataKeyWithoutPlaintextResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateMacRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateMacRequest.java
new file mode 100644
index 0000000..815bcdf
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateMacRequest.java
@@ -0,0 +1,633 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateMacRequest extends KmsRequest implements
+        ToCopyableBuilder<GenerateMacRequest.Builder, GenerateMacRequest> {
+    private static final SdkField<SdkBytes> MESSAGE_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Message").getter(getter(GenerateMacRequest::message)).setter(setter(Builder::message))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Message").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateMacRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> MAC_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MacAlgorithm").getter(getter(GenerateMacRequest::macAlgorithmAsString))
+            .setter(setter(Builder::macAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MacAlgorithm").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(GenerateMacRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(GenerateMacRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(MESSAGE_FIELD, KEY_ID_FIELD,
+            MAC_ALGORITHM_FIELD, GRANT_TOKENS_FIELD, DRY_RUN_FIELD));
+
+    private final SdkBytes message;
+
+    private final String keyId;
+
+    private final String macAlgorithm;
+
+    private final List<String> grantTokens;
+
+    private final Boolean dryRun;
+
+    private GenerateMacRequest(BuilderImpl builder) {
+        super(builder);
+        this.message = builder.message;
+        this.keyId = builder.keyId;
+        this.macAlgorithm = builder.macAlgorithm;
+        this.grantTokens = builder.grantTokens;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * The message to be hashed. Specify a message of up to 4,096 bytes.
+     * </p>
+     * <p>
+     * <code>GenerateMac</code> and <a>VerifyMac</a> do not provide special handling for message digests. If you
+     * generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
+     * </p>
+     * 
+     * @return The message to be hashed. Specify a message of up to 4,096 bytes. </p>
+     *         <p>
+     *         <code>GenerateMac</code> and <a>VerifyMac</a> do not provide special handling for message digests. If you
+     *         generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
+     */
+    public final SdkBytes message() {
+        return message;
+    }
+
+    /**
+     * <p>
+     * The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as
+     * described in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * <p>
+     * To identify an HMAC KMS key, use the <a>DescribeKey</a> operation and see the <code>KeySpec</code> field in the
+     * response.
+     * </p>
+     * 
+     * @return The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key
+     *         as described in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.</p>
+     *         <p>
+     *         To identify an HMAC KMS key, use the <a>DescribeKey</a> operation and see the <code>KeySpec</code> field
+     *         in the response.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm used in the operation.
+     * </p>
+     * <p>
+     * The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
+     * HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code> field in the
+     * <code>DescribeKey</code> response.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm used in the operation.</p>
+     *         <p>
+     *         The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
+     *         your HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code>
+     *         field in the <code>DescribeKey</code> response.
+     * @see MacAlgorithmSpec
+     */
+    public final MacAlgorithmSpec macAlgorithm() {
+        return MacAlgorithmSpec.fromValue(macAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm used in the operation.
+     * </p>
+     * <p>
+     * The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
+     * HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code> field in the
+     * <code>DescribeKey</code> response.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm used in the operation.</p>
+     *         <p>
+     *         The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
+     *         your HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code>
+     *         field in the <code>DescribeKey</code> response.
+     * @see MacAlgorithmSpec
+     */
+    public final String macAlgorithmAsString() {
+        return macAlgorithm;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(message());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(macAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateMacRequest)) {
+            return false;
+        }
+        GenerateMacRequest other = (GenerateMacRequest) obj;
+        return Objects.equals(message(), other.message()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(macAlgorithmAsString(), other.macAlgorithmAsString())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateMacRequest")
+                .add("Message", message() == null ? null : "*** Sensitive Data Redacted ***").add("KeyId", keyId())
+                .add("MacAlgorithm", macAlgorithmAsString()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Message":
+            return Optional.ofNullable(clazz.cast(message()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "MacAlgorithm":
+            return Optional.ofNullable(clazz.cast(macAlgorithmAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateMacRequest, T> g) {
+        return obj -> g.apply((GenerateMacRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GenerateMacRequest> {
+        /**
+         * <p>
+         * The message to be hashed. Specify a message of up to 4,096 bytes.
+         * </p>
+         * <p>
+         * <code>GenerateMac</code> and <a>VerifyMac</a> do not provide special handling for message digests. If you
+         * generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
+         * </p>
+         * 
+         * @param message
+         *        The message to be hashed. Specify a message of up to 4,096 bytes. </p>
+         *        <p>
+         *        <code>GenerateMac</code> and <a>VerifyMac</a> do not provide special handling for message digests. If
+         *        you generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder message(SdkBytes message);
+
+        /**
+         * <p>
+         * The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as
+         * described in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+         * </p>
+         * <p>
+         * To identify an HMAC KMS key, use the <a>DescribeKey</a> operation and see the <code>KeySpec</code> field in
+         * the response.
+         * </p>
+         * 
+         * @param keyId
+         *        The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the
+         *        key as described in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.</p>
+         *        <p>
+         *        To identify an HMAC KMS key, use the <a>DescribeKey</a> operation and see the <code>KeySpec</code>
+         *        field in the response.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The MAC algorithm used in the operation.
+         * </p>
+         * <p>
+         * The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
+         * HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code> field in
+         * the <code>DescribeKey</code> response.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm used in the operation.</p>
+         *        <p>
+         *        The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms
+         *        that your HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the
+         *        <code>MacAlgorithms</code> field in the <code>DescribeKey</code> response.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(String macAlgorithm);
+
+        /**
+         * <p>
+         * The MAC algorithm used in the operation.
+         * </p>
+         * <p>
+         * The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
+         * HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code> field in
+         * the <code>DescribeKey</code> response.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm used in the operation.</p>
+         *        <p>
+         *        The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms
+         *        that your HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the
+         *        <code>MacAlgorithms</code> field in the <code>DescribeKey</code> response.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(MacAlgorithmSpec macAlgorithm);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private SdkBytes message;
+
+        private String keyId;
+
+        private String macAlgorithm;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateMacRequest model) {
+            super(model);
+            message(model.message);
+            keyId(model.keyId);
+            macAlgorithm(model.macAlgorithm);
+            grantTokens(model.grantTokens);
+            dryRun(model.dryRun);
+        }
+
+        public final ByteBuffer getMessage() {
+            return message == null ? null : message.asByteBuffer();
+        }
+
+        public final void setMessage(ByteBuffer message) {
+            message(message == null ? null : SdkBytes.fromByteBuffer(message));
+        }
+
+        @Override
+        public final Builder message(SdkBytes message) {
+            this.message = message;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getMacAlgorithm() {
+            return macAlgorithm;
+        }
+
+        public final void setMacAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+        }
+
+        @Override
+        public final Builder macAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder macAlgorithm(MacAlgorithmSpec macAlgorithm) {
+            this.macAlgorithm(macAlgorithm == null ? null : macAlgorithm.toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GenerateMacRequest build() {
+            return new GenerateMacRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateMacResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateMacResponse.java
new file mode 100644
index 0000000..9079d59
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateMacResponse.java
@@ -0,0 +1,347 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateMacResponse extends KmsResponse implements
+        ToCopyableBuilder<GenerateMacResponse.Builder, GenerateMacResponse> {
+    private static final SdkField<SdkBytes> MAC_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("Mac")
+            .getter(getter(GenerateMacResponse::mac)).setter(setter(Builder::mac))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Mac").build()).build();
+
+    private static final SdkField<String> MAC_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MacAlgorithm").getter(getter(GenerateMacResponse::macAlgorithmAsString))
+            .setter(setter(Builder::macAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MacAlgorithm").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GenerateMacResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(MAC_FIELD,
+            MAC_ALGORITHM_FIELD, KEY_ID_FIELD));
+
+    private final SdkBytes mac;
+
+    private final String macAlgorithm;
+
+    private final String keyId;
+
+    private GenerateMacResponse(BuilderImpl builder) {
+        super(builder);
+        this.mac = builder.mac;
+        this.macAlgorithm = builder.macAlgorithm;
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and
+     * MAC algorithm.
+     * </p>
+     * <p>
+     * This is the standard, raw HMAC defined in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
+     * </p>
+     * 
+     * @return The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS
+     *         key, and MAC algorithm.</p>
+     *         <p>
+     *         This is the standard, raw HMAC defined in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC
+     *         2104</a>.
+     */
+    public final SdkBytes mac() {
+        return mac;
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm that was used to generate the HMAC.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm that was used to generate the HMAC.
+     * @see MacAlgorithmSpec
+     */
+    public final MacAlgorithmSpec macAlgorithm() {
+        return MacAlgorithmSpec.fromValue(macAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm that was used to generate the HMAC.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm that was used to generate the HMAC.
+     * @see MacAlgorithmSpec
+     */
+    public final String macAlgorithmAsString() {
+        return macAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The HMAC KMS key used in the operation.
+     * </p>
+     * 
+     * @return The HMAC KMS key used in the operation.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(mac());
+        hashCode = 31 * hashCode + Objects.hashCode(macAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateMacResponse)) {
+            return false;
+        }
+        GenerateMacResponse other = (GenerateMacResponse) obj;
+        return Objects.equals(mac(), other.mac()) && Objects.equals(macAlgorithmAsString(), other.macAlgorithmAsString())
+                && Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateMacResponse").add("Mac", mac()).add("MacAlgorithm", macAlgorithmAsString())
+                .add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Mac":
+            return Optional.ofNullable(clazz.cast(mac()));
+        case "MacAlgorithm":
+            return Optional.ofNullable(clazz.cast(macAlgorithmAsString()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateMacResponse, T> g) {
+        return obj -> g.apply((GenerateMacResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GenerateMacResponse> {
+        /**
+         * <p>
+         * The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key,
+         * and MAC algorithm.
+         * </p>
+         * <p>
+         * This is the standard, raw HMAC defined in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC
+         * 2104</a>.
+         * </p>
+         * 
+         * @param mac
+         *        The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC
+         *        KMS key, and MAC algorithm.</p>
+         *        <p>
+         *        This is the standard, raw HMAC defined in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC
+         *        2104</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder mac(SdkBytes mac);
+
+        /**
+         * <p>
+         * The MAC algorithm that was used to generate the HMAC.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm that was used to generate the HMAC.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(String macAlgorithm);
+
+        /**
+         * <p>
+         * The MAC algorithm that was used to generate the HMAC.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm that was used to generate the HMAC.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(MacAlgorithmSpec macAlgorithm);
+
+        /**
+         * <p>
+         * The HMAC KMS key used in the operation.
+         * </p>
+         * 
+         * @param keyId
+         *        The HMAC KMS key used in the operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes mac;
+
+        private String macAlgorithm;
+
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateMacResponse model) {
+            super(model);
+            mac(model.mac);
+            macAlgorithm(model.macAlgorithm);
+            keyId(model.keyId);
+        }
+
+        public final ByteBuffer getMac() {
+            return mac == null ? null : mac.asByteBuffer();
+        }
+
+        public final void setMac(ByteBuffer mac) {
+            mac(mac == null ? null : SdkBytes.fromByteBuffer(mac));
+        }
+
+        @Override
+        public final Builder mac(SdkBytes mac) {
+            this.mac = mac;
+            return this;
+        }
+
+        public final String getMacAlgorithm() {
+            return macAlgorithm;
+        }
+
+        public final void setMacAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+        }
+
+        @Override
+        public final Builder macAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder macAlgorithm(MacAlgorithmSpec macAlgorithm) {
+            this.macAlgorithm(macAlgorithm == null ? null : macAlgorithm.toString());
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public GenerateMacResponse build() {
+            return new GenerateMacResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateRandomRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateRandomRequest.java
new file mode 100644
index 0000000..27c6d4f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateRandomRequest.java
@@ -0,0 +1,443 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateRandomRequest extends KmsRequest implements
+        ToCopyableBuilder<GenerateRandomRequest.Builder, GenerateRandomRequest> {
+    private static final SdkField<Integer> NUMBER_OF_BYTES_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER)
+            .memberName("NumberOfBytes").getter(getter(GenerateRandomRequest::numberOfBytes))
+            .setter(setter(Builder::numberOfBytes))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NumberOfBytes").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(GenerateRandomRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final SdkField<RecipientInfo> RECIPIENT_FIELD = SdkField.<RecipientInfo> builder(MarshallingType.SDK_POJO)
+            .memberName("Recipient").getter(getter(GenerateRandomRequest::recipient)).setter(setter(Builder::recipient))
+            .constructor(RecipientInfo::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Recipient").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(NUMBER_OF_BYTES_FIELD,
+            CUSTOM_KEY_STORE_ID_FIELD, RECIPIENT_FIELD));
+
+    private final Integer numberOfBytes;
+
+    private final String customKeyStoreId;
+
+    private final RecipientInfo recipient;
+
+    private GenerateRandomRequest(BuilderImpl builder) {
+        super(builder);
+        this.numberOfBytes = builder.numberOfBytes;
+        this.customKeyStoreId = builder.customKeyStoreId;
+        this.recipient = builder.recipient;
+    }
+
+    /**
+     * <p>
+     * The length of the random byte string. This parameter is required.
+     * </p>
+     * 
+     * @return The length of the random byte string. This parameter is required.
+     */
+    public final Integer numberOfBytes() {
+        return numberOfBytes;
+    }
+
+    /**
+     * <p>
+     * Generates the random byte string in the CloudHSM cluster that is associated with the specified CloudHSM key
+     * store. To find the ID of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * <p>
+     * External key store IDs are not valid for this parameter. If you specify the ID of an external key store,
+     * <code>GenerateRandom</code> throws an <code>UnsupportedOperationException</code>.
+     * </p>
+     * 
+     * @return Generates the random byte string in the CloudHSM cluster that is associated with the specified CloudHSM
+     *         key store. To find the ID of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.</p>
+     *         <p>
+     *         External key store IDs are not valid for this parameter. If you specify the ID of an external key store,
+     *         <code>GenerateRandom</code> throws an <code>UnsupportedOperationException</code>.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * A signed <a
+     * href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">attestation
+     * document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's
+     * public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     * </p>
+     * <p>
+     * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+     * parameter, use the <a
+     * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+     * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     * </p>
+     * <p>
+     * When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under the
+     * public key in the attestation document, and returns the resulting ciphertext in the
+     * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the private
+     * key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+     * </p>
+     * <p>
+     * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return A signed <a
+     *         href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc"
+     *         >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use
+     *         with the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+     *         </p>
+     *         <p>
+     *         This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+     *         this parameter, use the <a
+     *         href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+     *         Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+     *         </p>
+     *         <p>
+     *         When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under
+     *         the public key in the attestation document, and returns the resulting ciphertext in the
+     *         <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+     *         private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+     *         </p>
+     *         <p>
+     *         For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final RecipientInfo recipient() {
+        return recipient;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(numberOfBytes());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        hashCode = 31 * hashCode + Objects.hashCode(recipient());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateRandomRequest)) {
+            return false;
+        }
+        GenerateRandomRequest other = (GenerateRandomRequest) obj;
+        return Objects.equals(numberOfBytes(), other.numberOfBytes())
+                && Objects.equals(customKeyStoreId(), other.customKeyStoreId()) && Objects.equals(recipient(), other.recipient());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateRandomRequest").add("NumberOfBytes", numberOfBytes())
+                .add("CustomKeyStoreId", customKeyStoreId()).add("Recipient", recipient()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "NumberOfBytes":
+            return Optional.ofNullable(clazz.cast(numberOfBytes()));
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        case "Recipient":
+            return Optional.ofNullable(clazz.cast(recipient()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateRandomRequest, T> g) {
+        return obj -> g.apply((GenerateRandomRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GenerateRandomRequest> {
+        /**
+         * <p>
+         * The length of the random byte string. This parameter is required.
+         * </p>
+         * 
+         * @param numberOfBytes
+         *        The length of the random byte string. This parameter is required.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder numberOfBytes(Integer numberOfBytes);
+
+        /**
+         * <p>
+         * Generates the random byte string in the CloudHSM cluster that is associated with the specified CloudHSM key
+         * store. To find the ID of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+         * </p>
+         * <p>
+         * External key store IDs are not valid for this parameter. If you specify the ID of an external key store,
+         * <code>GenerateRandom</code> throws an <code>UnsupportedOperationException</code>.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Generates the random byte string in the CloudHSM cluster that is associated with the specified
+         *        CloudHSM key store. To find the ID of a custom key store, use the <a>DescribeCustomKeyStores</a>
+         *        operation.</p>
+         *        <p>
+         *        External key store IDs are not valid for this parameter. If you specify the ID of an external key
+         *        store, <code>GenerateRandom</code> throws an <code>UnsupportedOperationException</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        /**
+         * <p>
+         * A signed <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">
+         * attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under the
+         * public key in the attestation document, and returns the resulting ciphertext in the
+         * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+         * private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param recipient
+         *        A signed <a
+         *        href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc"
+         *        >attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to
+         *        use with the enclave's public key. The only valid encryption algorithm is
+         *        <code>RSAES_OAEP_SHA_256</code>. </p>
+         *        <p>
+         *        This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include
+         *        this parameter, use the <a
+         *        href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web
+         *        Services Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         *        </p>
+         *        <p>
+         *        When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes
+         *        under the public key in the attestation document, and returns the resulting ciphertext in the
+         *        <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with
+         *        the private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+         *        </p>
+         *        <p>
+         *        For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder recipient(RecipientInfo recipient);
+
+        /**
+         * <p>
+         * A signed <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc">
+         * attestation document</a> from an Amazon Web Services Nitro enclave and the encryption algorithm to use with
+         * the enclave's public key. The only valid encryption algorithm is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * <p>
+         * This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this
+         * parameter, use the <a
+         * href="https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk">Amazon Web Services
+         * Nitro Enclaves SDK</a> or any Amazon Web Services SDK.
+         * </p>
+         * <p>
+         * When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under the
+         * public key in the attestation document, and returns the resulting ciphertext in the
+         * <code>CiphertextForRecipient</code> field in the response. This ciphertext can be decrypted only with the
+         * private key in the enclave. The <code>Plaintext</code> field in the response is null or empty.
+         * </p>
+         * <p>
+         * For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link RecipientInfo.Builder} avoiding the need
+         * to create one manually via {@link RecipientInfo#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link RecipientInfo.Builder#build()} is called immediately and its
+         * result is passed to {@link #recipient(RecipientInfo)}.
+         * 
+         * @param recipient
+         *        a consumer that will call methods on {@link RecipientInfo.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #recipient(RecipientInfo)
+         */
+        default Builder recipient(Consumer<RecipientInfo.Builder> recipient) {
+            return recipient(RecipientInfo.builder().applyMutation(recipient).build());
+        }
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private Integer numberOfBytes;
+
+        private String customKeyStoreId;
+
+        private RecipientInfo recipient;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateRandomRequest model) {
+            super(model);
+            numberOfBytes(model.numberOfBytes);
+            customKeyStoreId(model.customKeyStoreId);
+            recipient(model.recipient);
+        }
+
+        public final Integer getNumberOfBytes() {
+            return numberOfBytes;
+        }
+
+        public final void setNumberOfBytes(Integer numberOfBytes) {
+            this.numberOfBytes = numberOfBytes;
+        }
+
+        @Override
+        public final Builder numberOfBytes(Integer numberOfBytes) {
+            this.numberOfBytes = numberOfBytes;
+            return this;
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        public final RecipientInfo.Builder getRecipient() {
+            return recipient != null ? recipient.toBuilder() : null;
+        }
+
+        public final void setRecipient(RecipientInfo.BuilderImpl recipient) {
+            this.recipient = recipient != null ? recipient.build() : null;
+        }
+
+        @Override
+        public final Builder recipient(RecipientInfo recipient) {
+            this.recipient = recipient;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GenerateRandomRequest build() {
+            return new GenerateRandomRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateRandomResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateRandomResponse.java
new file mode 100644
index 0000000..93b4d7f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GenerateRandomResponse.java
@@ -0,0 +1,287 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GenerateRandomResponse extends KmsResponse implements
+        ToCopyableBuilder<GenerateRandomResponse.Builder, GenerateRandomResponse> {
+    private static final SdkField<SdkBytes> PLAINTEXT_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Plaintext").getter(getter(GenerateRandomResponse::plaintext)).setter(setter(Builder::plaintext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Plaintext").build()).build();
+
+    private static final SdkField<SdkBytes> CIPHERTEXT_FOR_RECIPIENT_FIELD = SdkField
+            .<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("CiphertextForRecipient")
+            .getter(getter(GenerateRandomResponse::ciphertextForRecipient)).setter(setter(Builder::ciphertextForRecipient))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextForRecipient").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(PLAINTEXT_FIELD,
+            CIPHERTEXT_FOR_RECIPIENT_FIELD));
+
+    private final SdkBytes plaintext;
+
+    private final SdkBytes ciphertextForRecipient;
+
+    private GenerateRandomResponse(BuilderImpl builder) {
+        super(builder);
+        this.plaintext = builder.plaintext;
+        this.ciphertextForRecipient = builder.ciphertextForRecipient;
+    }
+
+    /**
+     * <p>
+     * The random byte string. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+     * Otherwise, it is not Base64-encoded.
+     * </p>
+     * <p>
+     * If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field is null
+     * or empty.
+     * </p>
+     * 
+     * @return The random byte string. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.</p>
+     *         <p>
+     *         If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field
+     *         is null or empty.
+     */
+    public final SdkBytes plaintext() {
+        return plaintext;
+    }
+
+    /**
+     * <p>
+     * The plaintext random bytes encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted
+     * only by using a private key in the Nitro enclave.
+     * </p>
+     * <p>
+     * This field is included in the response only when the <code>Recipient</code> parameter in the request includes a
+     * valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+     * between KMS and Amazon Web Services Nitro Enclaves, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services
+     * Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return The plaintext random bytes encrypted with the public key from the Nitro enclave. This ciphertext can be
+     *         decrypted only by using a private key in the Nitro enclave. </p>
+     *         <p>
+     *         This field is included in the response only when the <code>Recipient</code> parameter in the request
+     *         includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+     *         the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+     *         Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final SdkBytes ciphertextForRecipient() {
+        return ciphertextForRecipient;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(plaintext());
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextForRecipient());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GenerateRandomResponse)) {
+            return false;
+        }
+        GenerateRandomResponse other = (GenerateRandomResponse) obj;
+        return Objects.equals(plaintext(), other.plaintext())
+                && Objects.equals(ciphertextForRecipient(), other.ciphertextForRecipient());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GenerateRandomResponse")
+                .add("Plaintext", plaintext() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("CiphertextForRecipient", ciphertextForRecipient()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Plaintext":
+            return Optional.ofNullable(clazz.cast(plaintext()));
+        case "CiphertextForRecipient":
+            return Optional.ofNullable(clazz.cast(ciphertextForRecipient()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GenerateRandomResponse, T> g) {
+        return obj -> g.apply((GenerateRandomResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GenerateRandomResponse> {
+        /**
+         * <p>
+         * The random byte string. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         * Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * <p>
+         * If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code> field is
+         * null or empty.
+         * </p>
+         * 
+         * @param plaintext
+         *        The random byte string. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.</p>
+         *        <p>
+         *        If the response includes the <code>CiphertextForRecipient</code> field, the <code>Plaintext</code>
+         *        field is null or empty.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder plaintext(SdkBytes plaintext);
+
+        /**
+         * <p>
+         * The plaintext random bytes encrypted with the public key from the Nitro enclave. This ciphertext can be
+         * decrypted only by using a private key in the Nitro enclave.
+         * </p>
+         * <p>
+         * This field is included in the response only when the <code>Recipient</code> parameter in the request includes
+         * a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
+         * between KMS and Amazon Web Services Nitro Enclaves, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+         * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param ciphertextForRecipient
+         *        The plaintext random bytes encrypted with the public key from the Nitro enclave. This ciphertext can
+         *        be decrypted only by using a private key in the Nitro enclave. </p>
+         *        <p>
+         *        This field is included in the response only when the <code>Recipient</code> parameter in the request
+         *        includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
+         *        the interaction between KMS and Amazon Web Services Nitro Enclaves, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon
+         *        Web Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes plaintext;
+
+        private SdkBytes ciphertextForRecipient;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GenerateRandomResponse model) {
+            super(model);
+            plaintext(model.plaintext);
+            ciphertextForRecipient(model.ciphertextForRecipient);
+        }
+
+        public final ByteBuffer getPlaintext() {
+            return plaintext == null ? null : plaintext.asByteBuffer();
+        }
+
+        public final void setPlaintext(ByteBuffer plaintext) {
+            plaintext(plaintext == null ? null : SdkBytes.fromByteBuffer(plaintext));
+        }
+
+        @Override
+        public final Builder plaintext(SdkBytes plaintext) {
+            this.plaintext = plaintext;
+            return this;
+        }
+
+        public final ByteBuffer getCiphertextForRecipient() {
+            return ciphertextForRecipient == null ? null : ciphertextForRecipient.asByteBuffer();
+        }
+
+        public final void setCiphertextForRecipient(ByteBuffer ciphertextForRecipient) {
+            ciphertextForRecipient(ciphertextForRecipient == null ? null : SdkBytes.fromByteBuffer(ciphertextForRecipient));
+        }
+
+        @Override
+        public final Builder ciphertextForRecipient(SdkBytes ciphertextForRecipient) {
+            this.ciphertextForRecipient = ciphertextForRecipient;
+            return this;
+        }
+
+        @Override
+        public GenerateRandomResponse build() {
+            return new GenerateRandomResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyPolicyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyPolicyRequest.java
new file mode 100644
index 0000000..ff868f3
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyPolicyRequest.java
@@ -0,0 +1,338 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetKeyPolicyRequest extends KmsRequest implements
+        ToCopyableBuilder<GetKeyPolicyRequest.Builder, GetKeyPolicyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GetKeyPolicyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> POLICY_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("PolicyName").getter(getter(GetKeyPolicyRequest::policyName)).setter(setter(Builder::policyName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PolicyName").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            POLICY_NAME_FIELD));
+
+    private final String keyId;
+
+    private final String policyName;
+
+    private GetKeyPolicyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.policyName = builder.policyName;
+    }
+
+    /**
+     * <p>
+     * Gets the key policy for the specified KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Gets the key policy for the specified KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Specifies the name of the key policy. The only valid name is <code>default</code>. To get the names of key
+     * policies, use <a>ListKeyPolicies</a>.
+     * </p>
+     * 
+     * @return Specifies the name of the key policy. The only valid name is <code>default</code>. To get the names of
+     *         key policies, use <a>ListKeyPolicies</a>.
+     */
+    public final String policyName() {
+        return policyName;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(policyName());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetKeyPolicyRequest)) {
+            return false;
+        }
+        GetKeyPolicyRequest other = (GetKeyPolicyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(policyName(), other.policyName());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetKeyPolicyRequest").add("KeyId", keyId()).add("PolicyName", policyName()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "PolicyName":
+            return Optional.ofNullable(clazz.cast(policyName()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetKeyPolicyRequest, T> g) {
+        return obj -> g.apply((GetKeyPolicyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GetKeyPolicyRequest> {
+        /**
+         * <p>
+         * Gets the key policy for the specified KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Gets the key policy for the specified KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Specifies the name of the key policy. The only valid name is <code>default</code>. To get the names of key
+         * policies, use <a>ListKeyPolicies</a>.
+         * </p>
+         * 
+         * @param policyName
+         *        Specifies the name of the key policy. The only valid name is <code>default</code>. To get the names of
+         *        key policies, use <a>ListKeyPolicies</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policyName(String policyName);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String policyName;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetKeyPolicyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            policyName(model.policyName);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getPolicyName() {
+            return policyName;
+        }
+
+        public final void setPolicyName(String policyName) {
+            this.policyName = policyName;
+        }
+
+        @Override
+        public final Builder policyName(String policyName) {
+            this.policyName = policyName;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GetKeyPolicyRequest build() {
+            return new GetKeyPolicyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyPolicyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyPolicyResponse.java
new file mode 100644
index 0000000..3221ce5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyPolicyResponse.java
@@ -0,0 +1,182 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetKeyPolicyResponse extends KmsResponse implements
+        ToCopyableBuilder<GetKeyPolicyResponse.Builder, GetKeyPolicyResponse> {
+    private static final SdkField<String> POLICY_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Policy")
+            .getter(getter(GetKeyPolicyResponse::policy)).setter(setter(Builder::policy))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Policy").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(POLICY_FIELD));
+
+    private final String policy;
+
+    private GetKeyPolicyResponse(BuilderImpl builder) {
+        super(builder);
+        this.policy = builder.policy;
+    }
+
+    /**
+     * <p>
+     * A key policy document in JSON format.
+     * </p>
+     * 
+     * @return A key policy document in JSON format.
+     */
+    public final String policy() {
+        return policy;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(policy());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetKeyPolicyResponse)) {
+            return false;
+        }
+        GetKeyPolicyResponse other = (GetKeyPolicyResponse) obj;
+        return Objects.equals(policy(), other.policy());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetKeyPolicyResponse").add("Policy", policy()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Policy":
+            return Optional.ofNullable(clazz.cast(policy()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetKeyPolicyResponse, T> g) {
+        return obj -> g.apply((GetKeyPolicyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GetKeyPolicyResponse> {
+        /**
+         * <p>
+         * A key policy document in JSON format.
+         * </p>
+         * 
+         * @param policy
+         *        A key policy document in JSON format.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policy(String policy);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String policy;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetKeyPolicyResponse model) {
+            super(model);
+            policy(model.policy);
+        }
+
+        public final String getPolicy() {
+            return policy;
+        }
+
+        public final void setPolicy(String policy) {
+            this.policy = policy;
+        }
+
+        @Override
+        public final Builder policy(String policy) {
+            this.policy = policy;
+            return this;
+        }
+
+        @Override
+        public GetKeyPolicyResponse build() {
+            return new GetKeyPolicyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyRotationStatusRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyRotationStatusRequest.java
new file mode 100644
index 0000000..873f360
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyRotationStatusRequest.java
@@ -0,0 +1,288 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetKeyRotationStatusRequest extends KmsRequest implements
+        ToCopyableBuilder<GetKeyRotationStatusRequest.Builder, GetKeyRotationStatusRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GetKeyRotationStatusRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD));
+
+    private final String keyId;
+
+    private GetKeyRotationStatusRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+    }
+
+    /**
+     * <p>
+     * Gets the rotation status for the specified KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account,
+     * you must use the key ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Gets the rotation status for the specified KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+     *         account, you must use the key ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetKeyRotationStatusRequest)) {
+            return false;
+        }
+        GetKeyRotationStatusRequest other = (GetKeyRotationStatusRequest) obj;
+        return Objects.equals(keyId(), other.keyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetKeyRotationStatusRequest").add("KeyId", keyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetKeyRotationStatusRequest, T> g) {
+        return obj -> g.apply((GetKeyRotationStatusRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GetKeyRotationStatusRequest> {
+        /**
+         * <p>
+         * Gets the rotation status for the specified KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         * account, you must use the key ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Gets the rotation status for the specified KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         *        account, you must use the key ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetKeyRotationStatusRequest model) {
+            super(model);
+            keyId(model.keyId);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GetKeyRotationStatusRequest build() {
+            return new GetKeyRotationStatusRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyRotationStatusResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyRotationStatusResponse.java
new file mode 100644
index 0000000..2213573
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetKeyRotationStatusResponse.java
@@ -0,0 +1,184 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetKeyRotationStatusResponse extends KmsResponse implements
+        ToCopyableBuilder<GetKeyRotationStatusResponse.Builder, GetKeyRotationStatusResponse> {
+    private static final SdkField<Boolean> KEY_ROTATION_ENABLED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("KeyRotationEnabled").getter(getter(GetKeyRotationStatusResponse::keyRotationEnabled))
+            .setter(setter(Builder::keyRotationEnabled))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyRotationEnabled").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ROTATION_ENABLED_FIELD));
+
+    private final Boolean keyRotationEnabled;
+
+    private GetKeyRotationStatusResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyRotationEnabled = builder.keyRotationEnabled;
+    }
+
+    /**
+     * <p>
+     * A Boolean value that specifies whether key rotation is enabled.
+     * </p>
+     * 
+     * @return A Boolean value that specifies whether key rotation is enabled.
+     */
+    public final Boolean keyRotationEnabled() {
+        return keyRotationEnabled;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyRotationEnabled());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetKeyRotationStatusResponse)) {
+            return false;
+        }
+        GetKeyRotationStatusResponse other = (GetKeyRotationStatusResponse) obj;
+        return Objects.equals(keyRotationEnabled(), other.keyRotationEnabled());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetKeyRotationStatusResponse").add("KeyRotationEnabled", keyRotationEnabled()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyRotationEnabled":
+            return Optional.ofNullable(clazz.cast(keyRotationEnabled()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetKeyRotationStatusResponse, T> g) {
+        return obj -> g.apply((GetKeyRotationStatusResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GetKeyRotationStatusResponse> {
+        /**
+         * <p>
+         * A Boolean value that specifies whether key rotation is enabled.
+         * </p>
+         * 
+         * @param keyRotationEnabled
+         *        A Boolean value that specifies whether key rotation is enabled.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyRotationEnabled(Boolean keyRotationEnabled);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private Boolean keyRotationEnabled;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetKeyRotationStatusResponse model) {
+            super(model);
+            keyRotationEnabled(model.keyRotationEnabled);
+        }
+
+        public final Boolean getKeyRotationEnabled() {
+            return keyRotationEnabled;
+        }
+
+        public final void setKeyRotationEnabled(Boolean keyRotationEnabled) {
+            this.keyRotationEnabled = keyRotationEnabled;
+        }
+
+        @Override
+        public final Builder keyRotationEnabled(Boolean keyRotationEnabled) {
+            this.keyRotationEnabled = keyRotationEnabled;
+            return this;
+        }
+
+        @Override
+        public GetKeyRotationStatusResponse build() {
+            return new GetKeyRotationStatusResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetParametersForImportRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetParametersForImportRequest.java
new file mode 100644
index 0000000..f47c1a1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetParametersForImportRequest.java
@@ -0,0 +1,942 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetParametersForImportRequest extends KmsRequest implements
+        ToCopyableBuilder<GetParametersForImportRequest.Builder, GetParametersForImportRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GetParametersForImportRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> WRAPPING_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("WrappingAlgorithm").getter(getter(GetParametersForImportRequest::wrappingAlgorithmAsString))
+            .setter(setter(Builder::wrappingAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("WrappingAlgorithm").build()).build();
+
+    private static final SdkField<String> WRAPPING_KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("WrappingKeySpec").getter(getter(GetParametersForImportRequest::wrappingKeySpecAsString))
+            .setter(setter(Builder::wrappingKeySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("WrappingKeySpec").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            WRAPPING_ALGORITHM_FIELD, WRAPPING_KEY_SPEC_FIELD));
+
+    private final String keyId;
+
+    private final String wrappingAlgorithm;
+
+    private final String wrappingKeySpec;
+
+    private GetParametersForImportRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.wrappingAlgorithm = builder.wrappingAlgorithm;
+        this.wrappingKeySpec = builder.wrappingKeySpec;
+    }
+
+    /**
+     * <p>
+     * The identifier of the KMS key that will be associated with the imported key material. The <code>Origin</code> of
+     * the KMS key must be <code>EXTERNAL</code>.
+     * </p>
+     * <p>
+     * All KMS key types are supported, including multi-Region keys. However, you cannot import key material into a KMS
+     * key in a custom key store.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return The identifier of the KMS key that will be associated with the imported key material. The
+     *         <code>Origin</code> of the KMS key must be <code>EXTERNAL</code>.</p>
+     *         <p>
+     *         All KMS key types are supported, including multi-Region keys. However, you cannot import key material
+     *         into a KMS key in a custom key store.
+     *         </p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect your key
+     * material during import. For more information, see <a
+     * href="kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm">Select a
+     * wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then encrypt
+     * your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key material
+     * directly with the RSA public key from KMS.
+     * </p>
+     * <p>
+     * The wrapping algorithms that you can use depend on the type of key material that you are importing. To import an
+     * RSA private key, you must use an RSA_AES wrapping algorithm.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private key).
+     * </p>
+     * <p>
+     * You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+     * ECC_NIST_P521 key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private key).
+     * </p>
+     * <p>
+     * You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521
+     * key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5 wrapping
+     * algorithm.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #wrappingAlgorithm}
+     * will return {@link AlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #wrappingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect
+     *         your key material during import. For more information, see <a
+     *         href="kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm"
+     *         >Select a wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.</p>
+     *         <p>
+     *         For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then
+     *         encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your
+     *         key material directly with the RSA public key from KMS.
+     *         </p>
+     *         <p>
+     *         The wrapping algorithms that you can use depend on the type of key material that you are importing. To
+     *         import an RSA private key, you must use an RSA_AES wrapping algorithm.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private
+     *         key).
+     *         </p>
+     *         <p>
+     *         You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+     *         ECC_NIST_P521 key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private key).
+     *         </p>
+     *         <p>
+     *         You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+     *         ECC_NIST_P521 key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5
+     *         wrapping algorithm.
+     *         </p>
+     *         </li>
+     * @see AlgorithmSpec
+     */
+    public final AlgorithmSpec wrappingAlgorithm() {
+        return AlgorithmSpec.fromValue(wrappingAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect your key
+     * material during import. For more information, see <a
+     * href="kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm">Select a
+     * wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then encrypt
+     * your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key material
+     * directly with the RSA public key from KMS.
+     * </p>
+     * <p>
+     * The wrapping algorithms that you can use depend on the type of key material that you are importing. To import an
+     * RSA private key, you must use an RSA_AES wrapping algorithm.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private key).
+     * </p>
+     * <p>
+     * You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+     * ECC_NIST_P521 key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private key).
+     * </p>
+     * <p>
+     * You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521
+     * key material.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5 wrapping
+     * algorithm.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #wrappingAlgorithm}
+     * will return {@link AlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #wrappingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect
+     *         your key material during import. For more information, see <a
+     *         href="kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm"
+     *         >Select a wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.</p>
+     *         <p>
+     *         For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then
+     *         encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your
+     *         key material directly with the RSA public key from KMS.
+     *         </p>
+     *         <p>
+     *         The wrapping algorithms that you can use depend on the type of key material that you are importing. To
+     *         import an RSA private key, you must use an RSA_AES wrapping algorithm.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private
+     *         key).
+     *         </p>
+     *         <p>
+     *         You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+     *         ECC_NIST_P521 key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private key).
+     *         </p>
+     *         <p>
+     *         You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+     *         ECC_NIST_P521 key material.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5
+     *         wrapping algorithm.
+     *         </p>
+     *         </li>
+     * @see AlgorithmSpec
+     */
+    public final String wrappingAlgorithmAsString() {
+        return wrappingAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The type of RSA public key to return in the response. You will use this wrapping key with the specified wrapping
+     * algorithm to protect your key material during import.
+     * </p>
+     * <p>
+     * Use the longest RSA wrapping key that is practical.
+     * </p>
+     * <p>
+     * You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an RSA_AES
+     * wrapping algorithm or choose a longer RSA public key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #wrappingKeySpec}
+     * will return {@link WrappingKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available
+     * from {@link #wrappingKeySpecAsString}.
+     * </p>
+     * 
+     * @return The type of RSA public key to return in the response. You will use this wrapping key with the specified
+     *         wrapping algorithm to protect your key material during import. </p>
+     *         <p>
+     *         Use the longest RSA wrapping key that is practical.
+     *         </p>
+     *         <p>
+     *         You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an
+     *         RSA_AES wrapping algorithm or choose a longer RSA public key.
+     * @see WrappingKeySpec
+     */
+    public final WrappingKeySpec wrappingKeySpec() {
+        return WrappingKeySpec.fromValue(wrappingKeySpec);
+    }
+
+    /**
+     * <p>
+     * The type of RSA public key to return in the response. You will use this wrapping key with the specified wrapping
+     * algorithm to protect your key material during import.
+     * </p>
+     * <p>
+     * Use the longest RSA wrapping key that is practical.
+     * </p>
+     * <p>
+     * You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an RSA_AES
+     * wrapping algorithm or choose a longer RSA public key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #wrappingKeySpec}
+     * will return {@link WrappingKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available
+     * from {@link #wrappingKeySpecAsString}.
+     * </p>
+     * 
+     * @return The type of RSA public key to return in the response. You will use this wrapping key with the specified
+     *         wrapping algorithm to protect your key material during import. </p>
+     *         <p>
+     *         Use the longest RSA wrapping key that is practical.
+     *         </p>
+     *         <p>
+     *         You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an
+     *         RSA_AES wrapping algorithm or choose a longer RSA public key.
+     * @see WrappingKeySpec
+     */
+    public final String wrappingKeySpecAsString() {
+        return wrappingKeySpec;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(wrappingAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(wrappingKeySpecAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetParametersForImportRequest)) {
+            return false;
+        }
+        GetParametersForImportRequest other = (GetParametersForImportRequest) obj;
+        return Objects.equals(keyId(), other.keyId())
+                && Objects.equals(wrappingAlgorithmAsString(), other.wrappingAlgorithmAsString())
+                && Objects.equals(wrappingKeySpecAsString(), other.wrappingKeySpecAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetParametersForImportRequest").add("KeyId", keyId())
+                .add("WrappingAlgorithm", wrappingAlgorithmAsString()).add("WrappingKeySpec", wrappingKeySpecAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "WrappingAlgorithm":
+            return Optional.ofNullable(clazz.cast(wrappingAlgorithmAsString()));
+        case "WrappingKeySpec":
+            return Optional.ofNullable(clazz.cast(wrappingKeySpecAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetParametersForImportRequest, T> g) {
+        return obj -> g.apply((GetParametersForImportRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GetParametersForImportRequest> {
+        /**
+         * <p>
+         * The identifier of the KMS key that will be associated with the imported key material. The <code>Origin</code>
+         * of the KMS key must be <code>EXTERNAL</code>.
+         * </p>
+         * <p>
+         * All KMS key types are supported, including multi-Region keys. However, you cannot import key material into a
+         * KMS key in a custom key store.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        The identifier of the KMS key that will be associated with the imported key material. The
+         *        <code>Origin</code> of the KMS key must be <code>EXTERNAL</code>.</p>
+         *        <p>
+         *        All KMS key types are supported, including multi-Region keys. However, you cannot import key material
+         *        into a KMS key in a custom key store.
+         *        </p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect your
+         * key material during import. For more information, see <a
+         * href="kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm"
+         * >Select a wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then
+         * encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key
+         * material directly with the RSA public key from KMS.
+         * </p>
+         * <p>
+         * The wrapping algorithms that you can use depend on the type of key material that you are importing. To import
+         * an RSA private key, you must use an RSA_AES wrapping algorithm.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private key).
+         * </p>
+         * <p>
+         * You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         * ECC_NIST_P521 key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private key).
+         * </p>
+         * <p>
+         * You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         * ECC_NIST_P521 key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5
+         * wrapping algorithm.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param wrappingAlgorithm
+         *        The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect
+         *        your key material during import. For more information, see <a href=
+         *        "kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm"
+         *        >Select a wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.</p>
+         *        <p>
+         *        For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then
+         *        encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your
+         *        key material directly with the RSA public key from KMS.
+         *        </p>
+         *        <p>
+         *        The wrapping algorithms that you can use depend on the type of key material that you are importing. To
+         *        import an RSA private key, you must use an RSA_AES wrapping algorithm.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private
+         *        key).
+         *        </p>
+         *        <p>
+         *        You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         *        ECC_NIST_P521 key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private
+         *        key).
+         *        </p>
+         *        <p>
+         *        You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         *        ECC_NIST_P521 key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the
+         *        RSAES_PKCS1_V1_5 wrapping algorithm.
+         *        </p>
+         *        </li>
+         * @see AlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see AlgorithmSpec
+         */
+        Builder wrappingAlgorithm(String wrappingAlgorithm);
+
+        /**
+         * <p>
+         * The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect your
+         * key material during import. For more information, see <a
+         * href="kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm"
+         * >Select a wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then
+         * encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key
+         * material directly with the RSA public key from KMS.
+         * </p>
+         * <p>
+         * The wrapping algorithms that you can use depend on the type of key material that you are importing. To import
+         * an RSA private key, you must use an RSA_AES wrapping algorithm.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private key).
+         * </p>
+         * <p>
+         * You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         * ECC_NIST_P521 key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private key).
+         * </p>
+         * <p>
+         * You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         * ECC_NIST_P521 key material.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5
+         * wrapping algorithm.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param wrappingAlgorithm
+         *        The algorithm you will use with the RSA public key (<code>PublicKey</code>) in the response to protect
+         *        your key material during import. For more information, see <a href=
+         *        "kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm"
+         *        >Select a wrapping algorithm</a> in the <i>Key Management Service Developer Guide</i>.</p>
+         *        <p>
+         *        For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then
+         *        encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your
+         *        key material directly with the RSA public key from KMS.
+         *        </p>
+         *        <p>
+         *        The wrapping algorithms that you can use depend on the type of key material that you are importing. To
+         *        import an RSA private key, you must use an RSA_AES wrapping algorithm.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <b>RSA_AES_KEY_WRAP_SHA_256</b> — Supported for wrapping RSA and ECC key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSA_AES_KEY_WRAP_SHA_1</b> — Supported for wrapping RSA and ECC key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSAES_OAEP_SHA_256</b> — Supported for all types of key material, except RSA key material (private
+         *        key).
+         *        </p>
+         *        <p>
+         *        You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         *        ECC_NIST_P521 key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSAES_OAEP_SHA_1</b> — Supported for all types of key material, except RSA key material (private
+         *        key).
+         *        </p>
+         *        <p>
+         *        You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap
+         *        ECC_NIST_P521 key material.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <b>RSAES_PKCS1_V1_5</b> (Deprecated) — As of October 10, 2023, KMS does not support the
+         *        RSAES_PKCS1_V1_5 wrapping algorithm.
+         *        </p>
+         *        </li>
+         * @see AlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see AlgorithmSpec
+         */
+        Builder wrappingAlgorithm(AlgorithmSpec wrappingAlgorithm);
+
+        /**
+         * <p>
+         * The type of RSA public key to return in the response. You will use this wrapping key with the specified
+         * wrapping algorithm to protect your key material during import.
+         * </p>
+         * <p>
+         * Use the longest RSA wrapping key that is practical.
+         * </p>
+         * <p>
+         * You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an RSA_AES
+         * wrapping algorithm or choose a longer RSA public key.
+         * </p>
+         * 
+         * @param wrappingKeySpec
+         *        The type of RSA public key to return in the response. You will use this wrapping key with the
+         *        specified wrapping algorithm to protect your key material during import. </p>
+         *        <p>
+         *        Use the longest RSA wrapping key that is practical.
+         *        </p>
+         *        <p>
+         *        You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an
+         *        RSA_AES wrapping algorithm or choose a longer RSA public key.
+         * @see WrappingKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see WrappingKeySpec
+         */
+        Builder wrappingKeySpec(String wrappingKeySpec);
+
+        /**
+         * <p>
+         * The type of RSA public key to return in the response. You will use this wrapping key with the specified
+         * wrapping algorithm to protect your key material during import.
+         * </p>
+         * <p>
+         * Use the longest RSA wrapping key that is practical.
+         * </p>
+         * <p>
+         * You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an RSA_AES
+         * wrapping algorithm or choose a longer RSA public key.
+         * </p>
+         * 
+         * @param wrappingKeySpec
+         *        The type of RSA public key to return in the response. You will use this wrapping key with the
+         *        specified wrapping algorithm to protect your key material during import. </p>
+         *        <p>
+         *        Use the longest RSA wrapping key that is practical.
+         *        </p>
+         *        <p>
+         *        You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 private key. Instead, use an
+         *        RSA_AES wrapping algorithm or choose a longer RSA public key.
+         * @see WrappingKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see WrappingKeySpec
+         */
+        Builder wrappingKeySpec(WrappingKeySpec wrappingKeySpec);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String wrappingAlgorithm;
+
+        private String wrappingKeySpec;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetParametersForImportRequest model) {
+            super(model);
+            keyId(model.keyId);
+            wrappingAlgorithm(model.wrappingAlgorithm);
+            wrappingKeySpec(model.wrappingKeySpec);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getWrappingAlgorithm() {
+            return wrappingAlgorithm;
+        }
+
+        public final void setWrappingAlgorithm(String wrappingAlgorithm) {
+            this.wrappingAlgorithm = wrappingAlgorithm;
+        }
+
+        @Override
+        public final Builder wrappingAlgorithm(String wrappingAlgorithm) {
+            this.wrappingAlgorithm = wrappingAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder wrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) {
+            this.wrappingAlgorithm(wrappingAlgorithm == null ? null : wrappingAlgorithm.toString());
+            return this;
+        }
+
+        public final String getWrappingKeySpec() {
+            return wrappingKeySpec;
+        }
+
+        public final void setWrappingKeySpec(String wrappingKeySpec) {
+            this.wrappingKeySpec = wrappingKeySpec;
+        }
+
+        @Override
+        public final Builder wrappingKeySpec(String wrappingKeySpec) {
+            this.wrappingKeySpec = wrappingKeySpec;
+            return this;
+        }
+
+        @Override
+        public final Builder wrappingKeySpec(WrappingKeySpec wrappingKeySpec) {
+            this.wrappingKeySpec(wrappingKeySpec == null ? null : wrappingKeySpec.toString());
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GetParametersForImportRequest build() {
+            return new GetParametersForImportRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetParametersForImportResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetParametersForImportResponse.java
new file mode 100644
index 0000000..d848fc6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetParametersForImportResponse.java
@@ -0,0 +1,359 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetParametersForImportResponse extends KmsResponse implements
+        ToCopyableBuilder<GetParametersForImportResponse.Builder, GetParametersForImportResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GetParametersForImportResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> IMPORT_TOKEN_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("ImportToken").getter(getter(GetParametersForImportResponse::importToken))
+            .setter(setter(Builder::importToken))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ImportToken").build()).build();
+
+    private static final SdkField<SdkBytes> PUBLIC_KEY_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("PublicKey").getter(getter(GetParametersForImportResponse::publicKey)).setter(setter(Builder::publicKey))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PublicKey").build()).build();
+
+    private static final SdkField<Instant> PARAMETERS_VALID_TO_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("ParametersValidTo").getter(getter(GetParametersForImportResponse::parametersValidTo))
+            .setter(setter(Builder::parametersValidTo))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ParametersValidTo").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            IMPORT_TOKEN_FIELD, PUBLIC_KEY_FIELD, PARAMETERS_VALID_TO_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes importToken;
+
+    private final SdkBytes publicKey;
+
+    private final Instant parametersValidTo;
+
+    private GetParametersForImportResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.importToken = builder.importToken;
+        this.publicKey = builder.publicKey;
+        this.parametersValidTo = builder.parametersValidTo;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key to use in a subsequent <a>ImportKeyMaterial</a> request. This is the same KMS key specified in the
+     * <code>GetParametersForImport</code> request.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key to use in a subsequent <a>ImportKeyMaterial</a> request. This is the same KMS key specified
+     *         in the <code>GetParametersForImport</code> request.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The import token to send in a subsequent <a>ImportKeyMaterial</a> request.
+     * </p>
+     * 
+     * @return The import token to send in a subsequent <a>ImportKeyMaterial</a> request.
+     */
+    public final SdkBytes importToken() {
+        return importToken;
+    }
+
+    /**
+     * <p>
+     * The public key to use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>.
+     * </p>
+     * 
+     * @return The public key to use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>.
+     */
+    public final SdkBytes publicKey() {
+        return publicKey;
+    }
+
+    /**
+     * <p>
+     * The time at which the import token and public key are no longer valid. After this time, you cannot use them to
+     * make an <a>ImportKeyMaterial</a> request and you must send another <code>GetParametersForImport</code> request to
+     * get new ones.
+     * </p>
+     * 
+     * @return The time at which the import token and public key are no longer valid. After this time, you cannot use
+     *         them to make an <a>ImportKeyMaterial</a> request and you must send another
+     *         <code>GetParametersForImport</code> request to get new ones.
+     */
+    public final Instant parametersValidTo() {
+        return parametersValidTo;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(importToken());
+        hashCode = 31 * hashCode + Objects.hashCode(publicKey());
+        hashCode = 31 * hashCode + Objects.hashCode(parametersValidTo());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetParametersForImportResponse)) {
+            return false;
+        }
+        GetParametersForImportResponse other = (GetParametersForImportResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(importToken(), other.importToken())
+                && Objects.equals(publicKey(), other.publicKey())
+                && Objects.equals(parametersValidTo(), other.parametersValidTo());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetParametersForImportResponse").add("KeyId", keyId()).add("ImportToken", importToken())
+                .add("PublicKey", publicKey() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("ParametersValidTo", parametersValidTo()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "ImportToken":
+            return Optional.ofNullable(clazz.cast(importToken()));
+        case "PublicKey":
+            return Optional.ofNullable(clazz.cast(publicKey()));
+        case "ParametersValidTo":
+            return Optional.ofNullable(clazz.cast(parametersValidTo()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetParametersForImportResponse, T> g) {
+        return obj -> g.apply((GetParametersForImportResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GetParametersForImportResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key to use in a subsequent <a>ImportKeyMaterial</a> request. This is the same KMS key specified in the
+         * <code>GetParametersForImport</code> request.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key to use in a subsequent <a>ImportKeyMaterial</a> request. This is the same KMS key
+         *        specified in the <code>GetParametersForImport</code> request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The import token to send in a subsequent <a>ImportKeyMaterial</a> request.
+         * </p>
+         * 
+         * @param importToken
+         *        The import token to send in a subsequent <a>ImportKeyMaterial</a> request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder importToken(SdkBytes importToken);
+
+        /**
+         * <p>
+         * The public key to use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>.
+         * </p>
+         * 
+         * @param publicKey
+         *        The public key to use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder publicKey(SdkBytes publicKey);
+
+        /**
+         * <p>
+         * The time at which the import token and public key are no longer valid. After this time, you cannot use them
+         * to make an <a>ImportKeyMaterial</a> request and you must send another <code>GetParametersForImport</code>
+         * request to get new ones.
+         * </p>
+         * 
+         * @param parametersValidTo
+         *        The time at which the import token and public key are no longer valid. After this time, you cannot use
+         *        them to make an <a>ImportKeyMaterial</a> request and you must send another
+         *        <code>GetParametersForImport</code> request to get new ones.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder parametersValidTo(Instant parametersValidTo);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes importToken;
+
+        private SdkBytes publicKey;
+
+        private Instant parametersValidTo;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetParametersForImportResponse model) {
+            super(model);
+            keyId(model.keyId);
+            importToken(model.importToken);
+            publicKey(model.publicKey);
+            parametersValidTo(model.parametersValidTo);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getImportToken() {
+            return importToken == null ? null : importToken.asByteBuffer();
+        }
+
+        public final void setImportToken(ByteBuffer importToken) {
+            importToken(importToken == null ? null : SdkBytes.fromByteBuffer(importToken));
+        }
+
+        @Override
+        public final Builder importToken(SdkBytes importToken) {
+            this.importToken = importToken;
+            return this;
+        }
+
+        public final ByteBuffer getPublicKey() {
+            return publicKey == null ? null : publicKey.asByteBuffer();
+        }
+
+        public final void setPublicKey(ByteBuffer publicKey) {
+            publicKey(publicKey == null ? null : SdkBytes.fromByteBuffer(publicKey));
+        }
+
+        @Override
+        public final Builder publicKey(SdkBytes publicKey) {
+            this.publicKey = publicKey;
+            return this;
+        }
+
+        public final Instant getParametersValidTo() {
+            return parametersValidTo;
+        }
+
+        public final void setParametersValidTo(Instant parametersValidTo) {
+            this.parametersValidTo = parametersValidTo;
+        }
+
+        @Override
+        public final Builder parametersValidTo(Instant parametersValidTo) {
+            this.parametersValidTo = parametersValidTo;
+            return this;
+        }
+
+        @Override
+        public GetParametersForImportResponse build() {
+            return new GetParametersForImportResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetPublicKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetPublicKeyRequest.java
new file mode 100644
index 0000000..4d7820d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetPublicKeyRequest.java
@@ -0,0 +1,483 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetPublicKeyRequest extends KmsRequest implements
+        ToCopyableBuilder<GetPublicKeyRequest.Builder, GetPublicKeyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GetPublicKeyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(GetPublicKeyRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            GRANT_TOKENS_FIELD));
+
+    private final String keyId;
+
+    private final List<String> grantTokens;
+
+    private GetPublicKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.grantTokens = builder.grantTokens;
+    }
+
+    /**
+     * <p>
+     * Identifies the asymmetric KMS key that includes the public key.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Identifies the asymmetric KMS key that includes the public key.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetPublicKeyRequest)) {
+            return false;
+        }
+        GetPublicKeyRequest other = (GetPublicKeyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && hasGrantTokens() == other.hasGrantTokens()
+                && Objects.equals(grantTokens(), other.grantTokens());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetPublicKeyRequest").add("KeyId", keyId())
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetPublicKeyRequest, T> g) {
+        return obj -> g.apply((GetPublicKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, GetPublicKeyRequest> {
+        /**
+         * <p>
+         * Identifies the asymmetric KMS key that includes the public key.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the asymmetric KMS key that includes the public key.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetPublicKeyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            grantTokens(model.grantTokens);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public GetPublicKeyRequest build() {
+            return new GetPublicKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetPublicKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetPublicKeyResponse.java
new file mode 100644
index 0000000..8e52c9f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GetPublicKeyResponse.java
@@ -0,0 +1,1079 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GetPublicKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<GetPublicKeyResponse.Builder, GetPublicKeyResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GetPublicKeyResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> PUBLIC_KEY_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("PublicKey").getter(getter(GetPublicKeyResponse::publicKey)).setter(setter(Builder::publicKey))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PublicKey").build()).build();
+
+    private static final SdkField<String> CUSTOMER_MASTER_KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomerMasterKeySpec").getter(getter(GetPublicKeyResponse::customerMasterKeySpecAsString))
+            .setter(setter(Builder::customerMasterKeySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomerMasterKeySpec").build())
+            .build();
+
+    private static final SdkField<String> KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeySpec").getter(getter(GetPublicKeyResponse::keySpecAsString)).setter(setter(Builder::keySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeySpec").build()).build();
+
+    private static final SdkField<String> KEY_USAGE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyUsage").getter(getter(GetPublicKeyResponse::keyUsageAsString)).setter(setter(Builder::keyUsage))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyUsage").build()).build();
+
+    private static final SdkField<List<String>> ENCRYPTION_ALGORITHMS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("EncryptionAlgorithms")
+            .getter(getter(GetPublicKeyResponse::encryptionAlgorithmsAsStrings))
+            .setter(setter(Builder::encryptionAlgorithmsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionAlgorithms").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<List<String>> SIGNING_ALGORITHMS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("SigningAlgorithms")
+            .getter(getter(GetPublicKeyResponse::signingAlgorithmsAsStrings))
+            .setter(setter(Builder::signingAlgorithmsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningAlgorithms").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            PUBLIC_KEY_FIELD, CUSTOMER_MASTER_KEY_SPEC_FIELD, KEY_SPEC_FIELD, KEY_USAGE_FIELD, ENCRYPTION_ALGORITHMS_FIELD,
+            SIGNING_ALGORITHMS_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes publicKey;
+
+    private final String customerMasterKeySpec;
+
+    private final String keySpec;
+
+    private final String keyUsage;
+
+    private final List<String> encryptionAlgorithms;
+
+    private final List<String> signingAlgorithms;
+
+    private GetPublicKeyResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.publicKey = builder.publicKey;
+        this.customerMasterKeySpec = builder.customerMasterKeySpec;
+        this.keySpec = builder.keySpec;
+        this.keyUsage = builder.keyUsage;
+        this.encryptionAlgorithms = builder.encryptionAlgorithms;
+        this.signingAlgorithms = builder.signingAlgorithms;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+     * asymmetric KMS key from which the public key was downloaded.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the asymmetric KMS key from which the public key was downloaded.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The exported public key.
+     * </p>
+     * <p>
+     * The value is a DER-encoded X.509 public key, also known as <code>SubjectPublicKeyInfo</code> (SPKI), as defined
+     * in <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>. When you use the HTTP API or the Amazon Web
+     * Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
+     * </p>
+     * <p/>
+     * 
+     * @return The exported public key.
+     *         </p>
+     *         <p>
+     *         The value is a DER-encoded X.509 public key, also known as <code>SubjectPublicKeyInfo</code> (SPKI), as
+     *         defined in <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>. When you use the HTTP API or the
+     *         Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
+     *         </p>
+     */
+    public final SdkBytes publicKey() {
+        return publicKey;
+    }
+
+    /**
+     * <p>
+     * Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that you
+     * use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both fields.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customerMasterKeySpec} will return {@link CustomerMasterKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #customerMasterKeySpecAsString}.
+     * </p>
+     * 
+     * @return Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.</p>
+     *         <p>
+     *         The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend
+     *         that you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS
+     *         supports both fields.
+     * @see CustomerMasterKeySpec
+     * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+     */
+    @Deprecated
+    public final CustomerMasterKeySpec customerMasterKeySpec() {
+        return CustomerMasterKeySpec.fromValue(customerMasterKeySpec);
+    }
+
+    /**
+     * <p>
+     * Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that you
+     * use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both fields.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customerMasterKeySpec} will return {@link CustomerMasterKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #customerMasterKeySpecAsString}.
+     * </p>
+     * 
+     * @return Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.</p>
+     *         <p>
+     *         The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend
+     *         that you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS
+     *         supports both fields.
+     * @see CustomerMasterKeySpec
+     * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+     */
+    @Deprecated
+    public final String customerMasterKeySpecAsString() {
+        return customerMasterKeySpec;
+    }
+
+    /**
+     * <p>
+     * The type of the of the public key that was downloaded.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link KeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return The type of the of the public key that was downloaded.
+     * @see KeySpec
+     */
+    public final KeySpec keySpec() {
+        return KeySpec.fromValue(keySpec);
+    }
+
+    /**
+     * <p>
+     * The type of the of the public key that was downloaded.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link KeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return The type of the of the public key that was downloaded.
+     * @see KeySpec
+     */
+    public final String keySpecAsString() {
+        return keySpec;
+    }
+
+    /**
+     * <p>
+     * The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or <code>SIGN_VERIFY</code>.
+     * </p>
+     * <p>
+     * This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data outside of
+     * KMS, the ciphertext cannot be decrypted.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyUsage} will
+     * return {@link KeyUsageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyUsageAsString}.
+     * </p>
+     * 
+     * @return The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or
+     *         <code>SIGN_VERIFY</code>. </p>
+     *         <p>
+     *         This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data
+     *         outside of KMS, the ciphertext cannot be decrypted.
+     * @see KeyUsageType
+     */
+    public final KeyUsageType keyUsage() {
+        return KeyUsageType.fromValue(keyUsage);
+    }
+
+    /**
+     * <p>
+     * The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or <code>SIGN_VERIFY</code>.
+     * </p>
+     * <p>
+     * This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data outside of
+     * KMS, the ciphertext cannot be decrypted.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyUsage} will
+     * return {@link KeyUsageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyUsageAsString}.
+     * </p>
+     * 
+     * @return The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or
+     *         <code>SIGN_VERIFY</code>. </p>
+     *         <p>
+     *         This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data
+     *         outside of KMS, the ciphertext cannot be decrypted.
+     * @see KeyUsageType
+     */
+    public final String keyUsageAsString() {
+        return keyUsage;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithms that KMS supports for this key.
+     * </p>
+     * <p>
+     * This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption
+     * algorithm, the ciphertext cannot be decrypted.
+     * </p>
+     * <p>
+     * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     * <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionAlgorithms} method.
+     * </p>
+     * 
+     * @return The encryption algorithms that KMS supports for this key. </p>
+     *         <p>
+     *         This information is critical. If a public key encrypts data outside of KMS by using an unsupported
+     *         encryption algorithm, the ciphertext cannot be decrypted.
+     *         </p>
+     *         <p>
+     *         This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     *         <code>ENCRYPT_DECRYPT</code>.
+     */
+    public final List<EncryptionAlgorithmSpec> encryptionAlgorithms() {
+        return EncryptionAlgorithmSpecListCopier.copyStringToEnum(encryptionAlgorithms);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionAlgorithms property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionAlgorithms() {
+        return encryptionAlgorithms != null && !(encryptionAlgorithms instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithms that KMS supports for this key.
+     * </p>
+     * <p>
+     * This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption
+     * algorithm, the ciphertext cannot be decrypted.
+     * </p>
+     * <p>
+     * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     * <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionAlgorithms} method.
+     * </p>
+     * 
+     * @return The encryption algorithms that KMS supports for this key. </p>
+     *         <p>
+     *         This information is critical. If a public key encrypts data outside of KMS by using an unsupported
+     *         encryption algorithm, the ciphertext cannot be decrypted.
+     *         </p>
+     *         <p>
+     *         This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     *         <code>ENCRYPT_DECRYPT</code>.
+     */
+    public final List<String> encryptionAlgorithmsAsStrings() {
+        return encryptionAlgorithms;
+    }
+
+    /**
+     * <p>
+     * The signing algorithms that KMS supports for this key.
+     * </p>
+     * <p>
+     * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     * <code>SIGN_VERIFY</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasSigningAlgorithms} method.
+     * </p>
+     * 
+     * @return The signing algorithms that KMS supports for this key.</p>
+     *         <p>
+     *         This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     *         <code>SIGN_VERIFY</code>.
+     */
+    public final List<SigningAlgorithmSpec> signingAlgorithms() {
+        return SigningAlgorithmSpecListCopier.copyStringToEnum(signingAlgorithms);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the SigningAlgorithms property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasSigningAlgorithms() {
+        return signingAlgorithms != null && !(signingAlgorithms instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The signing algorithms that KMS supports for this key.
+     * </p>
+     * <p>
+     * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     * <code>SIGN_VERIFY</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasSigningAlgorithms} method.
+     * </p>
+     * 
+     * @return The signing algorithms that KMS supports for this key.</p>
+     *         <p>
+     *         This field appears in the response only when the <code>KeyUsage</code> of the public key is
+     *         <code>SIGN_VERIFY</code>.
+     */
+    public final List<String> signingAlgorithmsAsStrings() {
+        return signingAlgorithms;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(publicKey());
+        hashCode = 31 * hashCode + Objects.hashCode(customerMasterKeySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keyUsageAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionAlgorithms() ? encryptionAlgorithmsAsStrings() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(hasSigningAlgorithms() ? signingAlgorithmsAsStrings() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GetPublicKeyResponse)) {
+            return false;
+        }
+        GetPublicKeyResponse other = (GetPublicKeyResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(publicKey(), other.publicKey())
+                && Objects.equals(customerMasterKeySpecAsString(), other.customerMasterKeySpecAsString())
+                && Objects.equals(keySpecAsString(), other.keySpecAsString())
+                && Objects.equals(keyUsageAsString(), other.keyUsageAsString())
+                && hasEncryptionAlgorithms() == other.hasEncryptionAlgorithms()
+                && Objects.equals(encryptionAlgorithmsAsStrings(), other.encryptionAlgorithmsAsStrings())
+                && hasSigningAlgorithms() == other.hasSigningAlgorithms()
+                && Objects.equals(signingAlgorithmsAsStrings(), other.signingAlgorithmsAsStrings());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GetPublicKeyResponse").add("KeyId", keyId()).add("PublicKey", publicKey())
+                .add("CustomerMasterKeySpec", customerMasterKeySpecAsString()).add("KeySpec", keySpecAsString())
+                .add("KeyUsage", keyUsageAsString())
+                .add("EncryptionAlgorithms", hasEncryptionAlgorithms() ? encryptionAlgorithmsAsStrings() : null)
+                .add("SigningAlgorithms", hasSigningAlgorithms() ? signingAlgorithmsAsStrings() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "PublicKey":
+            return Optional.ofNullable(clazz.cast(publicKey()));
+        case "CustomerMasterKeySpec":
+            return Optional.ofNullable(clazz.cast(customerMasterKeySpecAsString()));
+        case "KeySpec":
+            return Optional.ofNullable(clazz.cast(keySpecAsString()));
+        case "KeyUsage":
+            return Optional.ofNullable(clazz.cast(keyUsageAsString()));
+        case "EncryptionAlgorithms":
+            return Optional.ofNullable(clazz.cast(encryptionAlgorithmsAsStrings()));
+        case "SigningAlgorithms":
+            return Optional.ofNullable(clazz.cast(signingAlgorithmsAsStrings()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GetPublicKeyResponse, T> g) {
+        return obj -> g.apply((GetPublicKeyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, GetPublicKeyResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * asymmetric KMS key from which the public key was downloaded.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the asymmetric KMS key from which the public key was downloaded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The exported public key.
+         * </p>
+         * <p>
+         * The value is a DER-encoded X.509 public key, also known as <code>SubjectPublicKeyInfo</code> (SPKI), as
+         * defined in <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>. When you use the HTTP API or the
+         * Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
+         * </p>
+         * <p/>
+         * 
+         * @param publicKey
+         *        The exported public key.
+         *        </p>
+         *        <p>
+         *        The value is a DER-encoded X.509 public key, also known as <code>SubjectPublicKeyInfo</code> (SPKI),
+         *        as defined in <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>. When you use the HTTP API or
+         *        the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
+         *        </p>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder publicKey(SdkBytes publicKey);
+
+        /**
+         * <p>
+         * Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that
+         * you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both
+         * fields.
+         * </p>
+         * 
+         * @param customerMasterKeySpec
+         *        Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.</p>
+         *        <p>
+         *        The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We
+         *        recommend that you use the <code>KeySpec</code> field in your code. However, to avoid breaking
+         *        changes, KMS supports both fields.
+         * @see CustomerMasterKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomerMasterKeySpec
+         * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+         */
+        @Deprecated
+        Builder customerMasterKeySpec(String customerMasterKeySpec);
+
+        /**
+         * <p>
+         * Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that
+         * you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both
+         * fields.
+         * </p>
+         * 
+         * @param customerMasterKeySpec
+         *        Instead, use the <code>KeySpec</code> field in the <code>GetPublicKey</code> response.</p>
+         *        <p>
+         *        The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We
+         *        recommend that you use the <code>KeySpec</code> field in your code. However, to avoid breaking
+         *        changes, KMS supports both fields.
+         * @see CustomerMasterKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomerMasterKeySpec
+         * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+         */
+        @Deprecated
+        Builder customerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec);
+
+        /**
+         * <p>
+         * The type of the of the public key that was downloaded.
+         * </p>
+         * 
+         * @param keySpec
+         *        The type of the of the public key that was downloaded.
+         * @see KeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeySpec
+         */
+        Builder keySpec(String keySpec);
+
+        /**
+         * <p>
+         * The type of the of the public key that was downloaded.
+         * </p>
+         * 
+         * @param keySpec
+         *        The type of the of the public key that was downloaded.
+         * @see KeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeySpec
+         */
+        Builder keySpec(KeySpec keySpec);
+
+        /**
+         * <p>
+         * The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * <p>
+         * This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data outside
+         * of KMS, the ciphertext cannot be decrypted.
+         * </p>
+         * 
+         * @param keyUsage
+         *        The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or
+         *        <code>SIGN_VERIFY</code>. </p>
+         *        <p>
+         *        This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data
+         *        outside of KMS, the ciphertext cannot be decrypted.
+         * @see KeyUsageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyUsageType
+         */
+        Builder keyUsage(String keyUsage);
+
+        /**
+         * <p>
+         * The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * <p>
+         * This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data outside
+         * of KMS, the ciphertext cannot be decrypted.
+         * </p>
+         * 
+         * @param keyUsage
+         *        The permitted use of the public key. Valid values are <code>ENCRYPT_DECRYPT</code> or
+         *        <code>SIGN_VERIFY</code>. </p>
+         *        <p>
+         *        This information is critical. If a public key with <code>SIGN_VERIFY</code> key usage encrypts data
+         *        outside of KMS, the ciphertext cannot be decrypted.
+         * @see KeyUsageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyUsageType
+         */
+        Builder keyUsage(KeyUsageType keyUsage);
+
+        /**
+         * <p>
+         * The encryption algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption
+         * algorithm, the ciphertext cannot be decrypted.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that KMS supports for this key. </p>
+         *        <p>
+         *        This information is critical. If a public key encrypts data outside of KMS by using an unsupported
+         *        encryption algorithm, the ciphertext cannot be decrypted.
+         *        </p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithmsWithStrings(Collection<String> encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The encryption algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption
+         * algorithm, the ciphertext cannot be decrypted.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that KMS supports for this key. </p>
+         *        <p>
+         *        This information is critical. If a public key encrypts data outside of KMS by using an unsupported
+         *        encryption algorithm, the ciphertext cannot be decrypted.
+         *        </p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithmsWithStrings(String... encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The encryption algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption
+         * algorithm, the ciphertext cannot be decrypted.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that KMS supports for this key. </p>
+         *        <p>
+         *        This information is critical. If a public key encrypts data outside of KMS by using an unsupported
+         *        encryption algorithm, the ciphertext cannot be decrypted.
+         *        </p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithms(Collection<EncryptionAlgorithmSpec> encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The encryption algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption
+         * algorithm, the ciphertext cannot be decrypted.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that KMS supports for this key. </p>
+         *        <p>
+         *        This information is critical. If a public key encrypts data outside of KMS by using an unsupported
+         *        encryption algorithm, the ciphertext cannot be decrypted.
+         *        </p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that KMS supports for this key.</p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithmsWithStrings(Collection<String> signingAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that KMS supports for this key.</p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithmsWithStrings(String... signingAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that KMS supports for this key.</p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithms(Collection<SigningAlgorithmSpec> signingAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that KMS supports for this key.
+         * </p>
+         * <p>
+         * This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         * <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that KMS supports for this key.</p>
+         *        <p>
+         *        This field appears in the response only when the <code>KeyUsage</code> of the public key is
+         *        <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithms(SigningAlgorithmSpec... signingAlgorithms);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes publicKey;
+
+        private String customerMasterKeySpec;
+
+        private String keySpec;
+
+        private String keyUsage;
+
+        private List<String> encryptionAlgorithms = DefaultSdkAutoConstructList.getInstance();
+
+        private List<String> signingAlgorithms = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GetPublicKeyResponse model) {
+            super(model);
+            keyId(model.keyId);
+            publicKey(model.publicKey);
+            customerMasterKeySpec(model.customerMasterKeySpec);
+            keySpec(model.keySpec);
+            keyUsage(model.keyUsage);
+            encryptionAlgorithmsWithStrings(model.encryptionAlgorithms);
+            signingAlgorithmsWithStrings(model.signingAlgorithms);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getPublicKey() {
+            return publicKey == null ? null : publicKey.asByteBuffer();
+        }
+
+        public final void setPublicKey(ByteBuffer publicKey) {
+            publicKey(publicKey == null ? null : SdkBytes.fromByteBuffer(publicKey));
+        }
+
+        @Override
+        public final Builder publicKey(SdkBytes publicKey) {
+            this.publicKey = publicKey;
+            return this;
+        }
+
+        @Deprecated
+        public final String getCustomerMasterKeySpec() {
+            return customerMasterKeySpec;
+        }
+
+        @Deprecated
+        public final void setCustomerMasterKeySpec(String customerMasterKeySpec) {
+            this.customerMasterKeySpec = customerMasterKeySpec;
+        }
+
+        @Override
+        @Deprecated
+        public final Builder customerMasterKeySpec(String customerMasterKeySpec) {
+            this.customerMasterKeySpec = customerMasterKeySpec;
+            return this;
+        }
+
+        @Override
+        @Deprecated
+        public final Builder customerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec) {
+            this.customerMasterKeySpec(customerMasterKeySpec == null ? null : customerMasterKeySpec.toString());
+            return this;
+        }
+
+        public final String getKeySpec() {
+            return keySpec;
+        }
+
+        public final void setKeySpec(String keySpec) {
+            this.keySpec = keySpec;
+        }
+
+        @Override
+        public final Builder keySpec(String keySpec) {
+            this.keySpec = keySpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keySpec(KeySpec keySpec) {
+            this.keySpec(keySpec == null ? null : keySpec.toString());
+            return this;
+        }
+
+        public final String getKeyUsage() {
+            return keyUsage;
+        }
+
+        public final void setKeyUsage(String keyUsage) {
+            this.keyUsage = keyUsage;
+        }
+
+        @Override
+        public final Builder keyUsage(String keyUsage) {
+            this.keyUsage = keyUsage;
+            return this;
+        }
+
+        @Override
+        public final Builder keyUsage(KeyUsageType keyUsage) {
+            this.keyUsage(keyUsage == null ? null : keyUsage.toString());
+            return this;
+        }
+
+        public final Collection<String> getEncryptionAlgorithms() {
+            if (encryptionAlgorithms instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return encryptionAlgorithms;
+        }
+
+        public final void setEncryptionAlgorithms(Collection<String> encryptionAlgorithms) {
+            this.encryptionAlgorithms = EncryptionAlgorithmSpecListCopier.copy(encryptionAlgorithms);
+        }
+
+        @Override
+        public final Builder encryptionAlgorithmsWithStrings(Collection<String> encryptionAlgorithms) {
+            this.encryptionAlgorithms = EncryptionAlgorithmSpecListCopier.copy(encryptionAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder encryptionAlgorithmsWithStrings(String... encryptionAlgorithms) {
+            encryptionAlgorithmsWithStrings(Arrays.asList(encryptionAlgorithms));
+            return this;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithms(Collection<EncryptionAlgorithmSpec> encryptionAlgorithms) {
+            this.encryptionAlgorithms = EncryptionAlgorithmSpecListCopier.copyEnumToString(encryptionAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder encryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms) {
+            encryptionAlgorithms(Arrays.asList(encryptionAlgorithms));
+            return this;
+        }
+
+        public final Collection<String> getSigningAlgorithms() {
+            if (signingAlgorithms instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return signingAlgorithms;
+        }
+
+        public final void setSigningAlgorithms(Collection<String> signingAlgorithms) {
+            this.signingAlgorithms = SigningAlgorithmSpecListCopier.copy(signingAlgorithms);
+        }
+
+        @Override
+        public final Builder signingAlgorithmsWithStrings(Collection<String> signingAlgorithms) {
+            this.signingAlgorithms = SigningAlgorithmSpecListCopier.copy(signingAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder signingAlgorithmsWithStrings(String... signingAlgorithms) {
+            signingAlgorithmsWithStrings(Arrays.asList(signingAlgorithms));
+            return this;
+        }
+
+        @Override
+        public final Builder signingAlgorithms(Collection<SigningAlgorithmSpec> signingAlgorithms) {
+            this.signingAlgorithms = SigningAlgorithmSpecListCopier.copyEnumToString(signingAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder signingAlgorithms(SigningAlgorithmSpec... signingAlgorithms) {
+            signingAlgorithms(Arrays.asList(signingAlgorithms));
+            return this;
+        }
+
+        @Override
+        public GetPublicKeyResponse build() {
+            return new GetPublicKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantConstraints.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantConstraints.java
new file mode 100644
index 0000000..a9e3ee9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantConstraints.java
@@ -0,0 +1,365 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Use this structure to allow <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+ * operations</a> in the grant only when the operation request includes the specified <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption context</a>.
+ * </p>
+ * <p>
+ * KMS applies the grant constraints only to cryptographic operations that support an encryption context, that is, all
+ * cryptographic operations with a <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#symmetric-cmks">symmetric KMS
+ * key</a>. Grant constraints are not applied to operations that do not support an encryption context, such as
+ * cryptographic operations with asymmetric KMS keys and management operations, such as <a>DescribeKey</a> or
+ * <a>RetireGrant</a>.
+ * </p>
+ * <important>
+ * <p>
+ * In a cryptographic operation, the encryption context in the decryption operation must be an exact, case-sensitive
+ * match for the keys and values in the encryption context of the encryption operation. Only the order of the pairs can
+ * vary.
+ * </p>
+ * <p>
+ * However, in a grant constraint, the key in each key-value pair is not case sensitive, but the value is case
+ * sensitive.
+ * </p>
+ * <p>
+ * To avoid confusion, do not use multiple encryption context pairs that differ only by case. To require a fully
+ * case-sensitive encryption context, use the <code>kms:EncryptionContext:</code> and
+ * <code>kms:EncryptionContextKeys</code> conditions in an IAM or key policy. For details, see <a href=
+ * "https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-context"
+ * >kms:EncryptionContext:</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.
+ * </p>
+ * </important>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GrantConstraints implements SdkPojo, Serializable,
+        ToCopyableBuilder<GrantConstraints.Builder, GrantConstraints> {
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_SUBSET_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContextSubset")
+            .getter(getter(GrantConstraints::encryptionContextSubset))
+            .setter(setter(Builder::encryptionContextSubset))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContextSubset").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<Map<String, String>> ENCRYPTION_CONTEXT_EQUALS_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("EncryptionContextEquals")
+            .getter(getter(GrantConstraints::encryptionContextEquals))
+            .setter(setter(Builder::encryptionContextEquals))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionContextEquals").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(
+            ENCRYPTION_CONTEXT_SUBSET_FIELD, ENCRYPTION_CONTEXT_EQUALS_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final Map<String, String> encryptionContextSubset;
+
+    private final Map<String, String> encryptionContextEquals;
+
+    private GrantConstraints(BuilderImpl builder) {
+        this.encryptionContextSubset = builder.encryptionContextSubset;
+        this.encryptionContextEquals = builder.encryptionContextEquals;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContextSubset property. This
+     * DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
+     * property). This is useful because the SDK will never return a null collection or map, but you may need to
+     * differentiate between the service returning nothing (or null) and the service returning an empty collection or
+     * map. For requests, this returns true if a value for the property was specified in the request builder, and false
+     * if a value was not specified.
+     */
+    public final boolean hasEncryptionContextSubset() {
+        return encryptionContextSubset != null && !(encryptionContextSubset instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * A list of key-value pairs that must be included in the encryption context of the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operation</a> request. The grant allows the cryptographic operation only when the encryption context in the
+     * request includes the key-value pairs specified in this constraint, although it can include additional key-value
+     * pairs.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContextSubset} method.
+     * </p>
+     * 
+     * @return A list of key-value pairs that must be included in the encryption context of the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operation</a> request. The grant allows the cryptographic operation only when the
+     *         encryption context in the request includes the key-value pairs specified in this constraint, although it
+     *         can include additional key-value pairs.
+     */
+    public final Map<String, String> encryptionContextSubset() {
+        return encryptionContextSubset;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionContextEquals property. This
+     * DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
+     * property). This is useful because the SDK will never return a null collection or map, but you may need to
+     * differentiate between the service returning nothing (or null) and the service returning an empty collection or
+     * map. For requests, this returns true if a value for the property was specified in the request builder, and false
+     * if a value was not specified.
+     */
+    public final boolean hasEncryptionContextEquals() {
+        return encryptionContextEquals != null && !(encryptionContextEquals instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * A list of key-value pairs that must match the encryption context in the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
+     * operation</a> request. The grant allows the operation only when the encryption context in the request is the same
+     * as the encryption context specified in this constraint.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionContextEquals} method.
+     * </p>
+     * 
+     * @return A list of key-value pairs that must match the encryption context in the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operation</a> request. The grant allows the operation only when the encryption context in
+     *         the request is the same as the encryption context specified in this constraint.
+     */
+    public final Map<String, String> encryptionContextEquals() {
+        return encryptionContextEquals;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContextSubset() ? encryptionContextSubset() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionContextEquals() ? encryptionContextEquals() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GrantConstraints)) {
+            return false;
+        }
+        GrantConstraints other = (GrantConstraints) obj;
+        return hasEncryptionContextSubset() == other.hasEncryptionContextSubset()
+                && Objects.equals(encryptionContextSubset(), other.encryptionContextSubset())
+                && hasEncryptionContextEquals() == other.hasEncryptionContextEquals()
+                && Objects.equals(encryptionContextEquals(), other.encryptionContextEquals());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GrantConstraints")
+                .add("EncryptionContextSubset", hasEncryptionContextSubset() ? encryptionContextSubset() : null)
+                .add("EncryptionContextEquals", hasEncryptionContextEquals() ? encryptionContextEquals() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "EncryptionContextSubset":
+            return Optional.ofNullable(clazz.cast(encryptionContextSubset()));
+        case "EncryptionContextEquals":
+            return Optional.ofNullable(clazz.cast(encryptionContextEquals()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GrantConstraints, T> g) {
+        return obj -> g.apply((GrantConstraints) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, GrantConstraints> {
+        /**
+         * <p>
+         * A list of key-value pairs that must be included in the encryption context of the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         * >cryptographic operation</a> request. The grant allows the cryptographic operation only when the encryption
+         * context in the request includes the key-value pairs specified in this constraint, although it can include
+         * additional key-value pairs.
+         * </p>
+         * 
+         * @param encryptionContextSubset
+         *        A list of key-value pairs that must be included in the encryption context of the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operation</a> request. The grant allows the cryptographic operation only when the
+         *        encryption context in the request includes the key-value pairs specified in this constraint, although
+         *        it can include additional key-value pairs.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContextSubset(Map<String, String> encryptionContextSubset);
+
+        /**
+         * <p>
+         * A list of key-value pairs that must match the encryption context in the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         * >cryptographic operation</a> request. The grant allows the operation only when the encryption context in the
+         * request is the same as the encryption context specified in this constraint.
+         * </p>
+         * 
+         * @param encryptionContextEquals
+         *        A list of key-value pairs that must match the encryption context in the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operation</a> request. The grant allows the operation only when the encryption context
+         *        in the request is the same as the encryption context specified in this constraint.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionContextEquals(Map<String, String> encryptionContextEquals);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private Map<String, String> encryptionContextSubset = DefaultSdkAutoConstructMap.getInstance();
+
+        private Map<String, String> encryptionContextEquals = DefaultSdkAutoConstructMap.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GrantConstraints model) {
+            encryptionContextSubset(model.encryptionContextSubset);
+            encryptionContextEquals(model.encryptionContextEquals);
+        }
+
+        public final Map<String, String> getEncryptionContextSubset() {
+            if (encryptionContextSubset instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContextSubset;
+        }
+
+        public final void setEncryptionContextSubset(Map<String, String> encryptionContextSubset) {
+            this.encryptionContextSubset = EncryptionContextTypeCopier.copy(encryptionContextSubset);
+        }
+
+        @Override
+        public final Builder encryptionContextSubset(Map<String, String> encryptionContextSubset) {
+            this.encryptionContextSubset = EncryptionContextTypeCopier.copy(encryptionContextSubset);
+            return this;
+        }
+
+        public final Map<String, String> getEncryptionContextEquals() {
+            if (encryptionContextEquals instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return encryptionContextEquals;
+        }
+
+        public final void setEncryptionContextEquals(Map<String, String> encryptionContextEquals) {
+            this.encryptionContextEquals = EncryptionContextTypeCopier.copy(encryptionContextEquals);
+        }
+
+        @Override
+        public final Builder encryptionContextEquals(Map<String, String> encryptionContextEquals) {
+            this.encryptionContextEquals = EncryptionContextTypeCopier.copy(encryptionContextEquals);
+            return this;
+        }
+
+        @Override
+        public GrantConstraints build() {
+            return new GrantConstraints(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantListCopier.java
new file mode 100644
index 0000000..642b705
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class GrantListCopier {
+    static List<GrantListEntry> copy(Collection<? extends GrantListEntry> grantListParam) {
+        List<GrantListEntry> list;
+        if (grantListParam == null || grantListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<GrantListEntry> modifiableList = new ArrayList<>();
+            grantListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<GrantListEntry> copyFromBuilder(Collection<? extends GrantListEntry.Builder> grantListParam) {
+        List<GrantListEntry> list;
+        if (grantListParam == null || grantListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<GrantListEntry> modifiableList = new ArrayList<>();
+            grantListParam.forEach(entry -> {
+                GrantListEntry member = entry == null ? null : entry.build();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<GrantListEntry.Builder> copyToBuilder(Collection<? extends GrantListEntry> grantListParam) {
+        List<GrantListEntry.Builder> list;
+        if (grantListParam == null || grantListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<GrantListEntry.Builder> modifiableList = new ArrayList<>();
+            grantListParam.forEach(entry -> {
+                GrantListEntry.Builder member = entry == null ? null : entry.toBuilder();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantListEntry.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantListEntry.java
new file mode 100644
index 0000000..151b096
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantListEntry.java
@@ -0,0 +1,756 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Contains information about a grant.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class GrantListEntry implements SdkPojo, Serializable, ToCopyableBuilder<GrantListEntry.Builder, GrantListEntry> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(GrantListEntry::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> GRANT_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantId").getter(getter(GrantListEntry::grantId)).setter(setter(Builder::grantId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantId").build()).build();
+
+    private static final SdkField<String> NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Name")
+            .getter(getter(GrantListEntry::name)).setter(setter(Builder::name))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build();
+
+    private static final SdkField<Instant> CREATION_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("CreationDate").getter(getter(GrantListEntry::creationDate)).setter(setter(Builder::creationDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationDate").build()).build();
+
+    private static final SdkField<String> GRANTEE_PRINCIPAL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GranteePrincipal").getter(getter(GrantListEntry::granteePrincipal))
+            .setter(setter(Builder::granteePrincipal))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GranteePrincipal").build()).build();
+
+    private static final SdkField<String> RETIRING_PRINCIPAL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("RetiringPrincipal").getter(getter(GrantListEntry::retiringPrincipal))
+            .setter(setter(Builder::retiringPrincipal))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RetiringPrincipal").build()).build();
+
+    private static final SdkField<String> ISSUING_ACCOUNT_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("IssuingAccount").getter(getter(GrantListEntry::issuingAccount)).setter(setter(Builder::issuingAccount))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IssuingAccount").build()).build();
+
+    private static final SdkField<List<String>> OPERATIONS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("Operations")
+            .getter(getter(GrantListEntry::operationsAsStrings))
+            .setter(setter(Builder::operationsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Operations").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<GrantConstraints> CONSTRAINTS_FIELD = SdkField
+            .<GrantConstraints> builder(MarshallingType.SDK_POJO).memberName("Constraints")
+            .getter(getter(GrantListEntry::constraints)).setter(setter(Builder::constraints))
+            .constructor(GrantConstraints::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Constraints").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, GRANT_ID_FIELD,
+            NAME_FIELD, CREATION_DATE_FIELD, GRANTEE_PRINCIPAL_FIELD, RETIRING_PRINCIPAL_FIELD, ISSUING_ACCOUNT_FIELD,
+            OPERATIONS_FIELD, CONSTRAINTS_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String keyId;
+
+    private final String grantId;
+
+    private final String name;
+
+    private final Instant creationDate;
+
+    private final String granteePrincipal;
+
+    private final String retiringPrincipal;
+
+    private final String issuingAccount;
+
+    private final List<String> operations;
+
+    private final GrantConstraints constraints;
+
+    private GrantListEntry(BuilderImpl builder) {
+        this.keyId = builder.keyId;
+        this.grantId = builder.grantId;
+        this.name = builder.name;
+        this.creationDate = builder.creationDate;
+        this.granteePrincipal = builder.granteePrincipal;
+        this.retiringPrincipal = builder.retiringPrincipal;
+        this.issuingAccount = builder.issuingAccount;
+        this.operations = builder.operations;
+        this.constraints = builder.constraints;
+    }
+
+    /**
+     * <p>
+     * The unique identifier for the KMS key to which the grant applies.
+     * </p>
+     * 
+     * @return The unique identifier for the KMS key to which the grant applies.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The unique identifier for the grant.
+     * </p>
+     * 
+     * @return The unique identifier for the grant.
+     */
+    public final String grantId() {
+        return grantId;
+    }
+
+    /**
+     * <p>
+     * The friendly name that identifies the grant. If a name was provided in the <a>CreateGrant</a> request, that name
+     * is returned. Otherwise this value is null.
+     * </p>
+     * 
+     * @return The friendly name that identifies the grant. If a name was provided in the <a>CreateGrant</a> request,
+     *         that name is returned. Otherwise this value is null.
+     */
+    public final String name() {
+        return name;
+    }
+
+    /**
+     * <p>
+     * The date and time when the grant was created.
+     * </p>
+     * 
+     * @return The date and time when the grant was created.
+     */
+    public final Instant creationDate() {
+        return creationDate;
+    }
+
+    /**
+     * <p>
+     * The identity that gets the permissions in the grant.
+     * </p>
+     * <p>
+     * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role
+     * designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon
+     * Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     * >service principal</a>, which might represent several different grantee principals.
+     * </p>
+     * 
+     * @return The identity that gets the permissions in the grant.</p>
+     *         <p>
+     *         The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user
+     *         or role designated as the grantee principal in the grant. However, when the grantee principal in the
+     *         grant is an Amazon Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+     *         "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+     *         >service principal</a>, which might represent several different grantee principals.
+     */
+    public final String granteePrincipal() {
+        return granteePrincipal;
+    }
+
+    /**
+     * <p>
+     * The principal that can retire the grant.
+     * </p>
+     * 
+     * @return The principal that can retire the grant.
+     */
+    public final String retiringPrincipal() {
+        return retiringPrincipal;
+    }
+
+    /**
+     * <p>
+     * The Amazon Web Services account under which the grant was issued.
+     * </p>
+     * 
+     * @return The Amazon Web Services account under which the grant was issued.
+     */
+    public final String issuingAccount() {
+        return issuingAccount;
+    }
+
+    /**
+     * <p>
+     * The list of operations permitted by the grant.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasOperations} method.
+     * </p>
+     * 
+     * @return The list of operations permitted by the grant.
+     */
+    public final List<GrantOperation> operations() {
+        return GrantOperationListCopier.copyStringToEnum(operations);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Operations property. This DOES NOT check
+     * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
+     * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
+     * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
+     * returns true if a value for the property was specified in the request builder, and false if a value was not
+     * specified.
+     */
+    public final boolean hasOperations() {
+        return operations != null && !(operations instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The list of operations permitted by the grant.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasOperations} method.
+     * </p>
+     * 
+     * @return The list of operations permitted by the grant.
+     */
+    public final List<String> operationsAsStrings() {
+        return operations;
+    }
+
+    /**
+     * <p>
+     * A list of key-value pairs that must be present in the encryption context of certain subsequent operations that
+     * the grant allows.
+     * </p>
+     * 
+     * @return A list of key-value pairs that must be present in the encryption context of certain subsequent operations
+     *         that the grant allows.
+     */
+    public final GrantConstraints constraints() {
+        return constraints;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(grantId());
+        hashCode = 31 * hashCode + Objects.hashCode(name());
+        hashCode = 31 * hashCode + Objects.hashCode(creationDate());
+        hashCode = 31 * hashCode + Objects.hashCode(granteePrincipal());
+        hashCode = 31 * hashCode + Objects.hashCode(retiringPrincipal());
+        hashCode = 31 * hashCode + Objects.hashCode(issuingAccount());
+        hashCode = 31 * hashCode + Objects.hashCode(hasOperations() ? operationsAsStrings() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(constraints());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof GrantListEntry)) {
+            return false;
+        }
+        GrantListEntry other = (GrantListEntry) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(grantId(), other.grantId())
+                && Objects.equals(name(), other.name()) && Objects.equals(creationDate(), other.creationDate())
+                && Objects.equals(granteePrincipal(), other.granteePrincipal())
+                && Objects.equals(retiringPrincipal(), other.retiringPrincipal())
+                && Objects.equals(issuingAccount(), other.issuingAccount()) && hasOperations() == other.hasOperations()
+                && Objects.equals(operationsAsStrings(), other.operationsAsStrings())
+                && Objects.equals(constraints(), other.constraints());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("GrantListEntry").add("KeyId", keyId()).add("GrantId", grantId()).add("Name", name())
+                .add("CreationDate", creationDate()).add("GranteePrincipal", granteePrincipal())
+                .add("RetiringPrincipal", retiringPrincipal()).add("IssuingAccount", issuingAccount())
+                .add("Operations", hasOperations() ? operationsAsStrings() : null).add("Constraints", constraints()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GrantId":
+            return Optional.ofNullable(clazz.cast(grantId()));
+        case "Name":
+            return Optional.ofNullable(clazz.cast(name()));
+        case "CreationDate":
+            return Optional.ofNullable(clazz.cast(creationDate()));
+        case "GranteePrincipal":
+            return Optional.ofNullable(clazz.cast(granteePrincipal()));
+        case "RetiringPrincipal":
+            return Optional.ofNullable(clazz.cast(retiringPrincipal()));
+        case "IssuingAccount":
+            return Optional.ofNullable(clazz.cast(issuingAccount()));
+        case "Operations":
+            return Optional.ofNullable(clazz.cast(operationsAsStrings()));
+        case "Constraints":
+            return Optional.ofNullable(clazz.cast(constraints()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<GrantListEntry, T> g) {
+        return obj -> g.apply((GrantListEntry) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, GrantListEntry> {
+        /**
+         * <p>
+         * The unique identifier for the KMS key to which the grant applies.
+         * </p>
+         * 
+         * @param keyId
+         *        The unique identifier for the KMS key to which the grant applies.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The unique identifier for the grant.
+         * </p>
+         * 
+         * @param grantId
+         *        The unique identifier for the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantId(String grantId);
+
+        /**
+         * <p>
+         * The friendly name that identifies the grant. If a name was provided in the <a>CreateGrant</a> request, that
+         * name is returned. Otherwise this value is null.
+         * </p>
+         * 
+         * @param name
+         *        The friendly name that identifies the grant. If a name was provided in the <a>CreateGrant</a> request,
+         *        that name is returned. Otherwise this value is null.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder name(String name);
+
+        /**
+         * <p>
+         * The date and time when the grant was created.
+         * </p>
+         * 
+         * @param creationDate
+         *        The date and time when the grant was created.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder creationDate(Instant creationDate);
+
+        /**
+         * <p>
+         * The identity that gets the permissions in the grant.
+         * </p>
+         * <p>
+         * The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or
+         * role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an
+         * Amazon Web Services service, the <code>GranteePrincipal</code> field contains the <a href=
+         * "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+         * >service principal</a>, which might represent several different grantee principals.
+         * </p>
+         * 
+         * @param granteePrincipal
+         *        The identity that gets the permissions in the grant.</p>
+         *        <p>
+         *        The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the
+         *        user or role designated as the grantee principal in the grant. However, when the grantee principal in
+         *        the grant is an Amazon Web Services service, the <code>GranteePrincipal</code> field contains the <a
+         *        href=
+         *        "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services"
+         *        >service principal</a>, which might represent several different grantee principals.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder granteePrincipal(String granteePrincipal);
+
+        /**
+         * <p>
+         * The principal that can retire the grant.
+         * </p>
+         * 
+         * @param retiringPrincipal
+         *        The principal that can retire the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder retiringPrincipal(String retiringPrincipal);
+
+        /**
+         * <p>
+         * The Amazon Web Services account under which the grant was issued.
+         * </p>
+         * 
+         * @param issuingAccount
+         *        The Amazon Web Services account under which the grant was issued.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder issuingAccount(String issuingAccount);
+
+        /**
+         * <p>
+         * The list of operations permitted by the grant.
+         * </p>
+         * 
+         * @param operations
+         *        The list of operations permitted by the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operationsWithStrings(Collection<String> operations);
+
+        /**
+         * <p>
+         * The list of operations permitted by the grant.
+         * </p>
+         * 
+         * @param operations
+         *        The list of operations permitted by the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operationsWithStrings(String... operations);
+
+        /**
+         * <p>
+         * The list of operations permitted by the grant.
+         * </p>
+         * 
+         * @param operations
+         *        The list of operations permitted by the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operations(Collection<GrantOperation> operations);
+
+        /**
+         * <p>
+         * The list of operations permitted by the grant.
+         * </p>
+         * 
+         * @param operations
+         *        The list of operations permitted by the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder operations(GrantOperation... operations);
+
+        /**
+         * <p>
+         * A list of key-value pairs that must be present in the encryption context of certain subsequent operations
+         * that the grant allows.
+         * </p>
+         * 
+         * @param constraints
+         *        A list of key-value pairs that must be present in the encryption context of certain subsequent
+         *        operations that the grant allows.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder constraints(GrantConstraints constraints);
+
+        /**
+         * <p>
+         * A list of key-value pairs that must be present in the encryption context of certain subsequent operations
+         * that the grant allows.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link GrantConstraints.Builder} avoiding the
+         * need to create one manually via {@link GrantConstraints#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link GrantConstraints.Builder#build()} is called immediately and its
+         * result is passed to {@link #constraints(GrantConstraints)}.
+         * 
+         * @param constraints
+         *        a consumer that will call methods on {@link GrantConstraints.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #constraints(GrantConstraints)
+         */
+        default Builder constraints(Consumer<GrantConstraints.Builder> constraints) {
+            return constraints(GrantConstraints.builder().applyMutation(constraints).build());
+        }
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String keyId;
+
+        private String grantId;
+
+        private String name;
+
+        private Instant creationDate;
+
+        private String granteePrincipal;
+
+        private String retiringPrincipal;
+
+        private String issuingAccount;
+
+        private List<String> operations = DefaultSdkAutoConstructList.getInstance();
+
+        private GrantConstraints constraints;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(GrantListEntry model) {
+            keyId(model.keyId);
+            grantId(model.grantId);
+            name(model.name);
+            creationDate(model.creationDate);
+            granteePrincipal(model.granteePrincipal);
+            retiringPrincipal(model.retiringPrincipal);
+            issuingAccount(model.issuingAccount);
+            operationsWithStrings(model.operations);
+            constraints(model.constraints);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getGrantId() {
+            return grantId;
+        }
+
+        public final void setGrantId(String grantId) {
+            this.grantId = grantId;
+        }
+
+        @Override
+        public final Builder grantId(String grantId) {
+            this.grantId = grantId;
+            return this;
+        }
+
+        public final String getName() {
+            return name;
+        }
+
+        public final void setName(String name) {
+            this.name = name;
+        }
+
+        @Override
+        public final Builder name(String name) {
+            this.name = name;
+            return this;
+        }
+
+        public final Instant getCreationDate() {
+            return creationDate;
+        }
+
+        public final void setCreationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+        }
+
+        @Override
+        public final Builder creationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+            return this;
+        }
+
+        public final String getGranteePrincipal() {
+            return granteePrincipal;
+        }
+
+        public final void setGranteePrincipal(String granteePrincipal) {
+            this.granteePrincipal = granteePrincipal;
+        }
+
+        @Override
+        public final Builder granteePrincipal(String granteePrincipal) {
+            this.granteePrincipal = granteePrincipal;
+            return this;
+        }
+
+        public final String getRetiringPrincipal() {
+            return retiringPrincipal;
+        }
+
+        public final void setRetiringPrincipal(String retiringPrincipal) {
+            this.retiringPrincipal = retiringPrincipal;
+        }
+
+        @Override
+        public final Builder retiringPrincipal(String retiringPrincipal) {
+            this.retiringPrincipal = retiringPrincipal;
+            return this;
+        }
+
+        public final String getIssuingAccount() {
+            return issuingAccount;
+        }
+
+        public final void setIssuingAccount(String issuingAccount) {
+            this.issuingAccount = issuingAccount;
+        }
+
+        @Override
+        public final Builder issuingAccount(String issuingAccount) {
+            this.issuingAccount = issuingAccount;
+            return this;
+        }
+
+        public final Collection<String> getOperations() {
+            if (operations instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return operations;
+        }
+
+        public final void setOperations(Collection<String> operations) {
+            this.operations = GrantOperationListCopier.copy(operations);
+        }
+
+        @Override
+        public final Builder operationsWithStrings(Collection<String> operations) {
+            this.operations = GrantOperationListCopier.copy(operations);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder operationsWithStrings(String... operations) {
+            operationsWithStrings(Arrays.asList(operations));
+            return this;
+        }
+
+        @Override
+        public final Builder operations(Collection<GrantOperation> operations) {
+            this.operations = GrantOperationListCopier.copyEnumToString(operations);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder operations(GrantOperation... operations) {
+            operations(Arrays.asList(operations));
+            return this;
+        }
+
+        public final GrantConstraints.Builder getConstraints() {
+            return constraints != null ? constraints.toBuilder() : null;
+        }
+
+        public final void setConstraints(GrantConstraints.BuilderImpl constraints) {
+            this.constraints = constraints != null ? constraints.build() : null;
+        }
+
+        @Override
+        public final Builder constraints(GrantConstraints constraints) {
+            this.constraints = constraints;
+            return this;
+        }
+
+        @Override
+        public GrantListEntry build() {
+            return new GrantListEntry(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantOperation.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantOperation.java
new file mode 100644
index 0000000..0d624b1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantOperation.java
@@ -0,0 +1,97 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum GrantOperation {
+    DECRYPT("Decrypt"),
+
+    ENCRYPT("Encrypt"),
+
+    GENERATE_DATA_KEY("GenerateDataKey"),
+
+    GENERATE_DATA_KEY_WITHOUT_PLAINTEXT("GenerateDataKeyWithoutPlaintext"),
+
+    RE_ENCRYPT_FROM("ReEncryptFrom"),
+
+    RE_ENCRYPT_TO("ReEncryptTo"),
+
+    SIGN("Sign"),
+
+    VERIFY("Verify"),
+
+    GET_PUBLIC_KEY("GetPublicKey"),
+
+    CREATE_GRANT("CreateGrant"),
+
+    RETIRE_GRANT("RetireGrant"),
+
+    DESCRIBE_KEY("DescribeKey"),
+
+    GENERATE_DATA_KEY_PAIR("GenerateDataKeyPair"),
+
+    GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT("GenerateDataKeyPairWithoutPlaintext"),
+
+    GENERATE_MAC("GenerateMac"),
+
+    VERIFY_MAC("VerifyMac"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, GrantOperation> VALUE_MAP = EnumUtils.uniqueIndex(GrantOperation.class,
+            GrantOperation::toString);
+
+    private final String value;
+
+    private GrantOperation(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return GrantOperation corresponding to the value
+     */
+    public static GrantOperation fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link GrantOperation}s
+     */
+    public static Set<GrantOperation> knownValues() {
+        Set<GrantOperation> knownValues = EnumSet.allOf(GrantOperation.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantOperationListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantOperationListCopier.java
new file mode 100644
index 0000000..45af7a5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantOperationListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class GrantOperationListCopier {
+    static List<String> copy(Collection<String> grantOperationListParam) {
+        List<String> list;
+        if (grantOperationListParam == null || grantOperationListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            grantOperationListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<String> copyEnumToString(Collection<GrantOperation> grantOperationListParam) {
+        List<String> list;
+        if (grantOperationListParam == null || grantOperationListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            grantOperationListParam.forEach(entry -> {
+                String result = entry.toString();
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<GrantOperation> copyStringToEnum(Collection<String> grantOperationListParam) {
+        List<GrantOperation> list;
+        if (grantOperationListParam == null || grantOperationListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<GrantOperation> modifiableList = new ArrayList<>();
+            grantOperationListParam.forEach(entry -> {
+                GrantOperation result = GrantOperation.fromValue(entry);
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantTokenListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantTokenListCopier.java
new file mode 100644
index 0000000..1ffaa4b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/GrantTokenListCopier.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class GrantTokenListCopier {
+    static List<String> copy(Collection<String> grantTokenListParam) {
+        List<String> list;
+        if (grantTokenListParam == null || grantTokenListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            grantTokenListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ImportKeyMaterialRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ImportKeyMaterialRequest.java
new file mode 100644
index 0000000..476c86c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ImportKeyMaterialRequest.java
@@ -0,0 +1,737 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ImportKeyMaterialRequest extends KmsRequest implements
+        ToCopyableBuilder<ImportKeyMaterialRequest.Builder, ImportKeyMaterialRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ImportKeyMaterialRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> IMPORT_TOKEN_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("ImportToken").getter(getter(ImportKeyMaterialRequest::importToken)).setter(setter(Builder::importToken))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ImportToken").build()).build();
+
+    private static final SdkField<SdkBytes> ENCRYPTED_KEY_MATERIAL_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("EncryptedKeyMaterial").getter(getter(ImportKeyMaterialRequest::encryptedKeyMaterial))
+            .setter(setter(Builder::encryptedKeyMaterial))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptedKeyMaterial").build())
+            .build();
+
+    private static final SdkField<Instant> VALID_TO_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("ValidTo").getter(getter(ImportKeyMaterialRequest::validTo)).setter(setter(Builder::validTo))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ValidTo").build()).build();
+
+    private static final SdkField<String> EXPIRATION_MODEL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("ExpirationModel").getter(getter(ImportKeyMaterialRequest::expirationModelAsString))
+            .setter(setter(Builder::expirationModel))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExpirationModel").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            IMPORT_TOKEN_FIELD, ENCRYPTED_KEY_MATERIAL_FIELD, VALID_TO_FIELD, EXPIRATION_MODEL_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes importToken;
+
+    private final SdkBytes encryptedKeyMaterial;
+
+    private final Instant validTo;
+
+    private final String expirationModel;
+
+    private ImportKeyMaterialRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.importToken = builder.importToken;
+        this.encryptedKeyMaterial = builder.encryptedKeyMaterial;
+        this.validTo = builder.validTo;
+        this.expirationModel = builder.expirationModel;
+    }
+
+    /**
+     * <p>
+     * The identifier of the KMS key that will be associated with the imported key material. This must be the same KMS
+     * key specified in the <code>KeyID</code> parameter of the corresponding <a>GetParametersForImport</a> request. The
+     * <code>Origin</code> of the KMS key must be <code>EXTERNAL</code> and its <code>KeyState</code> must be
+     * <code>PendingImport</code>.
+     * </p>
+     * <p>
+     * The KMS key can be a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric
+     * signing KMS key, including a <a href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+     * key</a> of any supported type. You cannot perform this operation on a KMS key in a custom key store, or on a KMS
+     * key in a different Amazon Web Services account.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return The identifier of the KMS key that will be associated with the imported key material. This must be the
+     *         same KMS key specified in the <code>KeyID</code> parameter of the corresponding
+     *         <a>GetParametersForImport</a> request. The <code>Origin</code> of the KMS key must be
+     *         <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. </p>
+     *         <p>
+     *         The KMS key can be a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or
+     *         asymmetric signing KMS key, including a <a
+     *         href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported
+     *         type. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a
+     *         different Amazon Web Services account.
+     *         </p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The import token that you received in the response to a previous <a>GetParametersForImport</a> request. It must
+     * be from the same response that contained the public key that you used to encrypt the key material.
+     * </p>
+     * 
+     * @return The import token that you received in the response to a previous <a>GetParametersForImport</a> request.
+     *         It must be from the same response that contained the public key that you used to encrypt the key
+     *         material.
+     */
+    public final SdkBytes importToken() {
+        return importToken;
+    }
+
+    /**
+     * <p>
+     * The encrypted key material to import. The key material must be encrypted under the public wrapping key that
+     * <a>GetParametersForImport</a> returned, using the wrapping algorithm that you specified in the same
+     * <code>GetParametersForImport</code> request.
+     * </p>
+     * 
+     * @return The encrypted key material to import. The key material must be encrypted under the public wrapping key
+     *         that <a>GetParametersForImport</a> returned, using the wrapping algorithm that you specified in the same
+     *         <code>GetParametersForImport</code> request.
+     */
+    public final SdkBytes encryptedKeyMaterial() {
+        return encryptedKeyMaterial;
+    }
+
+    /**
+     * <p>
+     * The date and time when the imported key material expires. This parameter is required when the value of the
+     * <code>ExpirationModel</code> parameter is <code>KEY_MATERIAL_EXPIRES</code>. Otherwise it is not valid.
+     * </p>
+     * <p>
+     * The value of this parameter must be a future date and time. The maximum value is 365 days from the request date.
+     * </p>
+     * <p>
+     * When the key material expires, KMS deletes the key material from the KMS key. Without its key material, the KMS
+     * key is unusable. To use the KMS key in cryptographic operations, you must reimport the same key material.
+     * </p>
+     * <p>
+     * You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import after
+     * the request completes. To change either value, you must delete (<a>DeleteImportedKeyMaterial</a>) and reimport
+     * the key material.
+     * </p>
+     * 
+     * @return The date and time when the imported key material expires. This parameter is required when the value of
+     *         the <code>ExpirationModel</code> parameter is <code>KEY_MATERIAL_EXPIRES</code>. Otherwise it is not
+     *         valid.</p>
+     *         <p>
+     *         The value of this parameter must be a future date and time. The maximum value is 365 days from the
+     *         request date.
+     *         </p>
+     *         <p>
+     *         When the key material expires, KMS deletes the key material from the KMS key. Without its key material,
+     *         the KMS key is unusable. To use the KMS key in cryptographic operations, you must reimport the same key
+     *         material.
+     *         </p>
+     *         <p>
+     *         You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import
+     *         after the request completes. To change either value, you must delete (<a>DeleteImportedKeyMaterial</a>)
+     *         and reimport the key material.
+     */
+    public final Instant validTo() {
+        return validTo;
+    }
+
+    /**
+     * <p>
+     * Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help with this
+     * choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify a value for
+     * the <code>ValidTo</code> parameter. When value is <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>, you must omit the
+     * <code>ValidTo</code> parameter.
+     * </p>
+     * <p>
+     * You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import after
+     * the request completes. To change either value, you must reimport the key material.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #expirationModel}
+     * will return {@link ExpirationModelType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #expirationModelAsString}.
+     * </p>
+     * 
+     * @return Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help
+     *         with this choice, see <a href=
+     *         "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     *         >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.</p>
+     *         <p>
+     *         When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify a
+     *         value for the <code>ValidTo</code> parameter. When value is <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>,
+     *         you must omit the <code>ValidTo</code> parameter.
+     *         </p>
+     *         <p>
+     *         You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import
+     *         after the request completes. To change either value, you must reimport the key material.
+     * @see ExpirationModelType
+     */
+    public final ExpirationModelType expirationModel() {
+        return ExpirationModelType.fromValue(expirationModel);
+    }
+
+    /**
+     * <p>
+     * Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help with this
+     * choice, see <a href=
+     * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify a value for
+     * the <code>ValidTo</code> parameter. When value is <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>, you must omit the
+     * <code>ValidTo</code> parameter.
+     * </p>
+     * <p>
+     * You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import after
+     * the request completes. To change either value, you must reimport the key material.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #expirationModel}
+     * will return {@link ExpirationModelType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #expirationModelAsString}.
+     * </p>
+     * 
+     * @return Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help
+     *         with this choice, see <a href=
+     *         "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+     *         >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.</p>
+     *         <p>
+     *         When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify a
+     *         value for the <code>ValidTo</code> parameter. When value is <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>,
+     *         you must omit the <code>ValidTo</code> parameter.
+     *         </p>
+     *         <p>
+     *         You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import
+     *         after the request completes. To change either value, you must reimport the key material.
+     * @see ExpirationModelType
+     */
+    public final String expirationModelAsString() {
+        return expirationModel;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(importToken());
+        hashCode = 31 * hashCode + Objects.hashCode(encryptedKeyMaterial());
+        hashCode = 31 * hashCode + Objects.hashCode(validTo());
+        hashCode = 31 * hashCode + Objects.hashCode(expirationModelAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ImportKeyMaterialRequest)) {
+            return false;
+        }
+        ImportKeyMaterialRequest other = (ImportKeyMaterialRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(importToken(), other.importToken())
+                && Objects.equals(encryptedKeyMaterial(), other.encryptedKeyMaterial())
+                && Objects.equals(validTo(), other.validTo())
+                && Objects.equals(expirationModelAsString(), other.expirationModelAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ImportKeyMaterialRequest").add("KeyId", keyId()).add("ImportToken", importToken())
+                .add("EncryptedKeyMaterial", encryptedKeyMaterial()).add("ValidTo", validTo())
+                .add("ExpirationModel", expirationModelAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "ImportToken":
+            return Optional.ofNullable(clazz.cast(importToken()));
+        case "EncryptedKeyMaterial":
+            return Optional.ofNullable(clazz.cast(encryptedKeyMaterial()));
+        case "ValidTo":
+            return Optional.ofNullable(clazz.cast(validTo()));
+        case "ExpirationModel":
+            return Optional.ofNullable(clazz.cast(expirationModelAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ImportKeyMaterialRequest, T> g) {
+        return obj -> g.apply((ImportKeyMaterialRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ImportKeyMaterialRequest> {
+        /**
+         * <p>
+         * The identifier of the KMS key that will be associated with the imported key material. This must be the same
+         * KMS key specified in the <code>KeyID</code> parameter of the corresponding <a>GetParametersForImport</a>
+         * request. The <code>Origin</code> of the KMS key must be <code>EXTERNAL</code> and its <code>KeyState</code>
+         * must be <code>PendingImport</code>.
+         * </p>
+         * <p>
+         * The KMS key can be a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric
+         * signing KMS key, including a <a href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region
+         * key</a> of any supported type. You cannot perform this operation on a KMS key in a custom key store, or on a
+         * KMS key in a different Amazon Web Services account.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        The identifier of the KMS key that will be associated with the imported key material. This must be the
+         *        same KMS key specified in the <code>KeyID</code> parameter of the corresponding
+         *        <a>GetParametersForImport</a> request. The <code>Origin</code> of the KMS key must be
+         *        <code>EXTERNAL</code> and its <code>KeyState</code> must be <code>PendingImport</code>. </p>
+         *        <p>
+         *        The KMS key can be a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or
+         *        asymmetric signing KMS key, including a <a
+         *        href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region key</a> of any supported
+         *        type. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a
+         *        different Amazon Web Services account.
+         *        </p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The import token that you received in the response to a previous <a>GetParametersForImport</a> request. It
+         * must be from the same response that contained the public key that you used to encrypt the key material.
+         * </p>
+         * 
+         * @param importToken
+         *        The import token that you received in the response to a previous <a>GetParametersForImport</a>
+         *        request. It must be from the same response that contained the public key that you used to encrypt the
+         *        key material.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder importToken(SdkBytes importToken);
+
+        /**
+         * <p>
+         * The encrypted key material to import. The key material must be encrypted under the public wrapping key that
+         * <a>GetParametersForImport</a> returned, using the wrapping algorithm that you specified in the same
+         * <code>GetParametersForImport</code> request.
+         * </p>
+         * 
+         * @param encryptedKeyMaterial
+         *        The encrypted key material to import. The key material must be encrypted under the public wrapping key
+         *        that <a>GetParametersForImport</a> returned, using the wrapping algorithm that you specified in the
+         *        same <code>GetParametersForImport</code> request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptedKeyMaterial(SdkBytes encryptedKeyMaterial);
+
+        /**
+         * <p>
+         * The date and time when the imported key material expires. This parameter is required when the value of the
+         * <code>ExpirationModel</code> parameter is <code>KEY_MATERIAL_EXPIRES</code>. Otherwise it is not valid.
+         * </p>
+         * <p>
+         * The value of this parameter must be a future date and time. The maximum value is 365 days from the request
+         * date.
+         * </p>
+         * <p>
+         * When the key material expires, KMS deletes the key material from the KMS key. Without its key material, the
+         * KMS key is unusable. To use the KMS key in cryptographic operations, you must reimport the same key material.
+         * </p>
+         * <p>
+         * You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import
+         * after the request completes. To change either value, you must delete (<a>DeleteImportedKeyMaterial</a>) and
+         * reimport the key material.
+         * </p>
+         * 
+         * @param validTo
+         *        The date and time when the imported key material expires. This parameter is required when the value of
+         *        the <code>ExpirationModel</code> parameter is <code>KEY_MATERIAL_EXPIRES</code>. Otherwise it is not
+         *        valid.</p>
+         *        <p>
+         *        The value of this parameter must be a future date and time. The maximum value is 365 days from the
+         *        request date.
+         *        </p>
+         *        <p>
+         *        When the key material expires, KMS deletes the key material from the KMS key. Without its key
+         *        material, the KMS key is unusable. To use the KMS key in cryptographic operations, you must reimport
+         *        the same key material.
+         *        </p>
+         *        <p>
+         *        You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current
+         *        import after the request completes. To change either value, you must delete
+         *        (<a>DeleteImportedKeyMaterial</a>) and reimport the key material.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder validTo(Instant validTo);
+
+        /**
+         * <p>
+         * Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help with
+         * this choice, see <a href=
+         * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+         * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify a value
+         * for the <code>ValidTo</code> parameter. When value is <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>, you must
+         * omit the <code>ValidTo</code> parameter.
+         * </p>
+         * <p>
+         * You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import
+         * after the request completes. To change either value, you must reimport the key material.
+         * </p>
+         * 
+         * @param expirationModel
+         *        Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help
+         *        with this choice, see <a href=
+         *        "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+         *        >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.</p>
+         *        <p>
+         *        When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify
+         *        a value for the <code>ValidTo</code> parameter. When value is
+         *        <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>, you must omit the <code>ValidTo</code> parameter.
+         *        </p>
+         *        <p>
+         *        You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current
+         *        import after the request completes. To change either value, you must reimport the key material.
+         * @see ExpirationModelType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ExpirationModelType
+         */
+        Builder expirationModel(String expirationModel);
+
+        /**
+         * <p>
+         * Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help with
+         * this choice, see <a href=
+         * "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+         * >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * <p>
+         * When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify a value
+         * for the <code>ValidTo</code> parameter. When value is <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>, you must
+         * omit the <code>ValidTo</code> parameter.
+         * </p>
+         * <p>
+         * You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current import
+         * after the request completes. To change either value, you must reimport the key material.
+         * </p>
+         * 
+         * @param expirationModel
+         *        Specifies whether the key material expires. The default is <code>KEY_MATERIAL_EXPIRES</code>. For help
+         *        with this choice, see <a href=
+         *        "https://docs.aws.amazon.com/en_us/kms/latest/developerguide/importing-keys.html#importing-keys-expiration"
+         *        >Setting an expiration time</a> in the <i>Key Management Service Developer Guide</i>.</p>
+         *        <p>
+         *        When the value of <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, you must specify
+         *        a value for the <code>ValidTo</code> parameter. When value is
+         *        <code>KEY_MATERIAL_DOES_NOT_EXPIRE</code>, you must omit the <code>ValidTo</code> parameter.
+         *        </p>
+         *        <p>
+         *        You cannot change the <code>ExpirationModel</code> or <code>ValidTo</code> values for the current
+         *        import after the request completes. To change either value, you must reimport the key material.
+         * @see ExpirationModelType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ExpirationModelType
+         */
+        Builder expirationModel(ExpirationModelType expirationModel);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes importToken;
+
+        private SdkBytes encryptedKeyMaterial;
+
+        private Instant validTo;
+
+        private String expirationModel;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ImportKeyMaterialRequest model) {
+            super(model);
+            keyId(model.keyId);
+            importToken(model.importToken);
+            encryptedKeyMaterial(model.encryptedKeyMaterial);
+            validTo(model.validTo);
+            expirationModel(model.expirationModel);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getImportToken() {
+            return importToken == null ? null : importToken.asByteBuffer();
+        }
+
+        public final void setImportToken(ByteBuffer importToken) {
+            importToken(importToken == null ? null : SdkBytes.fromByteBuffer(importToken));
+        }
+
+        @Override
+        public final Builder importToken(SdkBytes importToken) {
+            this.importToken = importToken;
+            return this;
+        }
+
+        public final ByteBuffer getEncryptedKeyMaterial() {
+            return encryptedKeyMaterial == null ? null : encryptedKeyMaterial.asByteBuffer();
+        }
+
+        public final void setEncryptedKeyMaterial(ByteBuffer encryptedKeyMaterial) {
+            encryptedKeyMaterial(encryptedKeyMaterial == null ? null : SdkBytes.fromByteBuffer(encryptedKeyMaterial));
+        }
+
+        @Override
+        public final Builder encryptedKeyMaterial(SdkBytes encryptedKeyMaterial) {
+            this.encryptedKeyMaterial = encryptedKeyMaterial;
+            return this;
+        }
+
+        public final Instant getValidTo() {
+            return validTo;
+        }
+
+        public final void setValidTo(Instant validTo) {
+            this.validTo = validTo;
+        }
+
+        @Override
+        public final Builder validTo(Instant validTo) {
+            this.validTo = validTo;
+            return this;
+        }
+
+        public final String getExpirationModel() {
+            return expirationModel;
+        }
+
+        public final void setExpirationModel(String expirationModel) {
+            this.expirationModel = expirationModel;
+        }
+
+        @Override
+        public final Builder expirationModel(String expirationModel) {
+            this.expirationModel = expirationModel;
+            return this;
+        }
+
+        @Override
+        public final Builder expirationModel(ExpirationModelType expirationModel) {
+            this.expirationModel(expirationModel == null ? null : expirationModel.toString());
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ImportKeyMaterialRequest build() {
+            return new ImportKeyMaterialRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ImportKeyMaterialResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ImportKeyMaterialResponse.java
new file mode 100644
index 0000000..3c5369d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ImportKeyMaterialResponse.java
@@ -0,0 +1,116 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ImportKeyMaterialResponse extends KmsResponse implements
+        ToCopyableBuilder<ImportKeyMaterialResponse.Builder, ImportKeyMaterialResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private ImportKeyMaterialResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ImportKeyMaterialResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ImportKeyMaterialResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ImportKeyMaterialResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ImportKeyMaterialResponse model) {
+            super(model);
+        }
+
+        @Override
+        public ImportKeyMaterialResponse build() {
+            return new ImportKeyMaterialResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectKeyException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectKeyException.java
new file mode 100644
index 0000000..fc7b9e0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectKeyException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in a
+ * <a>Decrypt</a> request and the <code>SourceKeyId</code> in a <a>ReEncrypt</a> request must identify the same KMS key
+ * that was used to encrypt the ciphertext.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class IncorrectKeyException extends KmsException implements
+        ToCopyableBuilder<IncorrectKeyException.Builder, IncorrectKeyException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private IncorrectKeyException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, IncorrectKeyException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(IncorrectKeyException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public IncorrectKeyException build() {
+            return new IncorrectKeyException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectKeyMaterialException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectKeyMaterialException.java
new file mode 100644
index 0000000..1313777
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectKeyMaterialException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the key material in the request is, expired, invalid, or is not the same key
+ * material that was previously imported into this KMS key.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class IncorrectKeyMaterialException extends KmsException implements
+        ToCopyableBuilder<IncorrectKeyMaterialException.Builder, IncorrectKeyMaterialException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private IncorrectKeyMaterialException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, IncorrectKeyMaterialException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(IncorrectKeyMaterialException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public IncorrectKeyMaterialException build() {
+            return new IncorrectKeyMaterialException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectTrustAnchorException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectTrustAnchorException.java
new file mode 100644
index 0000000..f5f31eb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/IncorrectTrustAnchorException.java
@@ -0,0 +1,140 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the trust anchor certificate in the request to create an CloudHSM key store is not
+ * the trust anchor certificate for the specified CloudHSM cluster.
+ * </p>
+ * <p>
+ * When you <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize
+ * the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the <code>customerCA.crt</code>
+ * file.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class IncorrectTrustAnchorException extends KmsException implements
+        ToCopyableBuilder<IncorrectTrustAnchorException.Builder, IncorrectTrustAnchorException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private IncorrectTrustAnchorException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, IncorrectTrustAnchorException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(IncorrectTrustAnchorException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public IncorrectTrustAnchorException build() {
+            return new IncorrectTrustAnchorException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidAliasNameException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidAliasNameException.java
new file mode 100644
index 0000000..d7f4cf5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidAliasNameException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified alias name is not valid.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidAliasNameException extends KmsException implements
+        ToCopyableBuilder<InvalidAliasNameException.Builder, InvalidAliasNameException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidAliasNameException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidAliasNameException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidAliasNameException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidAliasNameException build() {
+            return new InvalidAliasNameException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidArnException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidArnException.java
new file mode 100644
index 0000000..c8d4032
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidArnException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidArnException extends KmsException implements
+        ToCopyableBuilder<InvalidArnException.Builder, InvalidArnException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidArnException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidArnException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidArnException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidArnException build() {
+            return new InvalidArnException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidCiphertextException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidCiphertextException.java
new file mode 100644
index 0000000..56622d6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidCiphertextException.java
@@ -0,0 +1,140 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request was rejected because the specified ciphertext, or
+ * additional authenticated data incorporated into the ciphertext, such as the encryption context, is corrupted,
+ * missing, or otherwise invalid.
+ * </p>
+ * <p>
+ * From the <a>ImportKeyMaterial</a> operation, the request was rejected because KMS could not decrypt the encrypted
+ * (wrapped) key material.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidCiphertextException extends KmsException implements
+        ToCopyableBuilder<InvalidCiphertextException.Builder, InvalidCiphertextException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidCiphertextException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidCiphertextException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidCiphertextException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidCiphertextException build() {
+            return new InvalidCiphertextException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidGrantIdException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidGrantIdException.java
new file mode 100644
index 0000000..3955bf8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidGrantIdException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified <code>GrantId</code> is not valid.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidGrantIdException extends KmsException implements
+        ToCopyableBuilder<InvalidGrantIdException.Builder, InvalidGrantIdException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidGrantIdException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidGrantIdException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidGrantIdException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidGrantIdException build() {
+            return new InvalidGrantIdException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidGrantTokenException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidGrantTokenException.java
new file mode 100644
index 0000000..f55d529
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidGrantTokenException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified grant token is not valid.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidGrantTokenException extends KmsException implements
+        ToCopyableBuilder<InvalidGrantTokenException.Builder, InvalidGrantTokenException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidGrantTokenException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidGrantTokenException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidGrantTokenException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidGrantTokenException build() {
+            return new InvalidGrantTokenException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidImportTokenException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidImportTokenException.java
new file mode 100644
index 0000000..bd1444f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidImportTokenException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the provided import token is invalid or is associated with a different KMS key.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidImportTokenException extends KmsException implements
+        ToCopyableBuilder<InvalidImportTokenException.Builder, InvalidImportTokenException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidImportTokenException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidImportTokenException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidImportTokenException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidImportTokenException build() {
+            return new InvalidImportTokenException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidKeyUsageException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidKeyUsageException.java
new file mode 100644
index 0000000..e11d405
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidKeyUsageException.java
@@ -0,0 +1,158 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected for one of the following reasons:
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key
+ * material in the KMS key <code>(KeySpec</code>).
+ * </p>
+ * </li>
+ * </ul>
+ * <p>
+ * For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be
+ * <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be
+ * <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the <code>KeyUsage</code>
+ * must be <code>GENERATE_VERIFY_MAC</code>. To find the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a>
+ * operation.
+ * </p>
+ * <p>
+ * To find the encryption or signing algorithms supported for a particular KMS key, use the <a>DescribeKey</a>
+ * operation.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidKeyUsageException extends KmsException implements
+        ToCopyableBuilder<InvalidKeyUsageException.Builder, InvalidKeyUsageException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidKeyUsageException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidKeyUsageException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidKeyUsageException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidKeyUsageException build() {
+            return new InvalidKeyUsageException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidMarkerException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidMarkerException.java
new file mode 100644
index 0000000..a97102a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/InvalidMarkerException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the marker that specifies where pagination should next begin is not valid.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class InvalidMarkerException extends KmsException implements
+        ToCopyableBuilder<InvalidMarkerException.Builder, InvalidMarkerException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private InvalidMarkerException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, InvalidMarkerException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(InvalidMarkerException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public InvalidMarkerException build() {
+            return new InvalidMarkerException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyEncryptionMechanism.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyEncryptionMechanism.java
new file mode 100644
index 0000000..66737d7
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyEncryptionMechanism.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum KeyEncryptionMechanism {
+    RSAES_OAEP_SHA_256("RSAES_OAEP_SHA_256"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, KeyEncryptionMechanism> VALUE_MAP = EnumUtils.uniqueIndex(KeyEncryptionMechanism.class,
+            KeyEncryptionMechanism::toString);
+
+    private final String value;
+
+    private KeyEncryptionMechanism(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return KeyEncryptionMechanism corresponding to the value
+     */
+    public static KeyEncryptionMechanism fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link KeyEncryptionMechanism}s
+     */
+    public static Set<KeyEncryptionMechanism> knownValues() {
+        Set<KeyEncryptionMechanism> knownValues = EnumSet.allOf(KeyEncryptionMechanism.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyListCopier.java
new file mode 100644
index 0000000..da49662
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class KeyListCopier {
+    static List<KeyListEntry> copy(Collection<? extends KeyListEntry> keyListParam) {
+        List<KeyListEntry> list;
+        if (keyListParam == null || keyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<KeyListEntry> modifiableList = new ArrayList<>();
+            keyListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<KeyListEntry> copyFromBuilder(Collection<? extends KeyListEntry.Builder> keyListParam) {
+        List<KeyListEntry> list;
+        if (keyListParam == null || keyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<KeyListEntry> modifiableList = new ArrayList<>();
+            keyListParam.forEach(entry -> {
+                KeyListEntry member = entry == null ? null : entry.build();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<KeyListEntry.Builder> copyToBuilder(Collection<? extends KeyListEntry> keyListParam) {
+        List<KeyListEntry.Builder> list;
+        if (keyListParam == null || keyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<KeyListEntry.Builder> modifiableList = new ArrayList<>();
+            keyListParam.forEach(entry -> {
+                KeyListEntry.Builder member = entry == null ? null : entry.toBuilder();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyListEntry.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyListEntry.java
new file mode 100644
index 0000000..67341be
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyListEntry.java
@@ -0,0 +1,233 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Contains information about each entry in the key list.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KeyListEntry implements SdkPojo, Serializable, ToCopyableBuilder<KeyListEntry.Builder, KeyListEntry> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(KeyListEntry::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> KEY_ARN_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyArn")
+            .getter(getter(KeyListEntry::keyArn)).setter(setter(Builder::keyArn))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyArn").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, KEY_ARN_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String keyId;
+
+    private final String keyArn;
+
+    private KeyListEntry(BuilderImpl builder) {
+        this.keyId = builder.keyId;
+        this.keyArn = builder.keyArn;
+    }
+
+    /**
+     * <p>
+     * Unique identifier of the key.
+     * </p>
+     * 
+     * @return Unique identifier of the key.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * ARN of the key.
+     * </p>
+     * 
+     * @return ARN of the key.
+     */
+    public final String keyArn() {
+        return keyArn;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyArn());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof KeyListEntry)) {
+            return false;
+        }
+        KeyListEntry other = (KeyListEntry) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(keyArn(), other.keyArn());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("KeyListEntry").add("KeyId", keyId()).add("KeyArn", keyArn()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "KeyArn":
+            return Optional.ofNullable(clazz.cast(keyArn()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<KeyListEntry, T> g) {
+        return obj -> g.apply((KeyListEntry) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KeyListEntry> {
+        /**
+         * <p>
+         * Unique identifier of the key.
+         * </p>
+         * 
+         * @param keyId
+         *        Unique identifier of the key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * ARN of the key.
+         * </p>
+         * 
+         * @param keyArn
+         *        ARN of the key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyArn(String keyArn);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String keyId;
+
+        private String keyArn;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KeyListEntry model) {
+            keyId(model.keyId);
+            keyArn(model.keyArn);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getKeyArn() {
+            return keyArn;
+        }
+
+        public final void setKeyArn(String keyArn) {
+            this.keyArn = keyArn;
+        }
+
+        @Override
+        public final Builder keyArn(String keyArn) {
+            this.keyArn = keyArn;
+            return this;
+        }
+
+        @Override
+        public KeyListEntry build() {
+            return new KeyListEntry(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyManagerType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyManagerType.java
new file mode 100644
index 0000000..619d71b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyManagerType.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum KeyManagerType {
+    AWS("AWS"),
+
+    CUSTOMER("CUSTOMER"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, KeyManagerType> VALUE_MAP = EnumUtils.uniqueIndex(KeyManagerType.class,
+            KeyManagerType::toString);
+
+    private final String value;
+
+    private KeyManagerType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return KeyManagerType corresponding to the value
+     */
+    public static KeyManagerType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link KeyManagerType}s
+     */
+    public static Set<KeyManagerType> knownValues() {
+        Set<KeyManagerType> knownValues = EnumSet.allOf(KeyManagerType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyMetadata.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyMetadata.java
new file mode 100644
index 0000000..f6ac80d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyMetadata.java
@@ -0,0 +1,2592 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Contains metadata about a KMS key.
+ * </p>
+ * <p>
+ * This data type is used as a response element for the <a>CreateKey</a>, <a>DescribeKey</a>, and <a>ReplicateKey</a>
+ * operations.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KeyMetadata implements SdkPojo, Serializable, ToCopyableBuilder<KeyMetadata.Builder, KeyMetadata> {
+    private static final SdkField<String> AWS_ACCOUNT_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AWSAccountId").getter(getter(KeyMetadata::awsAccountId)).setter(setter(Builder::awsAccountId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AWSAccountId").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(KeyMetadata::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> ARN_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Arn")
+            .getter(getter(KeyMetadata::arn)).setter(setter(Builder::arn))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Arn").build()).build();
+
+    private static final SdkField<Instant> CREATION_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("CreationDate").getter(getter(KeyMetadata::creationDate)).setter(setter(Builder::creationDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationDate").build()).build();
+
+    private static final SdkField<Boolean> ENABLED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Enabled").getter(getter(KeyMetadata::enabled)).setter(setter(Builder::enabled))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Enabled").build()).build();
+
+    private static final SdkField<String> DESCRIPTION_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("Description").getter(getter(KeyMetadata::description)).setter(setter(Builder::description))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build();
+
+    private static final SdkField<String> KEY_USAGE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyUsage").getter(getter(KeyMetadata::keyUsageAsString)).setter(setter(Builder::keyUsage))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyUsage").build()).build();
+
+    private static final SdkField<String> KEY_STATE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyState").getter(getter(KeyMetadata::keyStateAsString)).setter(setter(Builder::keyState))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyState").build()).build();
+
+    private static final SdkField<Instant> DELETION_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("DeletionDate").getter(getter(KeyMetadata::deletionDate)).setter(setter(Builder::deletionDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DeletionDate").build()).build();
+
+    private static final SdkField<Instant> VALID_TO_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("ValidTo").getter(getter(KeyMetadata::validTo)).setter(setter(Builder::validTo))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ValidTo").build()).build();
+
+    private static final SdkField<String> ORIGIN_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Origin")
+            .getter(getter(KeyMetadata::originAsString)).setter(setter(Builder::origin))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Origin").build()).build();
+
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(KeyMetadata::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final SdkField<String> CLOUD_HSM_CLUSTER_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CloudHsmClusterId").getter(getter(KeyMetadata::cloudHsmClusterId))
+            .setter(setter(Builder::cloudHsmClusterId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CloudHsmClusterId").build()).build();
+
+    private static final SdkField<String> EXPIRATION_MODEL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("ExpirationModel").getter(getter(KeyMetadata::expirationModelAsString))
+            .setter(setter(Builder::expirationModel))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExpirationModel").build()).build();
+
+    private static final SdkField<String> KEY_MANAGER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyManager").getter(getter(KeyMetadata::keyManagerAsString)).setter(setter(Builder::keyManager))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyManager").build()).build();
+
+    private static final SdkField<String> CUSTOMER_MASTER_KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomerMasterKeySpec").getter(getter(KeyMetadata::customerMasterKeySpecAsString))
+            .setter(setter(Builder::customerMasterKeySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomerMasterKeySpec").build())
+            .build();
+
+    private static final SdkField<String> KEY_SPEC_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeySpec").getter(getter(KeyMetadata::keySpecAsString)).setter(setter(Builder::keySpec))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeySpec").build()).build();
+
+    private static final SdkField<List<String>> ENCRYPTION_ALGORITHMS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("EncryptionAlgorithms")
+            .getter(getter(KeyMetadata::encryptionAlgorithmsAsStrings))
+            .setter(setter(Builder::encryptionAlgorithmsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionAlgorithms").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<List<String>> SIGNING_ALGORITHMS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("SigningAlgorithms")
+            .getter(getter(KeyMetadata::signingAlgorithmsAsStrings))
+            .setter(setter(Builder::signingAlgorithmsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningAlgorithms").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> MULTI_REGION_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("MultiRegion").getter(getter(KeyMetadata::multiRegion)).setter(setter(Builder::multiRegion))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiRegion").build()).build();
+
+    private static final SdkField<MultiRegionConfiguration> MULTI_REGION_CONFIGURATION_FIELD = SdkField
+            .<MultiRegionConfiguration> builder(MarshallingType.SDK_POJO).memberName("MultiRegionConfiguration")
+            .getter(getter(KeyMetadata::multiRegionConfiguration)).setter(setter(Builder::multiRegionConfiguration))
+            .constructor(MultiRegionConfiguration::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiRegionConfiguration").build())
+            .build();
+
+    private static final SdkField<Integer> PENDING_DELETION_WINDOW_IN_DAYS_FIELD = SdkField
+            .<Integer> builder(MarshallingType.INTEGER)
+            .memberName("PendingDeletionWindowInDays")
+            .getter(getter(KeyMetadata::pendingDeletionWindowInDays))
+            .setter(setter(Builder::pendingDeletionWindowInDays))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PendingDeletionWindowInDays")
+                    .build()).build();
+
+    private static final SdkField<List<String>> MAC_ALGORITHMS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("MacAlgorithms")
+            .getter(getter(KeyMetadata::macAlgorithmsAsStrings))
+            .setter(setter(Builder::macAlgorithmsWithStrings))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MacAlgorithms").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<XksKeyConfigurationType> XKS_KEY_CONFIGURATION_FIELD = SdkField
+            .<XksKeyConfigurationType> builder(MarshallingType.SDK_POJO).memberName("XksKeyConfiguration")
+            .getter(getter(KeyMetadata::xksKeyConfiguration)).setter(setter(Builder::xksKeyConfiguration))
+            .constructor(XksKeyConfigurationType::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksKeyConfiguration").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(AWS_ACCOUNT_ID_FIELD,
+            KEY_ID_FIELD, ARN_FIELD, CREATION_DATE_FIELD, ENABLED_FIELD, DESCRIPTION_FIELD, KEY_USAGE_FIELD, KEY_STATE_FIELD,
+            DELETION_DATE_FIELD, VALID_TO_FIELD, ORIGIN_FIELD, CUSTOM_KEY_STORE_ID_FIELD, CLOUD_HSM_CLUSTER_ID_FIELD,
+            EXPIRATION_MODEL_FIELD, KEY_MANAGER_FIELD, CUSTOMER_MASTER_KEY_SPEC_FIELD, KEY_SPEC_FIELD,
+            ENCRYPTION_ALGORITHMS_FIELD, SIGNING_ALGORITHMS_FIELD, MULTI_REGION_FIELD, MULTI_REGION_CONFIGURATION_FIELD,
+            PENDING_DELETION_WINDOW_IN_DAYS_FIELD, MAC_ALGORITHMS_FIELD, XKS_KEY_CONFIGURATION_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String awsAccountId;
+
+    private final String keyId;
+
+    private final String arn;
+
+    private final Instant creationDate;
+
+    private final Boolean enabled;
+
+    private final String description;
+
+    private final String keyUsage;
+
+    private final String keyState;
+
+    private final Instant deletionDate;
+
+    private final Instant validTo;
+
+    private final String origin;
+
+    private final String customKeyStoreId;
+
+    private final String cloudHsmClusterId;
+
+    private final String expirationModel;
+
+    private final String keyManager;
+
+    private final String customerMasterKeySpec;
+
+    private final String keySpec;
+
+    private final List<String> encryptionAlgorithms;
+
+    private final List<String> signingAlgorithms;
+
+    private final Boolean multiRegion;
+
+    private final MultiRegionConfiguration multiRegionConfiguration;
+
+    private final Integer pendingDeletionWindowInDays;
+
+    private final List<String> macAlgorithms;
+
+    private final XksKeyConfigurationType xksKeyConfiguration;
+
+    private KeyMetadata(BuilderImpl builder) {
+        this.awsAccountId = builder.awsAccountId;
+        this.keyId = builder.keyId;
+        this.arn = builder.arn;
+        this.creationDate = builder.creationDate;
+        this.enabled = builder.enabled;
+        this.description = builder.description;
+        this.keyUsage = builder.keyUsage;
+        this.keyState = builder.keyState;
+        this.deletionDate = builder.deletionDate;
+        this.validTo = builder.validTo;
+        this.origin = builder.origin;
+        this.customKeyStoreId = builder.customKeyStoreId;
+        this.cloudHsmClusterId = builder.cloudHsmClusterId;
+        this.expirationModel = builder.expirationModel;
+        this.keyManager = builder.keyManager;
+        this.customerMasterKeySpec = builder.customerMasterKeySpec;
+        this.keySpec = builder.keySpec;
+        this.encryptionAlgorithms = builder.encryptionAlgorithms;
+        this.signingAlgorithms = builder.signingAlgorithms;
+        this.multiRegion = builder.multiRegion;
+        this.multiRegionConfiguration = builder.multiRegionConfiguration;
+        this.pendingDeletionWindowInDays = builder.pendingDeletionWindowInDays;
+        this.macAlgorithms = builder.macAlgorithms;
+        this.xksKeyConfiguration = builder.xksKeyConfiguration;
+    }
+
+    /**
+     * <p>
+     * The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
+     * </p>
+     * 
+     * @return The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
+     */
+    public final String awsAccountId() {
+        return awsAccountId;
+    }
+
+    /**
+     * <p>
+     * The globally unique identifier for the KMS key.
+     * </p>
+     * 
+     * @return The globally unique identifier for the KMS key.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (ARN) of the KMS key. For examples, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Key Management
+     * Service (KMS)</a> in the Example ARNs section of the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (ARN) of the KMS key. For examples, see <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Key
+     *         Management Service (KMS)</a> in the Example ARNs section of the <i>Amazon Web Services General
+     *         Reference</i>.
+     */
+    public final String arn() {
+        return arn;
+    }
+
+    /**
+     * <p>
+     * The date and time when the KMS key was created.
+     * </p>
+     * 
+     * @return The date and time when the KMS key was created.
+     */
+    public final Instant creationDate() {
+        return creationDate;
+    }
+
+    /**
+     * <p>
+     * Specifies whether the KMS key is enabled. When <code>KeyState</code> is <code>Enabled</code> this value is true,
+     * otherwise it is false.
+     * </p>
+     * 
+     * @return Specifies whether the KMS key is enabled. When <code>KeyState</code> is <code>Enabled</code> this value
+     *         is true, otherwise it is false.
+     */
+    public final Boolean enabled() {
+        return enabled;
+    }
+
+    /**
+     * <p>
+     * The description of the KMS key.
+     * </p>
+     * 
+     * @return The description of the KMS key.
+     */
+    public final String description() {
+        return description;
+    }
+
+    /**
+     * <p>
+     * The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+     * cryptographic operations</a> for which you can use the KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyUsage} will
+     * return {@link KeyUsageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyUsageAsString}.
+     * </p>
+     * 
+     * @return The <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operations</a> for which you can use the KMS key.
+     * @see KeyUsageType
+     */
+    public final KeyUsageType keyUsage() {
+        return KeyUsageType.fromValue(keyUsage);
+    }
+
+    /**
+     * <p>
+     * The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+     * cryptographic operations</a> for which you can use the KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyUsage} will
+     * return {@link KeyUsageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyUsageAsString}.
+     * </p>
+     * 
+     * @return The <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+     *         >cryptographic operations</a> for which you can use the KMS key.
+     * @see KeyUsageType
+     */
+    public final String keyUsageAsString() {
+        return keyUsage;
+    }
+
+    /**
+     * <p>
+     * The current status of the KMS key.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyState} will
+     * return {@link KeyState#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyStateAsString}.
+     * </p>
+     * 
+     * @return The current status of the KMS key.</p>
+     *         <p>
+     *         For more information about how key state affects the use of a KMS key, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i>Key Management Service Developer Guide</i>.
+     * @see KeyState
+     */
+    public final KeyState keyState() {
+        return KeyState.fromValue(keyState);
+    }
+
+    /**
+     * <p>
+     * The current status of the KMS key.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyState} will
+     * return {@link KeyState#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyStateAsString}.
+     * </p>
+     * 
+     * @return The current status of the KMS key.</p>
+     *         <p>
+     *         For more information about how key state affects the use of a KMS key, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i>Key Management Service Developer Guide</i>.
+     * @see KeyState
+     */
+    public final String keyStateAsString() {
+        return keyState;
+    }
+
+    /**
+     * <p>
+     * The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is scheduled
+     * for deletion, that is, when its <code>KeyState</code> is <code>PendingDeletion</code>.
+     * </p>
+     * <p>
+     * When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
+     * <code>PendingReplicaDeletion</code> and the length of its waiting period is displayed in the
+     * <code>PendingDeletionWindowInDays</code> field.
+     * </p>
+     * 
+     * @return The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is
+     *         scheduled for deletion, that is, when its <code>KeyState</code> is <code>PendingDeletion</code>.</p>
+     *         <p>
+     *         When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
+     *         state is <code>PendingReplicaDeletion</code> and the length of its waiting period is displayed in the
+     *         <code>PendingDeletionWindowInDays</code> field.
+     */
+    public final Instant deletionDate() {
+        return deletionDate;
+    }
+
+    /**
+     * <p>
+     * The time at which the imported key material expires. When the key material expires, KMS deletes the key material
+     * and the KMS key becomes unusable. This value is present only for KMS keys whose <code>Origin</code> is
+     * <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, otherwise this
+     * value is omitted.
+     * </p>
+     * 
+     * @return The time at which the imported key material expires. When the key material expires, KMS deletes the key
+     *         material and the KMS key becomes unusable. This value is present only for KMS keys whose
+     *         <code>Origin</code> is <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is
+     *         <code>KEY_MATERIAL_EXPIRES</code>, otherwise this value is omitted.
+     */
+    public final Instant validTo() {
+        return validTo;
+    }
+
+    /**
+     * <p>
+     * The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created the key
+     * material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS key doesn't have any
+     * key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was created in the CloudHSM cluster
+     * associated with a custom key store.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #origin} will
+     * return {@link OriginType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #originAsString}.
+     * </p>
+     * 
+     * @return The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created the
+     *         key material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS key
+     *         doesn't have any key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was created
+     *         in the CloudHSM cluster associated with a custom key store.
+     * @see OriginType
+     */
+    public final OriginType origin() {
+        return OriginType.fromValue(origin);
+    }
+
+    /**
+     * <p>
+     * The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created the key
+     * material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS key doesn't have any
+     * key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was created in the CloudHSM cluster
+     * associated with a custom key store.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #origin} will
+     * return {@link OriginType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #originAsString}.
+     * </p>
+     * 
+     * @return The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created the
+     *         key material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS key
+     *         doesn't have any key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was created
+     *         in the CloudHSM cluster associated with a custom key store.
+     * @see OriginType
+     */
+    public final String originAsString() {
+        return origin;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>
+     * that contains the KMS key. This field is present only when the KMS key is created in a custom key store.
+     * </p>
+     * 
+     * @return A unique identifier for the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     *         store</a> that contains the KMS key. This field is present only when the KMS key is created in a custom
+     *         key store.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS key
+     * in an CloudHSM <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>,
+     * KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is present only when
+     * the KMS key is created in an CloudHSM key store.
+     * </p>
+     * 
+     * @return The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a
+     *         KMS key in an CloudHSM <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+     *         store</a>, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is
+     *         present only when the KMS key is created in an CloudHSM key store.
+     */
+    public final String cloudHsmClusterId() {
+        return cloudHsmClusterId;
+    }
+
+    /**
+     * <p>
+     * Specifies whether the KMS key's key material expires. This value is present only when <code>Origin</code> is
+     * <code>EXTERNAL</code>, otherwise this value is omitted.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #expirationModel}
+     * will return {@link ExpirationModelType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #expirationModelAsString}.
+     * </p>
+     * 
+     * @return Specifies whether the KMS key's key material expires. This value is present only when <code>Origin</code>
+     *         is <code>EXTERNAL</code>, otherwise this value is omitted.
+     * @see ExpirationModelType
+     */
+    public final ExpirationModelType expirationModel() {
+        return ExpirationModelType.fromValue(expirationModel);
+    }
+
+    /**
+     * <p>
+     * Specifies whether the KMS key's key material expires. This value is present only when <code>Origin</code> is
+     * <code>EXTERNAL</code>, otherwise this value is omitted.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #expirationModel}
+     * will return {@link ExpirationModelType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #expirationModelAsString}.
+     * </p>
+     * 
+     * @return Specifies whether the KMS key's key material expires. This value is present only when <code>Origin</code>
+     *         is <code>EXTERNAL</code>, otherwise this value is omitted.
+     * @see ExpirationModelType
+     */
+    public final String expirationModelAsString() {
+        return expirationModel;
+    }
+
+    /**
+     * <p>
+     * The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon
+     * Web Services managed. For more information about the difference, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyManager} will
+     * return {@link KeyManagerType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyManagerAsString}.
+     * </p>
+     * 
+     * @return The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
+     *         Amazon Web Services managed. For more information about the difference, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in the
+     *         <i>Key Management Service Developer Guide</i>.
+     * @see KeyManagerType
+     */
+    public final KeyManagerType keyManager() {
+        return KeyManagerType.fromValue(keyManager);
+    }
+
+    /**
+     * <p>
+     * The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon
+     * Web Services managed. For more information about the difference, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyManager} will
+     * return {@link KeyManagerType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyManagerAsString}.
+     * </p>
+     * 
+     * @return The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
+     *         Amazon Web Services managed. For more information about the difference, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in the
+     *         <i>Key Management Service Developer Guide</i>.
+     * @see KeyManagerType
+     */
+    public final String keyManagerAsString() {
+        return keyManager;
+    }
+
+    /**
+     * <p>
+     * Instead, use the <code>KeySpec</code> field.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that you
+     * use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both fields.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customerMasterKeySpec} will return {@link CustomerMasterKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #customerMasterKeySpecAsString}.
+     * </p>
+     * 
+     * @return Instead, use the <code>KeySpec</code> field.</p>
+     *         <p>
+     *         The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend
+     *         that you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS
+     *         supports both fields.
+     * @see CustomerMasterKeySpec
+     * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+     */
+    @Deprecated
+    public final CustomerMasterKeySpec customerMasterKeySpec() {
+        return CustomerMasterKeySpec.fromValue(customerMasterKeySpec);
+    }
+
+    /**
+     * <p>
+     * Instead, use the <code>KeySpec</code> field.
+     * </p>
+     * <p>
+     * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that you
+     * use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both fields.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #customerMasterKeySpec} will return {@link CustomerMasterKeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #customerMasterKeySpecAsString}.
+     * </p>
+     * 
+     * @return Instead, use the <code>KeySpec</code> field.</p>
+     *         <p>
+     *         The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend
+     *         that you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS
+     *         supports both fields.
+     * @see CustomerMasterKeySpec
+     * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+     */
+    @Deprecated
+    public final String customerMasterKeySpecAsString() {
+        return customerMasterKeySpec;
+    }
+
+    /**
+     * <p>
+     * Describes the type of key material in the KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link KeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return Describes the type of key material in the KMS key.
+     * @see KeySpec
+     */
+    public final KeySpec keySpec() {
+        return KeySpec.fromValue(keySpec);
+    }
+
+    /**
+     * <p>
+     * Describes the type of key material in the KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keySpec} will
+     * return {@link KeySpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keySpecAsString}.
+     * </p>
+     * 
+     * @return Describes the type of key material in the KMS key.
+     * @see KeySpec
+     */
+    public final String keySpecAsString() {
+        return keySpec;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms
+     * within KMS.
+     * </p>
+     * <p>
+     * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionAlgorithms} method.
+     * </p>
+     * 
+     * @return The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+     *         algorithms within KMS.</p>
+     *         <p>
+     *         This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+     */
+    public final List<EncryptionAlgorithmSpec> encryptionAlgorithms() {
+        return EncryptionAlgorithmSpecListCopier.copyStringToEnum(encryptionAlgorithms);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the EncryptionAlgorithms property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasEncryptionAlgorithms() {
+        return encryptionAlgorithms != null && !(encryptionAlgorithms instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms
+     * within KMS.
+     * </p>
+     * <p>
+     * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasEncryptionAlgorithms} method.
+     * </p>
+     * 
+     * @return The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+     *         algorithms within KMS.</p>
+     *         <p>
+     *         This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+     */
+    public final List<String> encryptionAlgorithmsAsStrings() {
+        return encryptionAlgorithms;
+    }
+
+    /**
+     * <p>
+     * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within
+     * KMS.
+     * </p>
+     * <p>
+     * This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasSigningAlgorithms} method.
+     * </p>
+     * 
+     * @return The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
+     *         algorithms within KMS.</p>
+     *         <p>
+     *         This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+     */
+    public final List<SigningAlgorithmSpec> signingAlgorithms() {
+        return SigningAlgorithmSpecListCopier.copyStringToEnum(signingAlgorithms);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the SigningAlgorithms property. This DOES
+     * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasSigningAlgorithms() {
+        return signingAlgorithms != null && !(signingAlgorithms instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within
+     * KMS.
+     * </p>
+     * <p>
+     * This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasSigningAlgorithms} method.
+     * </p>
+     * 
+     * @return The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
+     *         algorithms within KMS.</p>
+     *         <p>
+     *         This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+     */
+    public final List<String> signingAlgorithmsAsStrings() {
+        return signingAlgorithms;
+    }
+
+    /**
+     * <p>
+     * Indicates whether the KMS key is a multi-Region (<code>True</code>) or regional (<code>False</code>) key. This
+     * value is <code>True</code> for multi-Region primary and replica keys and <code>False</code> for regional KMS
+     * keys.
+     * </p>
+     * <p>
+     * For more information about multi-Region keys, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region keys in
+     * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Indicates whether the KMS key is a multi-Region (<code>True</code>) or regional (<code>False</code>) key.
+     *         This value is <code>True</code> for multi-Region primary and replica keys and <code>False</code> for
+     *         regional KMS keys.</p>
+     *         <p>
+     *         For more information about multi-Region keys, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region
+     *         keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean multiRegion() {
+        return multiRegion;
+    }
+
+    /**
+     * <p>
+     * Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the
+     * <code>MultiRegion</code> field is <code>True</code>.
+     * </p>
+     * <p>
+     * For more information about any listed KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * <code>MultiRegionKeyType</code> indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code>
+     * key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>PrimaryKey</code> displays the key ARN and Region of the primary key. This field displays the current KMS
+     * key if it is the primary key.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * <code>ReplicaKeys</code> displays the key ARNs and Regions of all replica keys. This field includes the current
+     * KMS key if it is a replica key.
+     * </p>
+     * </li>
+     * </ul>
+     * 
+     * @return Lists the primary and replica keys in same multi-Region key. This field is present only when the value of
+     *         the <code>MultiRegion</code> field is <code>True</code>.</p>
+     *         <p>
+     *         For more information about any listed KMS key, use the <a>DescribeKey</a> operation.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         <code>MultiRegionKeyType</code> indicates whether the KMS key is a <code>PRIMARY</code> or
+     *         <code>REPLICA</code> key.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>PrimaryKey</code> displays the key ARN and Region of the primary key. This field displays the
+     *         current KMS key if it is the primary key.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         <code>ReplicaKeys</code> displays the key ARNs and Regions of all replica keys. This field includes the
+     *         current KMS key if it is a replica key.
+     *         </p>
+     *         </li>
+     */
+    public final MultiRegionConfiguration multiRegionConfiguration() {
+        return multiRegionConfiguration;
+    }
+
+    /**
+     * <p>
+     * The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
+     * last of its replica keys is deleted. This value is present only when the <code>KeyState</code> of the KMS key is
+     * <code>PendingReplicaDeletion</code>. That indicates that the KMS key is the primary key in a multi-Region key, it
+     * is scheduled for deletion, and it still has existing replica keys.
+     * </p>
+     * <p>
+     * When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
+     * displayed in the <code>DeletionDate</code> field. However, when the primary key in a multi-Region key is
+     * scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
+     * displays that waiting period. When the last replica key in the multi-Region key is deleted, the
+     * <code>KeyState</code> of the scheduled primary key changes from <code>PendingReplicaDeletion</code> to
+     * <code>PendingDeletion</code> and the deletion date appears in the <code>DeletionDate</code> field.
+     * </p>
+     * 
+     * @return The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
+     *         when the last of its replica keys is deleted. This value is present only when the <code>KeyState</code>
+     *         of the KMS key is <code>PendingReplicaDeletion</code>. That indicates that the KMS key is the primary key
+     *         in a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.</p>
+     *         <p>
+     *         When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date
+     *         is displayed in the <code>DeletionDate</code> field. However, when the primary key in a multi-Region key
+     *         is scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted.
+     *         This value displays that waiting period. When the last replica key in the multi-Region key is deleted,
+     *         the <code>KeyState</code> of the scheduled primary key changes from <code>PendingReplicaDeletion</code>
+     *         to <code>PendingDeletion</code> and the deletion date appears in the <code>DeletionDate</code> field.
+     */
+    public final Integer pendingDeletionWindowInDays() {
+        return pendingDeletionWindowInDays;
+    }
+
+    /**
+     * <p>
+     * The message authentication code (MAC) algorithm that the HMAC KMS key supports.
+     * </p>
+     * <p>
+     * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>GENERATE_VERIFY_MAC</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasMacAlgorithms} method.
+     * </p>
+     * 
+     * @return The message authentication code (MAC) algorithm that the HMAC KMS key supports.</p>
+     *         <p>
+     *         This value is present only when the <code>KeyUsage</code> of the KMS key is
+     *         <code>GENERATE_VERIFY_MAC</code>.
+     */
+    public final List<MacAlgorithmSpec> macAlgorithms() {
+        return MacAlgorithmSpecListCopier.copyStringToEnum(macAlgorithms);
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the MacAlgorithms property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasMacAlgorithms() {
+        return macAlgorithms != null && !(macAlgorithms instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The message authentication code (MAC) algorithm that the HMAC KMS key supports.
+     * </p>
+     * <p>
+     * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>GENERATE_VERIFY_MAC</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasMacAlgorithms} method.
+     * </p>
+     * 
+     * @return The message authentication code (MAC) algorithm that the HMAC KMS key supports.</p>
+     *         <p>
+     *         This value is present only when the <code>KeyUsage</code> of the KMS key is
+     *         <code>GENERATE_VERIFY_MAC</code>.
+     */
+    public final List<String> macAlgorithmsAsStrings() {
+        return macAlgorithms;
+    }
+
+    /**
+     * <p>
+     * Information about the external key that is associated with a KMS key in an external key store.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key">External
+     * key</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Information about the external key that is associated with a KMS key in an external key store.</p>
+     *         <p>
+     *         For more information, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+     *         >External key</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final XksKeyConfigurationType xksKeyConfiguration() {
+        return xksKeyConfiguration;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(awsAccountId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(arn());
+        hashCode = 31 * hashCode + Objects.hashCode(creationDate());
+        hashCode = 31 * hashCode + Objects.hashCode(enabled());
+        hashCode = 31 * hashCode + Objects.hashCode(description());
+        hashCode = 31 * hashCode + Objects.hashCode(keyUsageAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keyStateAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(deletionDate());
+        hashCode = 31 * hashCode + Objects.hashCode(validTo());
+        hashCode = 31 * hashCode + Objects.hashCode(originAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        hashCode = 31 * hashCode + Objects.hashCode(cloudHsmClusterId());
+        hashCode = 31 * hashCode + Objects.hashCode(expirationModelAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keyManagerAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(customerMasterKeySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(keySpecAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasEncryptionAlgorithms() ? encryptionAlgorithmsAsStrings() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(hasSigningAlgorithms() ? signingAlgorithmsAsStrings() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(multiRegion());
+        hashCode = 31 * hashCode + Objects.hashCode(multiRegionConfiguration());
+        hashCode = 31 * hashCode + Objects.hashCode(pendingDeletionWindowInDays());
+        hashCode = 31 * hashCode + Objects.hashCode(hasMacAlgorithms() ? macAlgorithmsAsStrings() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(xksKeyConfiguration());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof KeyMetadata)) {
+            return false;
+        }
+        KeyMetadata other = (KeyMetadata) obj;
+        return Objects.equals(awsAccountId(), other.awsAccountId()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(arn(), other.arn()) && Objects.equals(creationDate(), other.creationDate())
+                && Objects.equals(enabled(), other.enabled()) && Objects.equals(description(), other.description())
+                && Objects.equals(keyUsageAsString(), other.keyUsageAsString())
+                && Objects.equals(keyStateAsString(), other.keyStateAsString())
+                && Objects.equals(deletionDate(), other.deletionDate()) && Objects.equals(validTo(), other.validTo())
+                && Objects.equals(originAsString(), other.originAsString())
+                && Objects.equals(customKeyStoreId(), other.customKeyStoreId())
+                && Objects.equals(cloudHsmClusterId(), other.cloudHsmClusterId())
+                && Objects.equals(expirationModelAsString(), other.expirationModelAsString())
+                && Objects.equals(keyManagerAsString(), other.keyManagerAsString())
+                && Objects.equals(customerMasterKeySpecAsString(), other.customerMasterKeySpecAsString())
+                && Objects.equals(keySpecAsString(), other.keySpecAsString())
+                && hasEncryptionAlgorithms() == other.hasEncryptionAlgorithms()
+                && Objects.equals(encryptionAlgorithmsAsStrings(), other.encryptionAlgorithmsAsStrings())
+                && hasSigningAlgorithms() == other.hasSigningAlgorithms()
+                && Objects.equals(signingAlgorithmsAsStrings(), other.signingAlgorithmsAsStrings())
+                && Objects.equals(multiRegion(), other.multiRegion())
+                && Objects.equals(multiRegionConfiguration(), other.multiRegionConfiguration())
+                && Objects.equals(pendingDeletionWindowInDays(), other.pendingDeletionWindowInDays())
+                && hasMacAlgorithms() == other.hasMacAlgorithms()
+                && Objects.equals(macAlgorithmsAsStrings(), other.macAlgorithmsAsStrings())
+                && Objects.equals(xksKeyConfiguration(), other.xksKeyConfiguration());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("KeyMetadata").add("AWSAccountId", awsAccountId()).add("KeyId", keyId()).add("Arn", arn())
+                .add("CreationDate", creationDate()).add("Enabled", enabled()).add("Description", description())
+                .add("KeyUsage", keyUsageAsString()).add("KeyState", keyStateAsString()).add("DeletionDate", deletionDate())
+                .add("ValidTo", validTo()).add("Origin", originAsString()).add("CustomKeyStoreId", customKeyStoreId())
+                .add("CloudHsmClusterId", cloudHsmClusterId()).add("ExpirationModel", expirationModelAsString())
+                .add("KeyManager", keyManagerAsString()).add("CustomerMasterKeySpec", customerMasterKeySpecAsString())
+                .add("KeySpec", keySpecAsString())
+                .add("EncryptionAlgorithms", hasEncryptionAlgorithms() ? encryptionAlgorithmsAsStrings() : null)
+                .add("SigningAlgorithms", hasSigningAlgorithms() ? signingAlgorithmsAsStrings() : null)
+                .add("MultiRegion", multiRegion()).add("MultiRegionConfiguration", multiRegionConfiguration())
+                .add("PendingDeletionWindowInDays", pendingDeletionWindowInDays())
+                .add("MacAlgorithms", hasMacAlgorithms() ? macAlgorithmsAsStrings() : null)
+                .add("XksKeyConfiguration", xksKeyConfiguration()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "AWSAccountId":
+            return Optional.ofNullable(clazz.cast(awsAccountId()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Arn":
+            return Optional.ofNullable(clazz.cast(arn()));
+        case "CreationDate":
+            return Optional.ofNullable(clazz.cast(creationDate()));
+        case "Enabled":
+            return Optional.ofNullable(clazz.cast(enabled()));
+        case "Description":
+            return Optional.ofNullable(clazz.cast(description()));
+        case "KeyUsage":
+            return Optional.ofNullable(clazz.cast(keyUsageAsString()));
+        case "KeyState":
+            return Optional.ofNullable(clazz.cast(keyStateAsString()));
+        case "DeletionDate":
+            return Optional.ofNullable(clazz.cast(deletionDate()));
+        case "ValidTo":
+            return Optional.ofNullable(clazz.cast(validTo()));
+        case "Origin":
+            return Optional.ofNullable(clazz.cast(originAsString()));
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        case "CloudHsmClusterId":
+            return Optional.ofNullable(clazz.cast(cloudHsmClusterId()));
+        case "ExpirationModel":
+            return Optional.ofNullable(clazz.cast(expirationModelAsString()));
+        case "KeyManager":
+            return Optional.ofNullable(clazz.cast(keyManagerAsString()));
+        case "CustomerMasterKeySpec":
+            return Optional.ofNullable(clazz.cast(customerMasterKeySpecAsString()));
+        case "KeySpec":
+            return Optional.ofNullable(clazz.cast(keySpecAsString()));
+        case "EncryptionAlgorithms":
+            return Optional.ofNullable(clazz.cast(encryptionAlgorithmsAsStrings()));
+        case "SigningAlgorithms":
+            return Optional.ofNullable(clazz.cast(signingAlgorithmsAsStrings()));
+        case "MultiRegion":
+            return Optional.ofNullable(clazz.cast(multiRegion()));
+        case "MultiRegionConfiguration":
+            return Optional.ofNullable(clazz.cast(multiRegionConfiguration()));
+        case "PendingDeletionWindowInDays":
+            return Optional.ofNullable(clazz.cast(pendingDeletionWindowInDays()));
+        case "MacAlgorithms":
+            return Optional.ofNullable(clazz.cast(macAlgorithmsAsStrings()));
+        case "XksKeyConfiguration":
+            return Optional.ofNullable(clazz.cast(xksKeyConfiguration()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<KeyMetadata, T> g) {
+        return obj -> g.apply((KeyMetadata) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KeyMetadata> {
+        /**
+         * <p>
+         * The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
+         * </p>
+         * 
+         * @param awsAccountId
+         *        The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder awsAccountId(String awsAccountId);
+
+        /**
+         * <p>
+         * The globally unique identifier for the KMS key.
+         * </p>
+         * 
+         * @param keyId
+         *        The globally unique identifier for the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (ARN) of the KMS key. For examples, see <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Key
+         * Management Service (KMS)</a> in the Example ARNs section of the <i>Amazon Web Services General Reference</i>.
+         * </p>
+         * 
+         * @param arn
+         *        The Amazon Resource Name (ARN) of the KMS key. For examples, see <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Key
+         *        Management Service (KMS)</a> in the Example ARNs section of the <i>Amazon Web Services General
+         *        Reference</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder arn(String arn);
+
+        /**
+         * <p>
+         * The date and time when the KMS key was created.
+         * </p>
+         * 
+         * @param creationDate
+         *        The date and time when the KMS key was created.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder creationDate(Instant creationDate);
+
+        /**
+         * <p>
+         * Specifies whether the KMS key is enabled. When <code>KeyState</code> is <code>Enabled</code> this value is
+         * true, otherwise it is false.
+         * </p>
+         * 
+         * @param enabled
+         *        Specifies whether the KMS key is enabled. When <code>KeyState</code> is <code>Enabled</code> this
+         *        value is true, otherwise it is false.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder enabled(Boolean enabled);
+
+        /**
+         * <p>
+         * The description of the KMS key.
+         * </p>
+         * 
+         * @param description
+         *        The description of the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder description(String description);
+
+        /**
+         * <p>
+         * The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+         * cryptographic operations</a> for which you can use the KMS key.
+         * </p>
+         * 
+         * @param keyUsage
+         *        The <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operations</a> for which you can use the KMS key.
+         * @see KeyUsageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyUsageType
+         */
+        Builder keyUsage(String keyUsage);
+
+        /**
+         * <p>
+         * The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">
+         * cryptographic operations</a> for which you can use the KMS key.
+         * </p>
+         * 
+         * @param keyUsage
+         *        The <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations"
+         *        >cryptographic operations</a> for which you can use the KMS key.
+         * @see KeyUsageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyUsageType
+         */
+        Builder keyUsage(KeyUsageType keyUsage);
+
+        /**
+         * <p>
+         * The current status of the KMS key.
+         * </p>
+         * <p>
+         * For more information about how key state affects the use of a KMS key, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+         * <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param keyState
+         *        The current status of the KMS key.</p>
+         *        <p>
+         *        For more information about how key state affects the use of a KMS key, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>
+         *        in the <i>Key Management Service Developer Guide</i>.
+         * @see KeyState
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyState
+         */
+        Builder keyState(String keyState);
+
+        /**
+         * <p>
+         * The current status of the KMS key.
+         * </p>
+         * <p>
+         * For more information about how key state affects the use of a KMS key, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+         * <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param keyState
+         *        The current status of the KMS key.</p>
+         *        <p>
+         *        For more information about how key state affects the use of a KMS key, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>
+         *        in the <i>Key Management Service Developer Guide</i>.
+         * @see KeyState
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyState
+         */
+        Builder keyState(KeyState keyState);
+
+        /**
+         * <p>
+         * The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is
+         * scheduled for deletion, that is, when its <code>KeyState</code> is <code>PendingDeletion</code>.
+         * </p>
+         * <p>
+         * When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
+         * state is <code>PendingReplicaDeletion</code> and the length of its waiting period is displayed in the
+         * <code>PendingDeletionWindowInDays</code> field.
+         * </p>
+         * 
+         * @param deletionDate
+         *        The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is
+         *        scheduled for deletion, that is, when its <code>KeyState</code> is <code>PendingDeletion</code>.</p>
+         *        <p>
+         *        When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its
+         *        key state is <code>PendingReplicaDeletion</code> and the length of its waiting period is displayed in
+         *        the <code>PendingDeletionWindowInDays</code> field.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder deletionDate(Instant deletionDate);
+
+        /**
+         * <p>
+         * The time at which the imported key material expires. When the key material expires, KMS deletes the key
+         * material and the KMS key becomes unusable. This value is present only for KMS keys whose <code>Origin</code>
+         * is <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>,
+         * otherwise this value is omitted.
+         * </p>
+         * 
+         * @param validTo
+         *        The time at which the imported key material expires. When the key material expires, KMS deletes the
+         *        key material and the KMS key becomes unusable. This value is present only for KMS keys whose
+         *        <code>Origin</code> is <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is
+         *        <code>KEY_MATERIAL_EXPIRES</code>, otherwise this value is omitted.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder validTo(Instant validTo);
+
+        /**
+         * <p>
+         * The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created the key
+         * material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS key doesn't have
+         * any key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was created in the CloudHSM
+         * cluster associated with a custom key store.
+         * </p>
+         * 
+         * @param origin
+         *        The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created
+         *        the key material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS
+         *        key doesn't have any key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was
+         *        created in the CloudHSM cluster associated with a custom key store.
+         * @see OriginType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see OriginType
+         */
+        Builder origin(String origin);
+
+        /**
+         * <p>
+         * The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created the key
+         * material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS key doesn't have
+         * any key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was created in the CloudHSM
+         * cluster associated with a custom key store.
+         * </p>
+         * 
+         * @param origin
+         *        The source of the key material for the KMS key. When this value is <code>AWS_KMS</code>, KMS created
+         *        the key material. When this value is <code>EXTERNAL</code>, the key material was imported or the KMS
+         *        key doesn't have any key material. When this value is <code>AWS_CLOUDHSM</code>, the key material was
+         *        created in the CloudHSM cluster associated with a custom key store.
+         * @see OriginType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see OriginType
+         */
+        Builder origin(OriginType origin);
+
+        /**
+         * <p>
+         * A unique identifier for the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         * store</a> that contains the KMS key. This field is present only when the KMS key is created in a custom key
+         * store.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        A unique identifier for the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         *        store</a> that contains the KMS key. This field is present only when the KMS key is created in a
+         *        custom key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        /**
+         * <p>
+         * The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS
+         * key in an CloudHSM <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         * store</a>, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is
+         * present only when the KMS key is created in an CloudHSM key store.
+         * </p>
+         * 
+         * @param cloudHsmClusterId
+         *        The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create
+         *        a KMS key in an CloudHSM <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key
+         *        store</a>, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field
+         *        is present only when the KMS key is created in an CloudHSM key store.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder cloudHsmClusterId(String cloudHsmClusterId);
+
+        /**
+         * <p>
+         * Specifies whether the KMS key's key material expires. This value is present only when <code>Origin</code> is
+         * <code>EXTERNAL</code>, otherwise this value is omitted.
+         * </p>
+         * 
+         * @param expirationModel
+         *        Specifies whether the KMS key's key material expires. This value is present only when
+         *        <code>Origin</code> is <code>EXTERNAL</code>, otherwise this value is omitted.
+         * @see ExpirationModelType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ExpirationModelType
+         */
+        Builder expirationModel(String expirationModel);
+
+        /**
+         * <p>
+         * Specifies whether the KMS key's key material expires. This value is present only when <code>Origin</code> is
+         * <code>EXTERNAL</code>, otherwise this value is omitted.
+         * </p>
+         * 
+         * @param expirationModel
+         *        Specifies whether the KMS key's key material expires. This value is present only when
+         *        <code>Origin</code> is <code>EXTERNAL</code>, otherwise this value is omitted.
+         * @see ExpirationModelType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see ExpirationModelType
+         */
+        Builder expirationModel(ExpirationModelType expirationModel);
+
+        /**
+         * <p>
+         * The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
+         * Amazon Web Services managed. For more information about the difference, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in the
+         * <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param keyManager
+         *        The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed
+         *        or Amazon Web Services managed. For more information about the difference, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in
+         *        the <i>Key Management Service Developer Guide</i>.
+         * @see KeyManagerType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyManagerType
+         */
+        Builder keyManager(String keyManager);
+
+        /**
+         * <p>
+         * The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
+         * Amazon Web Services managed. For more information about the difference, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in the
+         * <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param keyManager
+         *        The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed
+         *        or Amazon Web Services managed. For more information about the difference, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a> in
+         *        the <i>Key Management Service Developer Guide</i>.
+         * @see KeyManagerType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyManagerType
+         */
+        Builder keyManager(KeyManagerType keyManager);
+
+        /**
+         * <p>
+         * Instead, use the <code>KeySpec</code> field.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that
+         * you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both
+         * fields.
+         * </p>
+         * 
+         * @param customerMasterKeySpec
+         *        Instead, use the <code>KeySpec</code> field.</p>
+         *        <p>
+         *        The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We
+         *        recommend that you use the <code>KeySpec</code> field in your code. However, to avoid breaking
+         *        changes, KMS supports both fields.
+         * @see CustomerMasterKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomerMasterKeySpec
+         * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+         */
+        @Deprecated
+        Builder customerMasterKeySpec(String customerMasterKeySpec);
+
+        /**
+         * <p>
+         * Instead, use the <code>KeySpec</code> field.
+         * </p>
+         * <p>
+         * The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We recommend that
+         * you use the <code>KeySpec</code> field in your code. However, to avoid breaking changes, KMS supports both
+         * fields.
+         * </p>
+         * 
+         * @param customerMasterKeySpec
+         *        Instead, use the <code>KeySpec</code> field.</p>
+         *        <p>
+         *        The <code>KeySpec</code> and <code>CustomerMasterKeySpec</code> fields have the same value. We
+         *        recommend that you use the <code>KeySpec</code> field in your code. However, to avoid breaking
+         *        changes, KMS supports both fields.
+         * @see CustomerMasterKeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see CustomerMasterKeySpec
+         * @deprecated This field has been deprecated. Instead, use the KeySpec field.
+         */
+        @Deprecated
+        Builder customerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec);
+
+        /**
+         * <p>
+         * Describes the type of key material in the KMS key.
+         * </p>
+         * 
+         * @param keySpec
+         *        Describes the type of key material in the KMS key.
+         * @see KeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeySpec
+         */
+        Builder keySpec(String keySpec);
+
+        /**
+         * <p>
+         * Describes the type of key material in the KMS key.
+         * </p>
+         * 
+         * @param keySpec
+         *        Describes the type of key material in the KMS key.
+         * @see KeySpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeySpec
+         */
+        Builder keySpec(KeySpec keySpec);
+
+        /**
+         * <p>
+         * The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         * algorithms within KMS.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithmsWithStrings(Collection<String> encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         * algorithms within KMS.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithmsWithStrings(String... encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         * algorithms within KMS.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithms(Collection<EncryptionAlgorithmSpec> encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         * algorithms within KMS.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>ENCRYPT_DECRYPT</code>.
+         * </p>
+         * 
+         * @param encryptionAlgorithms
+         *        The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>ENCRYPT_DECRYPT</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder encryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
+         * within KMS.
+         * </p>
+         * <p>
+         * This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithmsWithStrings(Collection<String> signingAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
+         * within KMS.
+         * </p>
+         * <p>
+         * This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithmsWithStrings(String... signingAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
+         * within KMS.
+         * </p>
+         * <p>
+         * This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithms(Collection<SigningAlgorithmSpec> signingAlgorithms);
+
+        /**
+         * <p>
+         * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms
+         * within KMS.
+         * </p>
+         * <p>
+         * This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * </p>
+         * 
+         * @param signingAlgorithms
+         *        The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
+         *        algorithms within KMS.</p>
+         *        <p>
+         *        This field appears only when the <code>KeyUsage</code> of the KMS key is <code>SIGN_VERIFY</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signingAlgorithms(SigningAlgorithmSpec... signingAlgorithms);
+
+        /**
+         * <p>
+         * Indicates whether the KMS key is a multi-Region (<code>True</code>) or regional (<code>False</code>) key.
+         * This value is <code>True</code> for multi-Region primary and replica keys and <code>False</code> for regional
+         * KMS keys.
+         * </p>
+         * <p>
+         * For more information about multi-Region keys, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Multi-Region
+         * keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param multiRegion
+         *        Indicates whether the KMS key is a multi-Region (<code>True</code>) or regional (<code>False</code>)
+         *        key. This value is <code>True</code> for multi-Region primary and replica keys and <code>False</code>
+         *        for regional KMS keys.</p>
+         *        <p>
+         *        For more information about multi-Region keys, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html"
+         *        >Multi-Region keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder multiRegion(Boolean multiRegion);
+
+        /**
+         * <p>
+         * Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the
+         * <code>MultiRegion</code> field is <code>True</code>.
+         * </p>
+         * <p>
+         * For more information about any listed KMS key, use the <a>DescribeKey</a> operation.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>MultiRegionKeyType</code> indicates whether the KMS key is a <code>PRIMARY</code> or
+         * <code>REPLICA</code> key.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>PrimaryKey</code> displays the key ARN and Region of the primary key. This field displays the current
+         * KMS key if it is the primary key.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>ReplicaKeys</code> displays the key ARNs and Regions of all replica keys. This field includes the
+         * current KMS key if it is a replica key.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param multiRegionConfiguration
+         *        Lists the primary and replica keys in same multi-Region key. This field is present only when the value
+         *        of the <code>MultiRegion</code> field is <code>True</code>.</p>
+         *        <p>
+         *        For more information about any listed KMS key, use the <a>DescribeKey</a> operation.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        <code>MultiRegionKeyType</code> indicates whether the KMS key is a <code>PRIMARY</code> or
+         *        <code>REPLICA</code> key.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>PrimaryKey</code> displays the key ARN and Region of the primary key. This field displays the
+         *        current KMS key if it is the primary key.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        <code>ReplicaKeys</code> displays the key ARNs and Regions of all replica keys. This field includes
+         *        the current KMS key if it is a replica key.
+         *        </p>
+         *        </li>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder multiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration);
+
+        /**
+         * <p>
+         * Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the
+         * <code>MultiRegion</code> field is <code>True</code>.
+         * </p>
+         * <p>
+         * For more information about any listed KMS key, use the <a>DescribeKey</a> operation.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * <code>MultiRegionKeyType</code> indicates whether the KMS key is a <code>PRIMARY</code> or
+         * <code>REPLICA</code> key.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>PrimaryKey</code> displays the key ARN and Region of the primary key. This field displays the current
+         * KMS key if it is the primary key.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * <code>ReplicaKeys</code> displays the key ARNs and Regions of all replica keys. This field includes the
+         * current KMS key if it is a replica key.
+         * </p>
+         * </li>
+         * </ul>
+         * This is a convenience method that creates an instance of the {@link MultiRegionConfiguration.Builder}
+         * avoiding the need to create one manually via {@link MultiRegionConfiguration#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link MultiRegionConfiguration.Builder#build()} is called immediately
+         * and its result is passed to {@link #multiRegionConfiguration(MultiRegionConfiguration)}.
+         * 
+         * @param multiRegionConfiguration
+         *        a consumer that will call methods on {@link MultiRegionConfiguration.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #multiRegionConfiguration(MultiRegionConfiguration)
+         */
+        default Builder multiRegionConfiguration(Consumer<MultiRegionConfiguration.Builder> multiRegionConfiguration) {
+            return multiRegionConfiguration(MultiRegionConfiguration.builder().applyMutation(multiRegionConfiguration).build());
+        }
+
+        /**
+         * <p>
+         * The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when
+         * the last of its replica keys is deleted. This value is present only when the <code>KeyState</code> of the KMS
+         * key is <code>PendingReplicaDeletion</code>. That indicates that the KMS key is the primary key in a
+         * multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
+         * </p>
+         * <p>
+         * When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is
+         * displayed in the <code>DeletionDate</code> field. However, when the primary key in a multi-Region key is
+         * scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This
+         * value displays that waiting period. When the last replica key in the multi-Region key is deleted, the
+         * <code>KeyState</code> of the scheduled primary key changes from <code>PendingReplicaDeletion</code> to
+         * <code>PendingDeletion</code> and the deletion date appears in the <code>DeletionDate</code> field.
+         * </p>
+         * 
+         * @param pendingDeletionWindowInDays
+         *        The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
+         *        when the last of its replica keys is deleted. This value is present only when the
+         *        <code>KeyState</code> of the KMS key is <code>PendingReplicaDeletion</code>. That indicates that the
+         *        KMS key is the primary key in a multi-Region key, it is scheduled for deletion, and it still has
+         *        existing replica keys.</p>
+         *        <p>
+         *        When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion
+         *        date is displayed in the <code>DeletionDate</code> field. However, when the primary key in a
+         *        multi-Region key is scheduled for deletion, its waiting period doesn't begin until all of its replica
+         *        keys are deleted. This value displays that waiting period. When the last replica key in the
+         *        multi-Region key is deleted, the <code>KeyState</code> of the scheduled primary key changes from
+         *        <code>PendingReplicaDeletion</code> to <code>PendingDeletion</code> and the deletion date appears in
+         *        the <code>DeletionDate</code> field.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder pendingDeletionWindowInDays(Integer pendingDeletionWindowInDays);
+
+        /**
+         * <p>
+         * The message authentication code (MAC) algorithm that the HMAC KMS key supports.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>GENERATE_VERIFY_MAC</code>.
+         * </p>
+         * 
+         * @param macAlgorithms
+         *        The message authentication code (MAC) algorithm that the HMAC KMS key supports.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>GENERATE_VERIFY_MAC</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder macAlgorithmsWithStrings(Collection<String> macAlgorithms);
+
+        /**
+         * <p>
+         * The message authentication code (MAC) algorithm that the HMAC KMS key supports.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>GENERATE_VERIFY_MAC</code>.
+         * </p>
+         * 
+         * @param macAlgorithms
+         *        The message authentication code (MAC) algorithm that the HMAC KMS key supports.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>GENERATE_VERIFY_MAC</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder macAlgorithmsWithStrings(String... macAlgorithms);
+
+        /**
+         * <p>
+         * The message authentication code (MAC) algorithm that the HMAC KMS key supports.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>GENERATE_VERIFY_MAC</code>.
+         * </p>
+         * 
+         * @param macAlgorithms
+         *        The message authentication code (MAC) algorithm that the HMAC KMS key supports.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>GENERATE_VERIFY_MAC</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder macAlgorithms(Collection<MacAlgorithmSpec> macAlgorithms);
+
+        /**
+         * <p>
+         * The message authentication code (MAC) algorithm that the HMAC KMS key supports.
+         * </p>
+         * <p>
+         * This value is present only when the <code>KeyUsage</code> of the KMS key is <code>GENERATE_VERIFY_MAC</code>.
+         * </p>
+         * 
+         * @param macAlgorithms
+         *        The message authentication code (MAC) algorithm that the HMAC KMS key supports.</p>
+         *        <p>
+         *        This value is present only when the <code>KeyUsage</code> of the KMS key is
+         *        <code>GENERATE_VERIFY_MAC</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder macAlgorithms(MacAlgorithmSpec... macAlgorithms);
+
+        /**
+         * <p>
+         * Information about the external key that is associated with a KMS key in an external key store.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+         * >External key</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param xksKeyConfiguration
+         *        Information about the external key that is associated with a KMS key in an external key store.</p>
+         *        <p>
+         *        For more information, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+         *        >External key</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksKeyConfiguration(XksKeyConfigurationType xksKeyConfiguration);
+
+        /**
+         * <p>
+         * Information about the external key that is associated with a KMS key in an external key store.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
+         * >External key</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link XksKeyConfigurationType.Builder} avoiding
+         * the need to create one manually via {@link XksKeyConfigurationType#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link XksKeyConfigurationType.Builder#build()} is called immediately
+         * and its result is passed to {@link #xksKeyConfiguration(XksKeyConfigurationType)}.
+         * 
+         * @param xksKeyConfiguration
+         *        a consumer that will call methods on {@link XksKeyConfigurationType.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #xksKeyConfiguration(XksKeyConfigurationType)
+         */
+        default Builder xksKeyConfiguration(Consumer<XksKeyConfigurationType.Builder> xksKeyConfiguration) {
+            return xksKeyConfiguration(XksKeyConfigurationType.builder().applyMutation(xksKeyConfiguration).build());
+        }
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String awsAccountId;
+
+        private String keyId;
+
+        private String arn;
+
+        private Instant creationDate;
+
+        private Boolean enabled;
+
+        private String description;
+
+        private String keyUsage;
+
+        private String keyState;
+
+        private Instant deletionDate;
+
+        private Instant validTo;
+
+        private String origin;
+
+        private String customKeyStoreId;
+
+        private String cloudHsmClusterId;
+
+        private String expirationModel;
+
+        private String keyManager;
+
+        private String customerMasterKeySpec;
+
+        private String keySpec;
+
+        private List<String> encryptionAlgorithms = DefaultSdkAutoConstructList.getInstance();
+
+        private List<String> signingAlgorithms = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean multiRegion;
+
+        private MultiRegionConfiguration multiRegionConfiguration;
+
+        private Integer pendingDeletionWindowInDays;
+
+        private List<String> macAlgorithms = DefaultSdkAutoConstructList.getInstance();
+
+        private XksKeyConfigurationType xksKeyConfiguration;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KeyMetadata model) {
+            awsAccountId(model.awsAccountId);
+            keyId(model.keyId);
+            arn(model.arn);
+            creationDate(model.creationDate);
+            enabled(model.enabled);
+            description(model.description);
+            keyUsage(model.keyUsage);
+            keyState(model.keyState);
+            deletionDate(model.deletionDate);
+            validTo(model.validTo);
+            origin(model.origin);
+            customKeyStoreId(model.customKeyStoreId);
+            cloudHsmClusterId(model.cloudHsmClusterId);
+            expirationModel(model.expirationModel);
+            keyManager(model.keyManager);
+            customerMasterKeySpec(model.customerMasterKeySpec);
+            keySpec(model.keySpec);
+            encryptionAlgorithmsWithStrings(model.encryptionAlgorithms);
+            signingAlgorithmsWithStrings(model.signingAlgorithms);
+            multiRegion(model.multiRegion);
+            multiRegionConfiguration(model.multiRegionConfiguration);
+            pendingDeletionWindowInDays(model.pendingDeletionWindowInDays);
+            macAlgorithmsWithStrings(model.macAlgorithms);
+            xksKeyConfiguration(model.xksKeyConfiguration);
+        }
+
+        public final String getAwsAccountId() {
+            return awsAccountId;
+        }
+
+        public final void setAwsAccountId(String awsAccountId) {
+            this.awsAccountId = awsAccountId;
+        }
+
+        @Override
+        public final Builder awsAccountId(String awsAccountId) {
+            this.awsAccountId = awsAccountId;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getArn() {
+            return arn;
+        }
+
+        public final void setArn(String arn) {
+            this.arn = arn;
+        }
+
+        @Override
+        public final Builder arn(String arn) {
+            this.arn = arn;
+            return this;
+        }
+
+        public final Instant getCreationDate() {
+            return creationDate;
+        }
+
+        public final void setCreationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+        }
+
+        @Override
+        public final Builder creationDate(Instant creationDate) {
+            this.creationDate = creationDate;
+            return this;
+        }
+
+        public final Boolean getEnabled() {
+            return enabled;
+        }
+
+        public final void setEnabled(Boolean enabled) {
+            this.enabled = enabled;
+        }
+
+        @Override
+        public final Builder enabled(Boolean enabled) {
+            this.enabled = enabled;
+            return this;
+        }
+
+        public final String getDescription() {
+            return description;
+        }
+
+        public final void setDescription(String description) {
+            this.description = description;
+        }
+
+        @Override
+        public final Builder description(String description) {
+            this.description = description;
+            return this;
+        }
+
+        public final String getKeyUsage() {
+            return keyUsage;
+        }
+
+        public final void setKeyUsage(String keyUsage) {
+            this.keyUsage = keyUsage;
+        }
+
+        @Override
+        public final Builder keyUsage(String keyUsage) {
+            this.keyUsage = keyUsage;
+            return this;
+        }
+
+        @Override
+        public final Builder keyUsage(KeyUsageType keyUsage) {
+            this.keyUsage(keyUsage == null ? null : keyUsage.toString());
+            return this;
+        }
+
+        public final String getKeyState() {
+            return keyState;
+        }
+
+        public final void setKeyState(String keyState) {
+            this.keyState = keyState;
+        }
+
+        @Override
+        public final Builder keyState(String keyState) {
+            this.keyState = keyState;
+            return this;
+        }
+
+        @Override
+        public final Builder keyState(KeyState keyState) {
+            this.keyState(keyState == null ? null : keyState.toString());
+            return this;
+        }
+
+        public final Instant getDeletionDate() {
+            return deletionDate;
+        }
+
+        public final void setDeletionDate(Instant deletionDate) {
+            this.deletionDate = deletionDate;
+        }
+
+        @Override
+        public final Builder deletionDate(Instant deletionDate) {
+            this.deletionDate = deletionDate;
+            return this;
+        }
+
+        public final Instant getValidTo() {
+            return validTo;
+        }
+
+        public final void setValidTo(Instant validTo) {
+            this.validTo = validTo;
+        }
+
+        @Override
+        public final Builder validTo(Instant validTo) {
+            this.validTo = validTo;
+            return this;
+        }
+
+        public final String getOrigin() {
+            return origin;
+        }
+
+        public final void setOrigin(String origin) {
+            this.origin = origin;
+        }
+
+        @Override
+        public final Builder origin(String origin) {
+            this.origin = origin;
+            return this;
+        }
+
+        @Override
+        public final Builder origin(OriginType origin) {
+            this.origin(origin == null ? null : origin.toString());
+            return this;
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        public final String getCloudHsmClusterId() {
+            return cloudHsmClusterId;
+        }
+
+        public final void setCloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+        }
+
+        @Override
+        public final Builder cloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+            return this;
+        }
+
+        public final String getExpirationModel() {
+            return expirationModel;
+        }
+
+        public final void setExpirationModel(String expirationModel) {
+            this.expirationModel = expirationModel;
+        }
+
+        @Override
+        public final Builder expirationModel(String expirationModel) {
+            this.expirationModel = expirationModel;
+            return this;
+        }
+
+        @Override
+        public final Builder expirationModel(ExpirationModelType expirationModel) {
+            this.expirationModel(expirationModel == null ? null : expirationModel.toString());
+            return this;
+        }
+
+        public final String getKeyManager() {
+            return keyManager;
+        }
+
+        public final void setKeyManager(String keyManager) {
+            this.keyManager = keyManager;
+        }
+
+        @Override
+        public final Builder keyManager(String keyManager) {
+            this.keyManager = keyManager;
+            return this;
+        }
+
+        @Override
+        public final Builder keyManager(KeyManagerType keyManager) {
+            this.keyManager(keyManager == null ? null : keyManager.toString());
+            return this;
+        }
+
+        @Deprecated
+        public final String getCustomerMasterKeySpec() {
+            return customerMasterKeySpec;
+        }
+
+        @Deprecated
+        public final void setCustomerMasterKeySpec(String customerMasterKeySpec) {
+            this.customerMasterKeySpec = customerMasterKeySpec;
+        }
+
+        @Override
+        @Deprecated
+        public final Builder customerMasterKeySpec(String customerMasterKeySpec) {
+            this.customerMasterKeySpec = customerMasterKeySpec;
+            return this;
+        }
+
+        @Override
+        @Deprecated
+        public final Builder customerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec) {
+            this.customerMasterKeySpec(customerMasterKeySpec == null ? null : customerMasterKeySpec.toString());
+            return this;
+        }
+
+        public final String getKeySpec() {
+            return keySpec;
+        }
+
+        public final void setKeySpec(String keySpec) {
+            this.keySpec = keySpec;
+        }
+
+        @Override
+        public final Builder keySpec(String keySpec) {
+            this.keySpec = keySpec;
+            return this;
+        }
+
+        @Override
+        public final Builder keySpec(KeySpec keySpec) {
+            this.keySpec(keySpec == null ? null : keySpec.toString());
+            return this;
+        }
+
+        public final Collection<String> getEncryptionAlgorithms() {
+            if (encryptionAlgorithms instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return encryptionAlgorithms;
+        }
+
+        public final void setEncryptionAlgorithms(Collection<String> encryptionAlgorithms) {
+            this.encryptionAlgorithms = EncryptionAlgorithmSpecListCopier.copy(encryptionAlgorithms);
+        }
+
+        @Override
+        public final Builder encryptionAlgorithmsWithStrings(Collection<String> encryptionAlgorithms) {
+            this.encryptionAlgorithms = EncryptionAlgorithmSpecListCopier.copy(encryptionAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder encryptionAlgorithmsWithStrings(String... encryptionAlgorithms) {
+            encryptionAlgorithmsWithStrings(Arrays.asList(encryptionAlgorithms));
+            return this;
+        }
+
+        @Override
+        public final Builder encryptionAlgorithms(Collection<EncryptionAlgorithmSpec> encryptionAlgorithms) {
+            this.encryptionAlgorithms = EncryptionAlgorithmSpecListCopier.copyEnumToString(encryptionAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder encryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms) {
+            encryptionAlgorithms(Arrays.asList(encryptionAlgorithms));
+            return this;
+        }
+
+        public final Collection<String> getSigningAlgorithms() {
+            if (signingAlgorithms instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return signingAlgorithms;
+        }
+
+        public final void setSigningAlgorithms(Collection<String> signingAlgorithms) {
+            this.signingAlgorithms = SigningAlgorithmSpecListCopier.copy(signingAlgorithms);
+        }
+
+        @Override
+        public final Builder signingAlgorithmsWithStrings(Collection<String> signingAlgorithms) {
+            this.signingAlgorithms = SigningAlgorithmSpecListCopier.copy(signingAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder signingAlgorithmsWithStrings(String... signingAlgorithms) {
+            signingAlgorithmsWithStrings(Arrays.asList(signingAlgorithms));
+            return this;
+        }
+
+        @Override
+        public final Builder signingAlgorithms(Collection<SigningAlgorithmSpec> signingAlgorithms) {
+            this.signingAlgorithms = SigningAlgorithmSpecListCopier.copyEnumToString(signingAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder signingAlgorithms(SigningAlgorithmSpec... signingAlgorithms) {
+            signingAlgorithms(Arrays.asList(signingAlgorithms));
+            return this;
+        }
+
+        public final Boolean getMultiRegion() {
+            return multiRegion;
+        }
+
+        public final void setMultiRegion(Boolean multiRegion) {
+            this.multiRegion = multiRegion;
+        }
+
+        @Override
+        public final Builder multiRegion(Boolean multiRegion) {
+            this.multiRegion = multiRegion;
+            return this;
+        }
+
+        public final MultiRegionConfiguration.Builder getMultiRegionConfiguration() {
+            return multiRegionConfiguration != null ? multiRegionConfiguration.toBuilder() : null;
+        }
+
+        public final void setMultiRegionConfiguration(MultiRegionConfiguration.BuilderImpl multiRegionConfiguration) {
+            this.multiRegionConfiguration = multiRegionConfiguration != null ? multiRegionConfiguration.build() : null;
+        }
+
+        @Override
+        public final Builder multiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration) {
+            this.multiRegionConfiguration = multiRegionConfiguration;
+            return this;
+        }
+
+        public final Integer getPendingDeletionWindowInDays() {
+            return pendingDeletionWindowInDays;
+        }
+
+        public final void setPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays) {
+            this.pendingDeletionWindowInDays = pendingDeletionWindowInDays;
+        }
+
+        @Override
+        public final Builder pendingDeletionWindowInDays(Integer pendingDeletionWindowInDays) {
+            this.pendingDeletionWindowInDays = pendingDeletionWindowInDays;
+            return this;
+        }
+
+        public final Collection<String> getMacAlgorithms() {
+            if (macAlgorithms instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return macAlgorithms;
+        }
+
+        public final void setMacAlgorithms(Collection<String> macAlgorithms) {
+            this.macAlgorithms = MacAlgorithmSpecListCopier.copy(macAlgorithms);
+        }
+
+        @Override
+        public final Builder macAlgorithmsWithStrings(Collection<String> macAlgorithms) {
+            this.macAlgorithms = MacAlgorithmSpecListCopier.copy(macAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder macAlgorithmsWithStrings(String... macAlgorithms) {
+            macAlgorithmsWithStrings(Arrays.asList(macAlgorithms));
+            return this;
+        }
+
+        @Override
+        public final Builder macAlgorithms(Collection<MacAlgorithmSpec> macAlgorithms) {
+            this.macAlgorithms = MacAlgorithmSpecListCopier.copyEnumToString(macAlgorithms);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder macAlgorithms(MacAlgorithmSpec... macAlgorithms) {
+            macAlgorithms(Arrays.asList(macAlgorithms));
+            return this;
+        }
+
+        public final XksKeyConfigurationType.Builder getXksKeyConfiguration() {
+            return xksKeyConfiguration != null ? xksKeyConfiguration.toBuilder() : null;
+        }
+
+        public final void setXksKeyConfiguration(XksKeyConfigurationType.BuilderImpl xksKeyConfiguration) {
+            this.xksKeyConfiguration = xksKeyConfiguration != null ? xksKeyConfiguration.build() : null;
+        }
+
+        @Override
+        public final Builder xksKeyConfiguration(XksKeyConfigurationType xksKeyConfiguration) {
+            this.xksKeyConfiguration = xksKeyConfiguration;
+            return this;
+        }
+
+        @Override
+        public KeyMetadata build() {
+            return new KeyMetadata(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeySpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeySpec.java
new file mode 100644
index 0000000..99a09e9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeySpec.java
@@ -0,0 +1,90 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum KeySpec {
+    RSA_2048("RSA_2048"),
+
+    RSA_3072("RSA_3072"),
+
+    RSA_4096("RSA_4096"),
+
+    ECC_NIST_P256("ECC_NIST_P256"),
+
+    ECC_NIST_P384("ECC_NIST_P384"),
+
+    ECC_NIST_P521("ECC_NIST_P521"),
+
+    ECC_SECG_P256_K1("ECC_SECG_P256K1"),
+
+    SYMMETRIC_DEFAULT("SYMMETRIC_DEFAULT"),
+
+    HMAC_224("HMAC_224"),
+
+    HMAC_256("HMAC_256"),
+
+    HMAC_384("HMAC_384"),
+
+    HMAC_512("HMAC_512"),
+
+    SM2("SM2"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, KeySpec> VALUE_MAP = EnumUtils.uniqueIndex(KeySpec.class, KeySpec::toString);
+
+    private final String value;
+
+    private KeySpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return KeySpec corresponding to the value
+     */
+    public static KeySpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link KeySpec}s
+     */
+    public static Set<KeySpec> knownValues() {
+        Set<KeySpec> knownValues = EnumSet.allOf(KeySpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyState.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyState.java
new file mode 100644
index 0000000..2f8ae7a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyState.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum KeyState {
+    CREATING("Creating"),
+
+    ENABLED("Enabled"),
+
+    DISABLED("Disabled"),
+
+    PENDING_DELETION("PendingDeletion"),
+
+    PENDING_IMPORT("PendingImport"),
+
+    PENDING_REPLICA_DELETION("PendingReplicaDeletion"),
+
+    UNAVAILABLE("Unavailable"),
+
+    UPDATING("Updating"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, KeyState> VALUE_MAP = EnumUtils.uniqueIndex(KeyState.class, KeyState::toString);
+
+    private final String value;
+
+    private KeyState(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return KeyState corresponding to the value
+     */
+    public static KeyState fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link KeyState}s
+     */
+    public static Set<KeyState> knownValues() {
+        Set<KeyState> knownValues = EnumSet.allOf(KeyState.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyUnavailableException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyUnavailableException.java
new file mode 100644
index 0000000..d167234
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyUnavailableException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified KMS key was not available. You can retry the request.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KeyUnavailableException extends KmsException implements
+        ToCopyableBuilder<KeyUnavailableException.Builder, KeyUnavailableException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private KeyUnavailableException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KeyUnavailableException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KeyUnavailableException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public KeyUnavailableException build() {
+            return new KeyUnavailableException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyUsageType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyUsageType.java
new file mode 100644
index 0000000..aa54b61
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KeyUsageType.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum KeyUsageType {
+    SIGN_VERIFY("SIGN_VERIFY"),
+
+    ENCRYPT_DECRYPT("ENCRYPT_DECRYPT"),
+
+    GENERATE_VERIFY_MAC("GENERATE_VERIFY_MAC"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, KeyUsageType> VALUE_MAP = EnumUtils.uniqueIndex(KeyUsageType.class, KeyUsageType::toString);
+
+    private final String value;
+
+    private KeyUsageType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return KeyUsageType corresponding to the value
+     */
+    public static KeyUsageType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link KeyUsageType}s
+     */
+    public static Set<KeyUsageType> knownValues() {
+        Set<KeyUsageType> knownValues = EnumSet.allOf(KeyUsageType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsException.java
new file mode 100644
index 0000000..e6306b2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsException.java
@@ -0,0 +1,107 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.awscore.exception.AwsServiceException;
+
+@Generated("software.amazon.awssdk:codegen")
+public class KmsException extends AwsServiceException {
+    protected KmsException(Builder builder) {
+        super(builder);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    public interface Builder extends AwsServiceException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    protected static class BuilderImpl extends AwsServiceException.BuilderImpl implements Builder {
+        protected BuilderImpl() {
+        }
+
+        protected BuilderImpl(KmsException ex) {
+            super(ex);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public KmsException build() {
+            return new KmsException(this);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInternalException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInternalException.java
new file mode 100644
index 0000000..c4e91f1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInternalException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because an internal exception occurred. The request can be retried.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KmsInternalException extends KmsException implements
+        ToCopyableBuilder<KmsInternalException.Builder, KmsInternalException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private KmsInternalException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KmsInternalException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KmsInternalException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public KmsInternalException build() {
+            return new KmsInternalException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidMacException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidMacException.java
new file mode 100644
index 0000000..eaf076c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidMacException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC computed by
+ * using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC specified in the request.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KmsInvalidMacException extends KmsException implements
+        ToCopyableBuilder<KmsInvalidMacException.Builder, KmsInvalidMacException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private KmsInvalidMacException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KmsInvalidMacException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KmsInvalidMacException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public KmsInvalidMacException build() {
+            return new KmsInvalidMacException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidSignatureException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidSignatureException.java
new file mode 100644
index 0000000..c989fe1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidSignatureException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the signature verification failed. Signature verification fails when it cannot
+ * confirm that signature was produced by signing the specified message with the specified KMS key and signing
+ * algorithm.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KmsInvalidSignatureException extends KmsException implements
+        ToCopyableBuilder<KmsInvalidSignatureException.Builder, KmsInvalidSignatureException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private KmsInvalidSignatureException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KmsInvalidSignatureException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KmsInvalidSignatureException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public KmsInvalidSignatureException build() {
+            return new KmsInvalidSignatureException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidStateException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidStateException.java
new file mode 100644
index 0000000..85db5bc
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsInvalidStateException.java
@@ -0,0 +1,156 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the state of the specified resource is not valid for this request.
+ * </p>
+ * <p>
+ * This exceptions means one of the following:
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * The key state of the KMS key is not compatible with the operation.
+ * </p>
+ * <p>
+ * To find the key state, use the <a>DescribeKey</a> operation. For more information about which key states are
+ * compatible with each KMS operation, see <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
+ * <i>Key Management Service Developer Guide</i> </i>.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * For cryptographic operations on KMS keys in custom key stores, this exception represents a general failure with many
+ * possible causes. To identify the cause, see the error message that accompanies the exception.
+ * </p>
+ * </li>
+ * </ul>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class KmsInvalidStateException extends KmsException implements
+        ToCopyableBuilder<KmsInvalidStateException.Builder, KmsInvalidStateException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private KmsInvalidStateException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, KmsInvalidStateException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(KmsInvalidStateException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public KmsInvalidStateException build() {
+            return new KmsInvalidStateException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsRequest.java
new file mode 100644
index 0000000..ea5660f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsRequest.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequest;
+
+@Generated("software.amazon.awssdk:codegen")
+public abstract class KmsRequest extends AwsRequest {
+    protected KmsRequest(Builder builder) {
+        super(builder);
+    }
+
+    @Override
+    public abstract Builder toBuilder();
+
+    public interface Builder extends AwsRequest.Builder {
+        @Override
+        KmsRequest build();
+    }
+
+    protected abstract static class BuilderImpl extends AwsRequest.BuilderImpl implements Builder {
+        protected BuilderImpl() {
+        }
+
+        protected BuilderImpl(KmsRequest request) {
+            super(request);
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsResponse.java
new file mode 100644
index 0000000..9f2bb63
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsResponse.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsResponse;
+import software.amazon.awssdk.awscore.AwsResponseMetadata;
+
+@Generated("software.amazon.awssdk:codegen")
+public abstract class KmsResponse extends AwsResponse {
+    private final KmsResponseMetadata responseMetadata;
+
+    protected KmsResponse(Builder builder) {
+        super(builder);
+        this.responseMetadata = builder.responseMetadata();
+    }
+
+    @Override
+    public KmsResponseMetadata responseMetadata() {
+        return responseMetadata;
+    }
+
+    public interface Builder extends AwsResponse.Builder {
+        @Override
+        KmsResponse build();
+
+        @Override
+        KmsResponseMetadata responseMetadata();
+
+        @Override
+        Builder responseMetadata(AwsResponseMetadata metadata);
+    }
+
+    protected abstract static class BuilderImpl extends AwsResponse.BuilderImpl implements Builder {
+        private KmsResponseMetadata responseMetadata;
+
+        protected BuilderImpl() {
+        }
+
+        protected BuilderImpl(KmsResponse response) {
+            super(response);
+            this.responseMetadata = response.responseMetadata();
+        }
+
+        @Override
+        public KmsResponseMetadata responseMetadata() {
+            return responseMetadata;
+        }
+
+        @Override
+        public Builder responseMetadata(AwsResponseMetadata responseMetadata) {
+            this.responseMetadata = KmsResponseMetadata.create(responseMetadata);
+            return this;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsResponseMetadata.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsResponseMetadata.java
new file mode 100644
index 0000000..8dbb7ee
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/KmsResponseMetadata.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkPublicApi;
+import software.amazon.awssdk.awscore.AwsResponseMetadata;
+
+@Generated("software.amazon.awssdk:codegen")
+@SdkPublicApi
+public final class KmsResponseMetadata extends AwsResponseMetadata {
+    private KmsResponseMetadata(AwsResponseMetadata responseMetadata) {
+        super(responseMetadata);
+    }
+
+    public static KmsResponseMetadata create(AwsResponseMetadata responseMetadata) {
+        return new KmsResponseMetadata(responseMetadata);
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/LimitExceededException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/LimitExceededException.java
new file mode 100644
index 0000000..1d31690
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/LimitExceededException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because a quota was exceeded. For more information, see <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key Management Service
+ * Developer Guide</i>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class LimitExceededException extends KmsException implements
+        ToCopyableBuilder<LimitExceededException.Builder, LimitExceededException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private LimitExceededException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, LimitExceededException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(LimitExceededException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public LimitExceededException build() {
+            return new LimitExceededException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListAliasesRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListAliasesRequest.java
new file mode 100644
index 0000000..98c1259
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListAliasesRequest.java
@@ -0,0 +1,426 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListAliasesRequest extends KmsRequest implements
+        ToCopyableBuilder<ListAliasesRequest.Builder, ListAliasesRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ListAliasesRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(ListAliasesRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(ListAliasesRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, LIMIT_FIELD,
+            MARKER_FIELD));
+
+    private final String keyId;
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private ListAliasesRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+    }
+
+    /**
+     * <p>
+     * Lists only aliases that are associated with the specified KMS key. Enter a KMS key in your Amazon Web Services
+     * account.
+     * </p>
+     * <p>
+     * This parameter is optional. If you omit it, <code>ListAliases</code> returns all aliases in the account and
+     * Region.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Lists only aliases that are associated with the specified KMS key. Enter a KMS key in your Amazon Web
+     *         Services account. </p>
+     *         <p>
+     *         This parameter is optional. If you omit it, <code>ListAliases</code> returns all aliases in the account
+     *         and Region.
+     *         </p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a
+     * value, it defaults to 50.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.</p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+     *         include a value, it defaults to 50.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListAliasesRequest)) {
+            return false;
+        }
+        ListAliasesRequest other = (ListAliasesRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(limit(), other.limit())
+                && Objects.equals(marker(), other.marker());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListAliasesRequest").add("KeyId", keyId()).add("Limit", limit()).add("Marker", marker()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListAliasesRequest, T> g) {
+        return obj -> g.apply((ListAliasesRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ListAliasesRequest> {
+        /**
+         * <p>
+         * Lists only aliases that are associated with the specified KMS key. Enter a KMS key in your Amazon Web
+         * Services account.
+         * </p>
+         * <p>
+         * This parameter is optional. If you omit it, <code>ListAliases</code> returns all aliases in the account and
+         * Region.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Lists only aliases that are associated with the specified KMS key. Enter a KMS key in your Amazon Web
+         *        Services account. </p>
+         *        <p>
+         *        This parameter is optional. If you omit it, <code>ListAliases</code> returns all aliases in the
+         *        account and Region.
+         *        </p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+         * include a value, it defaults to 50.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.</p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+         *        include a value, it defaults to 50.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Integer limit;
+
+        private String marker;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListAliasesRequest model) {
+            super(model);
+            keyId(model.keyId);
+            limit(model.limit);
+            marker(model.marker);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ListAliasesRequest build() {
+            return new ListAliasesRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListAliasesResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListAliasesResponse.java
new file mode 100644
index 0000000..0a07a0b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListAliasesResponse.java
@@ -0,0 +1,382 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListAliasesResponse extends KmsResponse implements
+        ToCopyableBuilder<ListAliasesResponse.Builder, ListAliasesResponse> {
+    private static final SdkField<List<AliasListEntry>> ALIASES_FIELD = SdkField
+            .<List<AliasListEntry>> builder(MarshallingType.LIST)
+            .memberName("Aliases")
+            .getter(getter(ListAliasesResponse::aliases))
+            .setter(setter(Builder::aliases))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Aliases").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<AliasListEntry> builder(MarshallingType.SDK_POJO)
+                                            .constructor(AliasListEntry::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(ListAliasesResponse::nextMarker)).setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(ListAliasesResponse::truncated)).setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ALIASES_FIELD,
+            NEXT_MARKER_FIELD, TRUNCATED_FIELD));
+
+    private final List<AliasListEntry> aliases;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private ListAliasesResponse(BuilderImpl builder) {
+        super(builder);
+        this.aliases = builder.aliases;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Aliases property. This DOES NOT check
+     * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
+     * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
+     * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
+     * returns true if a value for the property was specified in the request builder, and false if a value was not
+     * specified.
+     */
+    public final boolean hasAliases() {
+        return aliases != null && !(aliases instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of aliases.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasAliases} method.
+     * </p>
+     * 
+     * @return A list of aliases.
+     */
+    public final List<AliasListEntry> aliases() {
+        return aliases;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasAliases() ? aliases() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListAliasesResponse)) {
+            return false;
+        }
+        ListAliasesResponse other = (ListAliasesResponse) obj;
+        return hasAliases() == other.hasAliases() && Objects.equals(aliases(), other.aliases())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListAliasesResponse").add("Aliases", hasAliases() ? aliases() : null)
+                .add("NextMarker", nextMarker()).add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Aliases":
+            return Optional.ofNullable(clazz.cast(aliases()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListAliasesResponse, T> g) {
+        return obj -> g.apply((ListAliasesResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ListAliasesResponse> {
+        /**
+         * <p>
+         * A list of aliases.
+         * </p>
+         * 
+         * @param aliases
+         *        A list of aliases.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliases(Collection<AliasListEntry> aliases);
+
+        /**
+         * <p>
+         * A list of aliases.
+         * </p>
+         * 
+         * @param aliases
+         *        A list of aliases.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliases(AliasListEntry... aliases);
+
+        /**
+         * <p>
+         * A list of aliases.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.AliasListEntry.Builder} avoiding the need to create one
+         * manually via {@link software.amazon.awssdk.services.kms.model.AliasListEntry#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes,
+         * {@link software.amazon.awssdk.services.kms.model.AliasListEntry.Builder#build()} is called immediately and
+         * its result is passed to {@link #aliases(List<AliasListEntry>)}.
+         * 
+         * @param aliases
+         *        a consumer that will call methods on
+         *        {@link software.amazon.awssdk.services.kms.model.AliasListEntry.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #aliases(java.util.Collection<AliasListEntry>)
+         */
+        Builder aliases(Consumer<AliasListEntry.Builder>... aliases);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<AliasListEntry> aliases = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListAliasesResponse model) {
+            super(model);
+            aliases(model.aliases);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final List<AliasListEntry.Builder> getAliases() {
+            List<AliasListEntry.Builder> result = AliasListCopier.copyToBuilder(this.aliases);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setAliases(Collection<AliasListEntry.BuilderImpl> aliases) {
+            this.aliases = AliasListCopier.copyFromBuilder(aliases);
+        }
+
+        @Override
+        public final Builder aliases(Collection<AliasListEntry> aliases) {
+            this.aliases = AliasListCopier.copy(aliases);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder aliases(AliasListEntry... aliases) {
+            aliases(Arrays.asList(aliases));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder aliases(Consumer<AliasListEntry.Builder>... aliases) {
+            aliases(Stream.of(aliases).map(c -> AliasListEntry.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public ListAliasesResponse build() {
+            return new ListAliasesResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListGrantsRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListGrantsRequest.java
new file mode 100644
index 0000000..fc371c6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListGrantsRequest.java
@@ -0,0 +1,511 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListGrantsRequest extends KmsRequest implements
+        ToCopyableBuilder<ListGrantsRequest.Builder, ListGrantsRequest> {
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(ListGrantsRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(ListGrantsRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ListGrantsRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> GRANT_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantId").getter(getter(ListGrantsRequest::grantId)).setter(setter(Builder::grantId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantId").build()).build();
+
+    private static final SdkField<String> GRANTEE_PRINCIPAL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GranteePrincipal").getter(getter(ListGrantsRequest::granteePrincipal))
+            .setter(setter(Builder::granteePrincipal))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GranteePrincipal").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(LIMIT_FIELD, MARKER_FIELD,
+            KEY_ID_FIELD, GRANT_ID_FIELD, GRANTEE_PRINCIPAL_FIELD));
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private final String keyId;
+
+    private final String grantId;
+
+    private final String granteePrincipal;
+
+    private ListGrantsRequest(BuilderImpl builder) {
+        super(builder);
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+        this.keyId = builder.keyId;
+        this.grantId = builder.grantId;
+        this.granteePrincipal = builder.granteePrincipal;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a
+     * value, it defaults to 50.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.</p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+     *         include a value, it defaults to 50.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    /**
+     * <p>
+     * Returns only grants for the specified KMS key. This parameter is required.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account,
+     * you must use the key ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Returns only grants for the specified KMS key. This parameter is required.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+     *         account, you must use the key ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Returns only the grant with the specified grant ID. The grant ID uniquely identifies the grant.
+     * </p>
+     * 
+     * @return Returns only the grant with the specified grant ID. The grant ID uniquely identifies the grant.
+     */
+    public final String grantId() {
+        return grantId;
+    }
+
+    /**
+     * <p>
+     * Returns only grants where the specified principal is the grantee principal for the grant.
+     * </p>
+     * 
+     * @return Returns only grants where the specified principal is the grantee principal for the grant.
+     */
+    public final String granteePrincipal() {
+        return granteePrincipal;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(grantId());
+        hashCode = 31 * hashCode + Objects.hashCode(granteePrincipal());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListGrantsRequest)) {
+            return false;
+        }
+        ListGrantsRequest other = (ListGrantsRequest) obj;
+        return Objects.equals(limit(), other.limit()) && Objects.equals(marker(), other.marker())
+                && Objects.equals(keyId(), other.keyId()) && Objects.equals(grantId(), other.grantId())
+                && Objects.equals(granteePrincipal(), other.granteePrincipal());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListGrantsRequest").add("Limit", limit()).add("Marker", marker()).add("KeyId", keyId())
+                .add("GrantId", grantId()).add("GranteePrincipal", granteePrincipal()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GrantId":
+            return Optional.ofNullable(clazz.cast(grantId()));
+        case "GranteePrincipal":
+            return Optional.ofNullable(clazz.cast(granteePrincipal()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListGrantsRequest, T> g) {
+        return obj -> g.apply((ListGrantsRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ListGrantsRequest> {
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+         * include a value, it defaults to 50.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.</p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+         *        include a value, it defaults to 50.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        /**
+         * <p>
+         * Returns only grants for the specified KMS key. This parameter is required.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         * account, you must use the key ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Returns only grants for the specified KMS key. This parameter is required.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         *        account, you must use the key ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Returns only the grant with the specified grant ID. The grant ID uniquely identifies the grant.
+         * </p>
+         * 
+         * @param grantId
+         *        Returns only the grant with the specified grant ID. The grant ID uniquely identifies the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantId(String grantId);
+
+        /**
+         * <p>
+         * Returns only grants where the specified principal is the grantee principal for the grant.
+         * </p>
+         * 
+         * @param granteePrincipal
+         *        Returns only grants where the specified principal is the grantee principal for the grant.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder granteePrincipal(String granteePrincipal);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private Integer limit;
+
+        private String marker;
+
+        private String keyId;
+
+        private String grantId;
+
+        private String granteePrincipal;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListGrantsRequest model) {
+            super(model);
+            limit(model.limit);
+            marker(model.marker);
+            keyId(model.keyId);
+            grantId(model.grantId);
+            granteePrincipal(model.granteePrincipal);
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getGrantId() {
+            return grantId;
+        }
+
+        public final void setGrantId(String grantId) {
+            this.grantId = grantId;
+        }
+
+        @Override
+        public final Builder grantId(String grantId) {
+            this.grantId = grantId;
+            return this;
+        }
+
+        public final String getGranteePrincipal() {
+            return granteePrincipal;
+        }
+
+        public final void setGranteePrincipal(String granteePrincipal) {
+            this.granteePrincipal = granteePrincipal;
+        }
+
+        @Override
+        public final Builder granteePrincipal(String granteePrincipal) {
+            this.granteePrincipal = granteePrincipal;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ListGrantsRequest build() {
+            return new ListGrantsRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListGrantsResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListGrantsResponse.java
new file mode 100644
index 0000000..73f0ffd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListGrantsResponse.java
@@ -0,0 +1,382 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListGrantsResponse extends KmsResponse implements
+        ToCopyableBuilder<ListGrantsResponse.Builder, ListGrantsResponse> {
+    private static final SdkField<List<GrantListEntry>> GRANTS_FIELD = SdkField
+            .<List<GrantListEntry>> builder(MarshallingType.LIST)
+            .memberName("Grants")
+            .getter(getter(ListGrantsResponse::grants))
+            .setter(setter(Builder::grants))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Grants").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<GrantListEntry> builder(MarshallingType.SDK_POJO)
+                                            .constructor(GrantListEntry::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(ListGrantsResponse::nextMarker)).setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(ListGrantsResponse::truncated)).setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(GRANTS_FIELD,
+            NEXT_MARKER_FIELD, TRUNCATED_FIELD));
+
+    private final List<GrantListEntry> grants;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private ListGrantsResponse(BuilderImpl builder) {
+        super(builder);
+        this.grants = builder.grants;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Grants property. This DOES NOT check
+     * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
+     * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
+     * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
+     * returns true if a value for the property was specified in the request builder, and false if a value was not
+     * specified.
+     */
+    public final boolean hasGrants() {
+        return grants != null && !(grants instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grants.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrants} method.
+     * </p>
+     * 
+     * @return A list of grants.
+     */
+    public final List<GrantListEntry> grants() {
+        return grants;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrants() ? grants() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListGrantsResponse)) {
+            return false;
+        }
+        ListGrantsResponse other = (ListGrantsResponse) obj;
+        return hasGrants() == other.hasGrants() && Objects.equals(grants(), other.grants())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListGrantsResponse").add("Grants", hasGrants() ? grants() : null)
+                .add("NextMarker", nextMarker()).add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Grants":
+            return Optional.ofNullable(clazz.cast(grants()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListGrantsResponse, T> g) {
+        return obj -> g.apply((ListGrantsResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ListGrantsResponse> {
+        /**
+         * <p>
+         * A list of grants.
+         * </p>
+         * 
+         * @param grants
+         *        A list of grants.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grants(Collection<GrantListEntry> grants);
+
+        /**
+         * <p>
+         * A list of grants.
+         * </p>
+         * 
+         * @param grants
+         *        A list of grants.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grants(GrantListEntry... grants);
+
+        /**
+         * <p>
+         * A list of grants.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.GrantListEntry.Builder} avoiding the need to create one
+         * manually via {@link software.amazon.awssdk.services.kms.model.GrantListEntry#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes,
+         * {@link software.amazon.awssdk.services.kms.model.GrantListEntry.Builder#build()} is called immediately and
+         * its result is passed to {@link #grants(List<GrantListEntry>)}.
+         * 
+         * @param grants
+         *        a consumer that will call methods on
+         *        {@link software.amazon.awssdk.services.kms.model.GrantListEntry.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #grants(java.util.Collection<GrantListEntry>)
+         */
+        Builder grants(Consumer<GrantListEntry.Builder>... grants);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<GrantListEntry> grants = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListGrantsResponse model) {
+            super(model);
+            grants(model.grants);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final List<GrantListEntry.Builder> getGrants() {
+            List<GrantListEntry.Builder> result = GrantListCopier.copyToBuilder(this.grants);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setGrants(Collection<GrantListEntry.BuilderImpl> grants) {
+            this.grants = GrantListCopier.copyFromBuilder(grants);
+        }
+
+        @Override
+        public final Builder grants(Collection<GrantListEntry> grants) {
+            this.grants = GrantListCopier.copy(grants);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grants(GrantListEntry... grants) {
+            grants(Arrays.asList(grants));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grants(Consumer<GrantListEntry.Builder>... grants) {
+            grants(Stream.of(grants).map(c -> GrantListEntry.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public ListGrantsResponse build() {
+            return new ListGrantsResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeyPoliciesRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeyPoliciesRequest.java
new file mode 100644
index 0000000..a5b2d2c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeyPoliciesRequest.java
@@ -0,0 +1,419 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListKeyPoliciesRequest extends KmsRequest implements
+        ToCopyableBuilder<ListKeyPoliciesRequest.Builder, ListKeyPoliciesRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ListKeyPoliciesRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(ListKeyPoliciesRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(ListKeyPoliciesRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, LIMIT_FIELD,
+            MARKER_FIELD));
+
+    private final String keyId;
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private ListKeyPoliciesRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+    }
+
+    /**
+     * <p>
+     * Gets the names of key policies for the specified KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Gets the names of key policies for the specified KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a
+     * value, it defaults to 100.
+     * </p>
+     * <p>
+     * Only one policy can be attached to a key.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.</p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not
+     *         include a value, it defaults to 100.
+     *         </p>
+     *         <p>
+     *         Only one policy can be attached to a key.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListKeyPoliciesRequest)) {
+            return false;
+        }
+        ListKeyPoliciesRequest other = (ListKeyPoliciesRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(limit(), other.limit())
+                && Objects.equals(marker(), other.marker());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListKeyPoliciesRequest").add("KeyId", keyId()).add("Limit", limit()).add("Marker", marker())
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListKeyPoliciesRequest, T> g) {
+        return obj -> g.apply((ListKeyPoliciesRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ListKeyPoliciesRequest> {
+        /**
+         * <p>
+         * Gets the names of key policies for the specified KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Gets the names of key policies for the specified KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not
+         * include a value, it defaults to 100.
+         * </p>
+         * <p>
+         * Only one policy can be attached to a key.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.</p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do
+         *        not include a value, it defaults to 100.
+         *        </p>
+         *        <p>
+         *        Only one policy can be attached to a key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Integer limit;
+
+        private String marker;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListKeyPoliciesRequest model) {
+            super(model);
+            keyId(model.keyId);
+            limit(model.limit);
+            marker(model.marker);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ListKeyPoliciesRequest build() {
+            return new ListKeyPoliciesRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeyPoliciesResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeyPoliciesResponse.java
new file mode 100644
index 0000000..62e0c7d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeyPoliciesResponse.java
@@ -0,0 +1,349 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListKeyPoliciesResponse extends KmsResponse implements
+        ToCopyableBuilder<ListKeyPoliciesResponse.Builder, ListKeyPoliciesResponse> {
+    private static final SdkField<List<String>> POLICY_NAMES_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("PolicyNames")
+            .getter(getter(ListKeyPoliciesResponse::policyNames))
+            .setter(setter(Builder::policyNames))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PolicyNames").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(ListKeyPoliciesResponse::nextMarker)).setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(ListKeyPoliciesResponse::truncated)).setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(POLICY_NAMES_FIELD,
+            NEXT_MARKER_FIELD, TRUNCATED_FIELD));
+
+    private final List<String> policyNames;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private ListKeyPoliciesResponse(BuilderImpl builder) {
+        super(builder);
+        this.policyNames = builder.policyNames;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the PolicyNames property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasPolicyNames() {
+        return policyNames != null && !(policyNames instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of key policy names. The only valid value is <code>default</code>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasPolicyNames} method.
+     * </p>
+     * 
+     * @return A list of key policy names. The only valid value is <code>default</code>.
+     */
+    public final List<String> policyNames() {
+        return policyNames;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasPolicyNames() ? policyNames() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListKeyPoliciesResponse)) {
+            return false;
+        }
+        ListKeyPoliciesResponse other = (ListKeyPoliciesResponse) obj;
+        return hasPolicyNames() == other.hasPolicyNames() && Objects.equals(policyNames(), other.policyNames())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListKeyPoliciesResponse").add("PolicyNames", hasPolicyNames() ? policyNames() : null)
+                .add("NextMarker", nextMarker()).add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "PolicyNames":
+            return Optional.ofNullable(clazz.cast(policyNames()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListKeyPoliciesResponse, T> g) {
+        return obj -> g.apply((ListKeyPoliciesResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ListKeyPoliciesResponse> {
+        /**
+         * <p>
+         * A list of key policy names. The only valid value is <code>default</code>.
+         * </p>
+         * 
+         * @param policyNames
+         *        A list of key policy names. The only valid value is <code>default</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policyNames(Collection<String> policyNames);
+
+        /**
+         * <p>
+         * A list of key policy names. The only valid value is <code>default</code>.
+         * </p>
+         * 
+         * @param policyNames
+         *        A list of key policy names. The only valid value is <code>default</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policyNames(String... policyNames);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<String> policyNames = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListKeyPoliciesResponse model) {
+            super(model);
+            policyNames(model.policyNames);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final Collection<String> getPolicyNames() {
+            if (policyNames instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return policyNames;
+        }
+
+        public final void setPolicyNames(Collection<String> policyNames) {
+            this.policyNames = PolicyNameListCopier.copy(policyNames);
+        }
+
+        @Override
+        public final Builder policyNames(Collection<String> policyNames) {
+            this.policyNames = PolicyNameListCopier.copy(policyNames);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder policyNames(String... policyNames) {
+            policyNames(Arrays.asList(policyNames));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public ListKeyPoliciesResponse build() {
+            return new ListKeyPoliciesResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeysRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeysRequest.java
new file mode 100644
index 0000000..239b6f0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeysRequest.java
@@ -0,0 +1,272 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListKeysRequest extends KmsRequest implements ToCopyableBuilder<ListKeysRequest.Builder, ListKeysRequest> {
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(ListKeysRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(ListKeysRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(LIMIT_FIELD, MARKER_FIELD));
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private ListKeysRequest(BuilderImpl builder) {
+        super(builder);
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a
+     * value, it defaults to 100.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.</p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not
+     *         include a value, it defaults to 100.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListKeysRequest)) {
+            return false;
+        }
+        ListKeysRequest other = (ListKeysRequest) obj;
+        return Objects.equals(limit(), other.limit()) && Objects.equals(marker(), other.marker());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListKeysRequest").add("Limit", limit()).add("Marker", marker()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListKeysRequest, T> g) {
+        return obj -> g.apply((ListKeysRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ListKeysRequest> {
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not
+         * include a value, it defaults to 100.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.</p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do
+         *        not include a value, it defaults to 100.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private Integer limit;
+
+        private String marker;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListKeysRequest model) {
+            super(model);
+            limit(model.limit);
+            marker(model.marker);
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ListKeysRequest build() {
+            return new ListKeysRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeysResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeysResponse.java
new file mode 100644
index 0000000..40ce89a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListKeysResponse.java
@@ -0,0 +1,380 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListKeysResponse extends KmsResponse implements ToCopyableBuilder<ListKeysResponse.Builder, ListKeysResponse> {
+    private static final SdkField<List<KeyListEntry>> KEYS_FIELD = SdkField
+            .<List<KeyListEntry>> builder(MarshallingType.LIST)
+            .memberName("Keys")
+            .getter(getter(ListKeysResponse::keys))
+            .setter(setter(Builder::keys))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Keys").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<KeyListEntry> builder(MarshallingType.SDK_POJO)
+                                            .constructor(KeyListEntry::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(ListKeysResponse::nextMarker)).setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(ListKeysResponse::truncated)).setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEYS_FIELD, NEXT_MARKER_FIELD,
+            TRUNCATED_FIELD));
+
+    private final List<KeyListEntry> keys;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private ListKeysResponse(BuilderImpl builder) {
+        super(builder);
+        this.keys = builder.keys;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Keys property. This DOES NOT check that
+     * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
+     * because the SDK will never return a null collection or map, but you may need to differentiate between the service
+     * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
+     * if a value for the property was specified in the request builder, and false if a value was not specified.
+     */
+    public final boolean hasKeys() {
+        return keys != null && !(keys instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of KMS keys.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasKeys} method.
+     * </p>
+     * 
+     * @return A list of KMS keys.
+     */
+    public final List<KeyListEntry> keys() {
+        return keys;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasKeys() ? keys() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListKeysResponse)) {
+            return false;
+        }
+        ListKeysResponse other = (ListKeysResponse) obj;
+        return hasKeys() == other.hasKeys() && Objects.equals(keys(), other.keys())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListKeysResponse").add("Keys", hasKeys() ? keys() : null).add("NextMarker", nextMarker())
+                .add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Keys":
+            return Optional.ofNullable(clazz.cast(keys()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListKeysResponse, T> g) {
+        return obj -> g.apply((ListKeysResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ListKeysResponse> {
+        /**
+         * <p>
+         * A list of KMS keys.
+         * </p>
+         * 
+         * @param keys
+         *        A list of KMS keys.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keys(Collection<KeyListEntry> keys);
+
+        /**
+         * <p>
+         * A list of KMS keys.
+         * </p>
+         * 
+         * @param keys
+         *        A list of KMS keys.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keys(KeyListEntry... keys);
+
+        /**
+         * <p>
+         * A list of KMS keys.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.KeyListEntry.Builder} avoiding the need to create one
+         * manually via {@link software.amazon.awssdk.services.kms.model.KeyListEntry#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes,
+         * {@link software.amazon.awssdk.services.kms.model.KeyListEntry.Builder#build()} is called immediately and its
+         * result is passed to {@link #keys(List<KeyListEntry>)}.
+         * 
+         * @param keys
+         *        a consumer that will call methods on
+         *        {@link software.amazon.awssdk.services.kms.model.KeyListEntry.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #keys(java.util.Collection<KeyListEntry>)
+         */
+        Builder keys(Consumer<KeyListEntry.Builder>... keys);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<KeyListEntry> keys = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListKeysResponse model) {
+            super(model);
+            keys(model.keys);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final List<KeyListEntry.Builder> getKeys() {
+            List<KeyListEntry.Builder> result = KeyListCopier.copyToBuilder(this.keys);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setKeys(Collection<KeyListEntry.BuilderImpl> keys) {
+            this.keys = KeyListCopier.copyFromBuilder(keys);
+        }
+
+        @Override
+        public final Builder keys(Collection<KeyListEntry> keys) {
+            this.keys = KeyListCopier.copy(keys);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder keys(KeyListEntry... keys) {
+            keys(Arrays.asList(keys));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder keys(Consumer<KeyListEntry.Builder>... keys) {
+            keys(Stream.of(keys).map(c -> KeyListEntry.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public ListKeysResponse build() {
+            return new ListKeysResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListResourceTagsRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListResourceTagsRequest.java
new file mode 100644
index 0000000..ccf9314
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListResourceTagsRequest.java
@@ -0,0 +1,421 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListResourceTagsRequest extends KmsRequest implements
+        ToCopyableBuilder<ListResourceTagsRequest.Builder, ListResourceTagsRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ListResourceTagsRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(ListResourceTagsRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(ListResourceTagsRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, LIMIT_FIELD,
+            MARKER_FIELD));
+
+    private final String keyId;
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private ListResourceTagsRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+    }
+
+    /**
+     * <p>
+     * Gets tags on the specified KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Gets tags on the specified KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not include a
+     * value, it defaults to 50.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.</p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not
+     *         include a value, it defaults to 50.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * <p>
+     * Do not attempt to construct this value. Use only the value of <code>NextMarker</code> from the truncated response
+     * you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.</p>
+     *         <p>
+     *         Do not attempt to construct this value. Use only the value of <code>NextMarker</code> from the truncated
+     *         response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListResourceTagsRequest)) {
+            return false;
+        }
+        ListResourceTagsRequest other = (ListResourceTagsRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(limit(), other.limit())
+                && Objects.equals(marker(), other.marker());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListResourceTagsRequest").add("KeyId", keyId()).add("Limit", limit()).add("Marker", marker())
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListResourceTagsRequest, T> g) {
+        return obj -> g.apply((ListResourceTagsRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ListResourceTagsRequest> {
+        /**
+         * <p>
+         * Gets tags on the specified KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Gets tags on the specified KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not include
+         * a value, it defaults to 50.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.</p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not
+         *        include a value, it defaults to 50.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * <p>
+         * Do not attempt to construct this value. Use only the value of <code>NextMarker</code> from the truncated
+         * response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.</p>
+         *        <p>
+         *        Do not attempt to construct this value. Use only the value of <code>NextMarker</code> from the
+         *        truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Integer limit;
+
+        private String marker;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListResourceTagsRequest model) {
+            super(model);
+            keyId(model.keyId);
+            limit(model.limit);
+            marker(model.marker);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ListResourceTagsRequest build() {
+            return new ListResourceTagsRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListResourceTagsResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListResourceTagsResponse.java
new file mode 100644
index 0000000..3fdf07e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListResourceTagsResponse.java
@@ -0,0 +1,431 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListResourceTagsResponse extends KmsResponse implements
+        ToCopyableBuilder<ListResourceTagsResponse.Builder, ListResourceTagsResponse> {
+    private static final SdkField<List<Tag>> TAGS_FIELD = SdkField
+            .<List<Tag>> builder(MarshallingType.LIST)
+            .memberName("Tags")
+            .getter(getter(ListResourceTagsResponse::tags))
+            .setter(setter(Builder::tags))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<Tag> builder(MarshallingType.SDK_POJO)
+                                            .constructor(Tag::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(ListResourceTagsResponse::nextMarker)).setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(ListResourceTagsResponse::truncated)).setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(TAGS_FIELD, NEXT_MARKER_FIELD,
+            TRUNCATED_FIELD));
+
+    private final List<Tag> tags;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private ListResourceTagsResponse(BuilderImpl builder) {
+        super(builder);
+        this.tags = builder.tags;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
+     * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
+     * because the SDK will never return a null collection or map, but you may need to differentiate between the service
+     * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
+     * if a value for the property was specified in the request builder, and false if a value was not specified.
+     */
+    public final boolean hasTags() {
+        return tags != null && !(tags instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of tags. Each tag consists of a tag key and a tag value.
+     * </p>
+     * <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasTags} method.
+     * </p>
+     * 
+     * @return A list of tags. Each tag consists of a tag key and a tag value.</p> <note>
+     *         <p>
+     *         Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     *         </p>
+     */
+    public final List<Tag> tags() {
+        return tags;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * <p>
+     * Do not assume or infer any information from this value.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.</p>
+     *         <p>
+     *         Do not assume or infer any information from this value.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListResourceTagsResponse)) {
+            return false;
+        }
+        ListResourceTagsResponse other = (ListResourceTagsResponse) obj;
+        return hasTags() == other.hasTags() && Objects.equals(tags(), other.tags())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListResourceTagsResponse").add("Tags", hasTags() ? tags() : null)
+                .add("NextMarker", nextMarker()).add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Tags":
+            return Optional.ofNullable(clazz.cast(tags()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListResourceTagsResponse, T> g) {
+        return obj -> g.apply((ListResourceTagsResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ListResourceTagsResponse> {
+        /**
+         * <p>
+         * A list of tags. Each tag consists of a tag key and a tag value.
+         * </p>
+         * <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * 
+         * @param tags
+         *        A list of tags. Each tag consists of a tag key and a tag value.</p> <note>
+         *        <p>
+         *        Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         *        Management Service Developer Guide</i>.
+         *        </p>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Collection<Tag> tags);
+
+        /**
+         * <p>
+         * A list of tags. Each tag consists of a tag key and a tag value.
+         * </p>
+         * <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * 
+         * @param tags
+         *        A list of tags. Each tag consists of a tag key and a tag value.</p> <note>
+         *        <p>
+         *        Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         *        Management Service Developer Guide</i>.
+         *        </p>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Tag... tags);
+
+        /**
+         * <p>
+         * A list of tags. Each tag consists of a tag key and a tag value.
+         * </p>
+         * <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note> This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.Tag.Builder} avoiding the need to create one manually via
+         * {@link software.amazon.awssdk.services.kms.model.Tag#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link software.amazon.awssdk.services.kms.model.Tag.Builder#build()} is
+         * called immediately and its result is passed to {@link #tags(List<Tag>)}.
+         * 
+         * @param tags
+         *        a consumer that will call methods on {@link software.amazon.awssdk.services.kms.model.Tag.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #tags(java.util.Collection<Tag>)
+         */
+        Builder tags(Consumer<Tag.Builder>... tags);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * <p>
+         * Do not assume or infer any information from this value.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.</p>
+         *        <p>
+         *        Do not assume or infer any information from this value.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<Tag> tags = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListResourceTagsResponse model) {
+            super(model);
+            tags(model.tags);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final List<Tag.Builder> getTags() {
+            List<Tag.Builder> result = TagListCopier.copyToBuilder(this.tags);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setTags(Collection<Tag.BuilderImpl> tags) {
+            this.tags = TagListCopier.copyFromBuilder(tags);
+        }
+
+        @Override
+        public final Builder tags(Collection<Tag> tags) {
+            this.tags = TagListCopier.copy(tags);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Tag... tags) {
+            tags(Arrays.asList(tags));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Consumer<Tag.Builder>... tags) {
+            tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public ListResourceTagsResponse build() {
+            return new ListResourceTagsResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListRetirableGrantsRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListRetirableGrantsRequest.java
new file mode 100644
index 0000000..e3e311f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListRetirableGrantsRequest.java
@@ -0,0 +1,360 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListRetirableGrantsRequest extends KmsRequest implements
+        ToCopyableBuilder<ListRetirableGrantsRequest.Builder, ListRetirableGrantsRequest> {
+    private static final SdkField<Integer> LIMIT_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER).memberName("Limit")
+            .getter(getter(ListRetirableGrantsRequest::limit)).setter(setter(Builder::limit))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();
+
+    private static final SdkField<String> MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Marker")
+            .getter(getter(ListRetirableGrantsRequest::marker)).setter(setter(Builder::marker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Marker").build()).build();
+
+    private static final SdkField<String> RETIRING_PRINCIPAL_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("RetiringPrincipal").getter(getter(ListRetirableGrantsRequest::retiringPrincipal))
+            .setter(setter(Builder::retiringPrincipal))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RetiringPrincipal").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(LIMIT_FIELD, MARKER_FIELD,
+            RETIRING_PRINCIPAL_FIELD));
+
+    private final Integer limit;
+
+    private final String marker;
+
+    private final String retiringPrincipal;
+
+    private ListRetirableGrantsRequest(BuilderImpl builder) {
+        super(builder);
+        this.limit = builder.limit;
+        this.marker = builder.marker;
+        this.retiringPrincipal = builder.retiringPrincipal;
+    }
+
+    /**
+     * <p>
+     * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+     * return more than the specified number of items, but it might return fewer.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a
+     * value, it defaults to 50.
+     * </p>
+     * 
+     * @return Use this parameter to specify the maximum number of items to return. When this value is present, KMS does
+     *         not return more than the specified number of items, but it might return fewer.</p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+     *         include a value, it defaults to 50.
+     */
+    public final Integer limit() {
+        return limit;
+    }
+
+    /**
+     * <p>
+     * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+     * value of <code>NextMarker</code> from the truncated response you just received.
+     * </p>
+     * 
+     * @return Use this parameter in a subsequent request after you receive a response with truncated results. Set it to
+     *         the value of <code>NextMarker</code> from the truncated response you just received.
+     */
+    public final String marker() {
+        return marker;
+    }
+
+    /**
+     * <p>
+     * The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account.
+     * </p>
+     * <p>
+     * To specify the retiring principal, use the <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a>
+     * of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles,
+     * federated users, and assumed role users. For help with the ARN syntax for a principal, see <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM ARNs</a>
+     * in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     * </p>
+     * 
+     * @return The retiring principal for which to list grants. Enter a principal in your Amazon Web Services
+     *         account.</p>
+     *         <p>
+     *         To specify the retiring principal, use the <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
+     *         (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM
+     *         users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal,
+     *         see <a
+     *         href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM
+     *         ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     */
+    public final String retiringPrincipal() {
+        return retiringPrincipal;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(limit());
+        hashCode = 31 * hashCode + Objects.hashCode(marker());
+        hashCode = 31 * hashCode + Objects.hashCode(retiringPrincipal());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListRetirableGrantsRequest)) {
+            return false;
+        }
+        ListRetirableGrantsRequest other = (ListRetirableGrantsRequest) obj;
+        return Objects.equals(limit(), other.limit()) && Objects.equals(marker(), other.marker())
+                && Objects.equals(retiringPrincipal(), other.retiringPrincipal());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListRetirableGrantsRequest").add("Limit", limit()).add("Marker", marker())
+                .add("RetiringPrincipal", retiringPrincipal()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Limit":
+            return Optional.ofNullable(clazz.cast(limit()));
+        case "Marker":
+            return Optional.ofNullable(clazz.cast(marker()));
+        case "RetiringPrincipal":
+            return Optional.ofNullable(clazz.cast(retiringPrincipal()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListRetirableGrantsRequest, T> g) {
+        return obj -> g.apply((ListRetirableGrantsRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ListRetirableGrantsRequest> {
+        /**
+         * <p>
+         * Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not
+         * return more than the specified number of items, but it might return fewer.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+         * include a value, it defaults to 50.
+         * </p>
+         * 
+         * @param limit
+         *        Use this parameter to specify the maximum number of items to return. When this value is present, KMS
+         *        does not return more than the specified number of items, but it might return fewer.</p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not
+         *        include a value, it defaults to 50.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder limit(Integer limit);
+
+        /**
+         * <p>
+         * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the
+         * value of <code>NextMarker</code> from the truncated response you just received.
+         * </p>
+         * 
+         * @param marker
+         *        Use this parameter in a subsequent request after you receive a response with truncated results. Set it
+         *        to the value of <code>NextMarker</code> from the truncated response you just received.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder marker(String marker);
+
+        /**
+         * <p>
+         * The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account.
+         * </p>
+         * <p>
+         * To specify the retiring principal, use the <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
+         * (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM
+         * users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal, see
+         * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM
+         * ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * </p>
+         * 
+         * @param retiringPrincipal
+         *        The retiring principal for which to list grants. Enter a principal in your Amazon Web Services
+         *        account.</p>
+         *        <p>
+         *        To specify the retiring principal, use the <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
+         *        (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts,
+         *        IAM users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a
+         *        principal, see <a
+         *        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns"
+         *        >IAM ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder retiringPrincipal(String retiringPrincipal);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private Integer limit;
+
+        private String marker;
+
+        private String retiringPrincipal;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListRetirableGrantsRequest model) {
+            super(model);
+            limit(model.limit);
+            marker(model.marker);
+            retiringPrincipal(model.retiringPrincipal);
+        }
+
+        public final Integer getLimit() {
+            return limit;
+        }
+
+        public final void setLimit(Integer limit) {
+            this.limit = limit;
+        }
+
+        @Override
+        public final Builder limit(Integer limit) {
+            this.limit = limit;
+            return this;
+        }
+
+        public final String getMarker() {
+            return marker;
+        }
+
+        public final void setMarker(String marker) {
+            this.marker = marker;
+        }
+
+        @Override
+        public final Builder marker(String marker) {
+            this.marker = marker;
+            return this;
+        }
+
+        public final String getRetiringPrincipal() {
+            return retiringPrincipal;
+        }
+
+        public final void setRetiringPrincipal(String retiringPrincipal) {
+            this.retiringPrincipal = retiringPrincipal;
+        }
+
+        @Override
+        public final Builder retiringPrincipal(String retiringPrincipal) {
+            this.retiringPrincipal = retiringPrincipal;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ListRetirableGrantsRequest build() {
+            return new ListRetirableGrantsRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListRetirableGrantsResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListRetirableGrantsResponse.java
new file mode 100644
index 0000000..e011e6c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ListRetirableGrantsResponse.java
@@ -0,0 +1,382 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ListRetirableGrantsResponse extends KmsResponse implements
+        ToCopyableBuilder<ListRetirableGrantsResponse.Builder, ListRetirableGrantsResponse> {
+    private static final SdkField<List<GrantListEntry>> GRANTS_FIELD = SdkField
+            .<List<GrantListEntry>> builder(MarshallingType.LIST)
+            .memberName("Grants")
+            .getter(getter(ListRetirableGrantsResponse::grants))
+            .setter(setter(Builder::grants))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Grants").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<GrantListEntry> builder(MarshallingType.SDK_POJO)
+                                            .constructor(GrantListEntry::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> NEXT_MARKER_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NextMarker").getter(getter(ListRetirableGrantsResponse::nextMarker)).setter(setter(Builder::nextMarker))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextMarker").build()).build();
+
+    private static final SdkField<Boolean> TRUNCATED_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("Truncated").getter(getter(ListRetirableGrantsResponse::truncated)).setter(setter(Builder::truncated))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Truncated").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(GRANTS_FIELD,
+            NEXT_MARKER_FIELD, TRUNCATED_FIELD));
+
+    private final List<GrantListEntry> grants;
+
+    private final String nextMarker;
+
+    private final Boolean truncated;
+
+    private ListRetirableGrantsResponse(BuilderImpl builder) {
+        super(builder);
+        this.grants = builder.grants;
+        this.nextMarker = builder.nextMarker;
+        this.truncated = builder.truncated;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Grants property. This DOES NOT check
+     * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
+     * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
+     * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
+     * returns true if a value for the property was specified in the request builder, and false if a value was not
+     * specified.
+     */
+    public final boolean hasGrants() {
+        return grants != null && !(grants instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grants.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrants} method.
+     * </p>
+     * 
+     * @return A list of grants.
+     */
+    public final List<GrantListEntry> grants() {
+        return grants;
+    }
+
+    /**
+     * <p>
+     * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     * <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return When <code>Truncated</code> is true, this element is present and contains the value to use for the
+     *         <code>Marker</code> parameter in a subsequent request.
+     */
+    public final String nextMarker() {
+        return nextMarker;
+    }
+
+    /**
+     * <p>
+     * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse
+     * to the <code>Marker</code> parameter in a subsequent request.
+     * </p>
+     * 
+     * @return A flag that indicates whether there are more items in the list. When this value is true, the list in this
+     *         response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+     *         thisresponse to the <code>Marker</code> parameter in a subsequent request.
+     */
+    public final Boolean truncated() {
+        return truncated;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrants() ? grants() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(nextMarker());
+        hashCode = 31 * hashCode + Objects.hashCode(truncated());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ListRetirableGrantsResponse)) {
+            return false;
+        }
+        ListRetirableGrantsResponse other = (ListRetirableGrantsResponse) obj;
+        return hasGrants() == other.hasGrants() && Objects.equals(grants(), other.grants())
+                && Objects.equals(nextMarker(), other.nextMarker()) && Objects.equals(truncated(), other.truncated());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ListRetirableGrantsResponse").add("Grants", hasGrants() ? grants() : null)
+                .add("NextMarker", nextMarker()).add("Truncated", truncated()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Grants":
+            return Optional.ofNullable(clazz.cast(grants()));
+        case "NextMarker":
+            return Optional.ofNullable(clazz.cast(nextMarker()));
+        case "Truncated":
+            return Optional.ofNullable(clazz.cast(truncated()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ListRetirableGrantsResponse, T> g) {
+        return obj -> g.apply((ListRetirableGrantsResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ListRetirableGrantsResponse> {
+        /**
+         * <p>
+         * A list of grants.
+         * </p>
+         * 
+         * @param grants
+         *        A list of grants.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grants(Collection<GrantListEntry> grants);
+
+        /**
+         * <p>
+         * A list of grants.
+         * </p>
+         * 
+         * @param grants
+         *        A list of grants.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grants(GrantListEntry... grants);
+
+        /**
+         * <p>
+         * A list of grants.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.GrantListEntry.Builder} avoiding the need to create one
+         * manually via {@link software.amazon.awssdk.services.kms.model.GrantListEntry#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes,
+         * {@link software.amazon.awssdk.services.kms.model.GrantListEntry.Builder#build()} is called immediately and
+         * its result is passed to {@link #grants(List<GrantListEntry>)}.
+         * 
+         * @param grants
+         *        a consumer that will call methods on
+         *        {@link software.amazon.awssdk.services.kms.model.GrantListEntry.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #grants(java.util.Collection<GrantListEntry>)
+         */
+        Builder grants(Consumer<GrantListEntry.Builder>... grants);
+
+        /**
+         * <p>
+         * When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         * <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param nextMarker
+         *        When <code>Truncated</code> is true, this element is present and contains the value to use for the
+         *        <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder nextMarker(String nextMarker);
+
+        /**
+         * <p>
+         * A flag that indicates whether there are more items in the list. When this value is true, the list in this
+         * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in
+         * thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * </p>
+         * 
+         * @param truncated
+         *        A flag that indicates whether there are more items in the list. When this value is true, the list in
+         *        this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element
+         *        in thisresponse to the <code>Marker</code> parameter in a subsequent request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder truncated(Boolean truncated);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private List<GrantListEntry> grants = DefaultSdkAutoConstructList.getInstance();
+
+        private String nextMarker;
+
+        private Boolean truncated;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ListRetirableGrantsResponse model) {
+            super(model);
+            grants(model.grants);
+            nextMarker(model.nextMarker);
+            truncated(model.truncated);
+        }
+
+        public final List<GrantListEntry.Builder> getGrants() {
+            List<GrantListEntry.Builder> result = GrantListCopier.copyToBuilder(this.grants);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setGrants(Collection<GrantListEntry.BuilderImpl> grants) {
+            this.grants = GrantListCopier.copyFromBuilder(grants);
+        }
+
+        @Override
+        public final Builder grants(Collection<GrantListEntry> grants) {
+            this.grants = GrantListCopier.copy(grants);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grants(GrantListEntry... grants) {
+            grants(Arrays.asList(grants));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grants(Consumer<GrantListEntry.Builder>... grants) {
+            grants(Stream.of(grants).map(c -> GrantListEntry.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        public final String getNextMarker() {
+            return nextMarker;
+        }
+
+        public final void setNextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+        }
+
+        @Override
+        public final Builder nextMarker(String nextMarker) {
+            this.nextMarker = nextMarker;
+            return this;
+        }
+
+        public final Boolean getTruncated() {
+            return truncated;
+        }
+
+        public final void setTruncated(Boolean truncated) {
+            this.truncated = truncated;
+        }
+
+        @Override
+        public final Builder truncated(Boolean truncated) {
+            this.truncated = truncated;
+            return this;
+        }
+
+        @Override
+        public ListRetirableGrantsResponse build() {
+            return new ListRetirableGrantsResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MacAlgorithmSpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MacAlgorithmSpec.java
new file mode 100644
index 0000000..65f903a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MacAlgorithmSpec.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum MacAlgorithmSpec {
+    HMAC_SHA_224("HMAC_SHA_224"),
+
+    HMAC_SHA_256("HMAC_SHA_256"),
+
+    HMAC_SHA_384("HMAC_SHA_384"),
+
+    HMAC_SHA_512("HMAC_SHA_512"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, MacAlgorithmSpec> VALUE_MAP = EnumUtils.uniqueIndex(MacAlgorithmSpec.class,
+            MacAlgorithmSpec::toString);
+
+    private final String value;
+
+    private MacAlgorithmSpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return MacAlgorithmSpec corresponding to the value
+     */
+    public static MacAlgorithmSpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link MacAlgorithmSpec}s
+     */
+    public static Set<MacAlgorithmSpec> knownValues() {
+        Set<MacAlgorithmSpec> knownValues = EnumSet.allOf(MacAlgorithmSpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MacAlgorithmSpecListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MacAlgorithmSpecListCopier.java
new file mode 100644
index 0000000..d9c2bdb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MacAlgorithmSpecListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class MacAlgorithmSpecListCopier {
+    static List<String> copy(Collection<String> macAlgorithmSpecListParam) {
+        List<String> list;
+        if (macAlgorithmSpecListParam == null || macAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            macAlgorithmSpecListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<String> copyEnumToString(Collection<MacAlgorithmSpec> macAlgorithmSpecListParam) {
+        List<String> list;
+        if (macAlgorithmSpecListParam == null || macAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            macAlgorithmSpecListParam.forEach(entry -> {
+                String result = entry.toString();
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<MacAlgorithmSpec> copyStringToEnum(Collection<String> macAlgorithmSpecListParam) {
+        List<MacAlgorithmSpec> list;
+        if (macAlgorithmSpecListParam == null || macAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<MacAlgorithmSpec> modifiableList = new ArrayList<>();
+            macAlgorithmSpecListParam.forEach(entry -> {
+                MacAlgorithmSpec result = MacAlgorithmSpec.fromValue(entry);
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MalformedPolicyDocumentException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MalformedPolicyDocumentException.java
new file mode 100644
index 0000000..5532425
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MalformedPolicyDocumentException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified policy is not syntactically or semantically correct.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class MalformedPolicyDocumentException extends KmsException implements
+        ToCopyableBuilder<MalformedPolicyDocumentException.Builder, MalformedPolicyDocumentException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private MalformedPolicyDocumentException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, MalformedPolicyDocumentException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(MalformedPolicyDocumentException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public MalformedPolicyDocumentException build() {
+            return new MalformedPolicyDocumentException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MessageType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MessageType.java
new file mode 100644
index 0000000..92bcb41
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MessageType.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum MessageType {
+    RAW("RAW"),
+
+    DIGEST("DIGEST"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, MessageType> VALUE_MAP = EnumUtils.uniqueIndex(MessageType.class, MessageType::toString);
+
+    private final String value;
+
+    private MessageType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return MessageType corresponding to the value
+     */
+    public static MessageType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link MessageType}s
+     */
+    public static Set<MessageType> knownValues() {
+        Set<MessageType> knownValues = EnumSet.allOf(MessageType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionConfiguration.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionConfiguration.java
new file mode 100644
index 0000000..c300a8e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionConfiguration.java
@@ -0,0 +1,458 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Describes the configuration of this multi-Region key. This field appears only when the KMS key is a primary or
+ * replica of a multi-Region key.
+ * </p>
+ * <p>
+ * For more information about any listed KMS key, use the <a>DescribeKey</a> operation.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class MultiRegionConfiguration implements SdkPojo, Serializable,
+        ToCopyableBuilder<MultiRegionConfiguration.Builder, MultiRegionConfiguration> {
+    private static final SdkField<String> MULTI_REGION_KEY_TYPE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MultiRegionKeyType").getter(getter(MultiRegionConfiguration::multiRegionKeyTypeAsString))
+            .setter(setter(Builder::multiRegionKeyType))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiRegionKeyType").build())
+            .build();
+
+    private static final SdkField<MultiRegionKey> PRIMARY_KEY_FIELD = SdkField.<MultiRegionKey> builder(MarshallingType.SDK_POJO)
+            .memberName("PrimaryKey").getter(getter(MultiRegionConfiguration::primaryKey)).setter(setter(Builder::primaryKey))
+            .constructor(MultiRegionKey::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PrimaryKey").build()).build();
+
+    private static final SdkField<List<MultiRegionKey>> REPLICA_KEYS_FIELD = SdkField
+            .<List<MultiRegionKey>> builder(MarshallingType.LIST)
+            .memberName("ReplicaKeys")
+            .getter(getter(MultiRegionConfiguration::replicaKeys))
+            .setter(setter(Builder::replicaKeys))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReplicaKeys").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<MultiRegionKey> builder(MarshallingType.SDK_POJO)
+                                            .constructor(MultiRegionKey::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(MULTI_REGION_KEY_TYPE_FIELD,
+            PRIMARY_KEY_FIELD, REPLICA_KEYS_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String multiRegionKeyType;
+
+    private final MultiRegionKey primaryKey;
+
+    private final List<MultiRegionKey> replicaKeys;
+
+    private MultiRegionConfiguration(BuilderImpl builder) {
+        this.multiRegionKeyType = builder.multiRegionKeyType;
+        this.primaryKey = builder.primaryKey;
+        this.replicaKeys = builder.replicaKeys;
+    }
+
+    /**
+     * <p>
+     * Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #multiRegionKeyType} will return {@link MultiRegionKeyType#UNKNOWN_TO_SDK_VERSION}. The raw value returned
+     * by the service is available from {@link #multiRegionKeyTypeAsString}.
+     * </p>
+     * 
+     * @return Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+     * @see MultiRegionKeyType
+     */
+    public final MultiRegionKeyType multiRegionKeyType() {
+        return MultiRegionKeyType.fromValue(multiRegionKeyType);
+    }
+
+    /**
+     * <p>
+     * Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #multiRegionKeyType} will return {@link MultiRegionKeyType#UNKNOWN_TO_SDK_VERSION}. The raw value returned
+     * by the service is available from {@link #multiRegionKeyTypeAsString}.
+     * </p>
+     * 
+     * @return Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+     * @see MultiRegionKeyType
+     */
+    public final String multiRegionKeyTypeAsString() {
+        return multiRegionKeyType;
+    }
+
+    /**
+     * <p>
+     * Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the primary
+     * key.
+     * </p>
+     * 
+     * @return Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the
+     *         primary key.
+     */
+    public final MultiRegionKey primaryKey() {
+        return primaryKey;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the ReplicaKeys property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasReplicaKeys() {
+        return replicaKeys != null && !(replicaKeys instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica
+     * key.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasReplicaKeys} method.
+     * </p>
+     * 
+     * @return displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
+     *         replica key.
+     */
+    public final List<MultiRegionKey> replicaKeys() {
+        return replicaKeys;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(multiRegionKeyTypeAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(primaryKey());
+        hashCode = 31 * hashCode + Objects.hashCode(hasReplicaKeys() ? replicaKeys() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof MultiRegionConfiguration)) {
+            return false;
+        }
+        MultiRegionConfiguration other = (MultiRegionConfiguration) obj;
+        return Objects.equals(multiRegionKeyTypeAsString(), other.multiRegionKeyTypeAsString())
+                && Objects.equals(primaryKey(), other.primaryKey()) && hasReplicaKeys() == other.hasReplicaKeys()
+                && Objects.equals(replicaKeys(), other.replicaKeys());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("MultiRegionConfiguration").add("MultiRegionKeyType", multiRegionKeyTypeAsString())
+                .add("PrimaryKey", primaryKey()).add("ReplicaKeys", hasReplicaKeys() ? replicaKeys() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "MultiRegionKeyType":
+            return Optional.ofNullable(clazz.cast(multiRegionKeyTypeAsString()));
+        case "PrimaryKey":
+            return Optional.ofNullable(clazz.cast(primaryKey()));
+        case "ReplicaKeys":
+            return Optional.ofNullable(clazz.cast(replicaKeys()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<MultiRegionConfiguration, T> g) {
+        return obj -> g.apply((MultiRegionConfiguration) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, MultiRegionConfiguration> {
+        /**
+         * <p>
+         * Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+         * </p>
+         * 
+         * @param multiRegionKeyType
+         *        Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+         * @see MultiRegionKeyType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MultiRegionKeyType
+         */
+        Builder multiRegionKeyType(String multiRegionKeyType);
+
+        /**
+         * <p>
+         * Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+         * </p>
+         * 
+         * @param multiRegionKeyType
+         *        Indicates whether the KMS key is a <code>PRIMARY</code> or <code>REPLICA</code> key.
+         * @see MultiRegionKeyType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MultiRegionKeyType
+         */
+        Builder multiRegionKeyType(MultiRegionKeyType multiRegionKeyType);
+
+        /**
+         * <p>
+         * Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the
+         * primary key.
+         * </p>
+         * 
+         * @param primaryKey
+         *        Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is
+         *        the primary key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder primaryKey(MultiRegionKey primaryKey);
+
+        /**
+         * <p>
+         * Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the
+         * primary key.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link MultiRegionKey.Builder} avoiding the need
+         * to create one manually via {@link MultiRegionKey#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link MultiRegionKey.Builder#build()} is called immediately and its
+         * result is passed to {@link #primaryKey(MultiRegionKey)}.
+         * 
+         * @param primaryKey
+         *        a consumer that will call methods on {@link MultiRegionKey.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #primaryKey(MultiRegionKey)
+         */
+        default Builder primaryKey(Consumer<MultiRegionKey.Builder> primaryKey) {
+            return primaryKey(MultiRegionKey.builder().applyMutation(primaryKey).build());
+        }
+
+        /**
+         * <p>
+         * displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
+         * replica key.
+         * </p>
+         * 
+         * @param replicaKeys
+         *        displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it
+         *        is a replica key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaKeys(Collection<MultiRegionKey> replicaKeys);
+
+        /**
+         * <p>
+         * displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
+         * replica key.
+         * </p>
+         * 
+         * @param replicaKeys
+         *        displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it
+         *        is a replica key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaKeys(MultiRegionKey... replicaKeys);
+
+        /**
+         * <p>
+         * displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
+         * replica key.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.MultiRegionKey.Builder} avoiding the need to create one
+         * manually via {@link software.amazon.awssdk.services.kms.model.MultiRegionKey#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes,
+         * {@link software.amazon.awssdk.services.kms.model.MultiRegionKey.Builder#build()} is called immediately and
+         * its result is passed to {@link #replicaKeys(List<MultiRegionKey>)}.
+         * 
+         * @param replicaKeys
+         *        a consumer that will call methods on
+         *        {@link software.amazon.awssdk.services.kms.model.MultiRegionKey.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #replicaKeys(java.util.Collection<MultiRegionKey>)
+         */
+        Builder replicaKeys(Consumer<MultiRegionKey.Builder>... replicaKeys);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String multiRegionKeyType;
+
+        private MultiRegionKey primaryKey;
+
+        private List<MultiRegionKey> replicaKeys = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(MultiRegionConfiguration model) {
+            multiRegionKeyType(model.multiRegionKeyType);
+            primaryKey(model.primaryKey);
+            replicaKeys(model.replicaKeys);
+        }
+
+        public final String getMultiRegionKeyType() {
+            return multiRegionKeyType;
+        }
+
+        public final void setMultiRegionKeyType(String multiRegionKeyType) {
+            this.multiRegionKeyType = multiRegionKeyType;
+        }
+
+        @Override
+        public final Builder multiRegionKeyType(String multiRegionKeyType) {
+            this.multiRegionKeyType = multiRegionKeyType;
+            return this;
+        }
+
+        @Override
+        public final Builder multiRegionKeyType(MultiRegionKeyType multiRegionKeyType) {
+            this.multiRegionKeyType(multiRegionKeyType == null ? null : multiRegionKeyType.toString());
+            return this;
+        }
+
+        public final MultiRegionKey.Builder getPrimaryKey() {
+            return primaryKey != null ? primaryKey.toBuilder() : null;
+        }
+
+        public final void setPrimaryKey(MultiRegionKey.BuilderImpl primaryKey) {
+            this.primaryKey = primaryKey != null ? primaryKey.build() : null;
+        }
+
+        @Override
+        public final Builder primaryKey(MultiRegionKey primaryKey) {
+            this.primaryKey = primaryKey;
+            return this;
+        }
+
+        public final List<MultiRegionKey.Builder> getReplicaKeys() {
+            List<MultiRegionKey.Builder> result = MultiRegionKeyListCopier.copyToBuilder(this.replicaKeys);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setReplicaKeys(Collection<MultiRegionKey.BuilderImpl> replicaKeys) {
+            this.replicaKeys = MultiRegionKeyListCopier.copyFromBuilder(replicaKeys);
+        }
+
+        @Override
+        public final Builder replicaKeys(Collection<MultiRegionKey> replicaKeys) {
+            this.replicaKeys = MultiRegionKeyListCopier.copy(replicaKeys);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder replicaKeys(MultiRegionKey... replicaKeys) {
+            replicaKeys(Arrays.asList(replicaKeys));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder replicaKeys(Consumer<MultiRegionKey.Builder>... replicaKeys) {
+            replicaKeys(Stream.of(replicaKeys).map(c -> MultiRegionKey.builder().applyMutation(c).build())
+                    .collect(Collectors.toList()));
+            return this;
+        }
+
+        @Override
+        public MultiRegionConfiguration build() {
+            return new MultiRegionConfiguration(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKey.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKey.java
new file mode 100644
index 0000000..14c7005
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKey.java
@@ -0,0 +1,233 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Describes the primary or replica key in a multi-Region key.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class MultiRegionKey implements SdkPojo, Serializable, ToCopyableBuilder<MultiRegionKey.Builder, MultiRegionKey> {
+    private static final SdkField<String> ARN_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Arn")
+            .getter(getter(MultiRegionKey::arn)).setter(setter(Builder::arn))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Arn").build()).build();
+
+    private static final SdkField<String> REGION_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Region")
+            .getter(getter(MultiRegionKey::region)).setter(setter(Builder::region))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Region").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ARN_FIELD, REGION_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String arn;
+
+    private final String region;
+
+    private MultiRegionKey(BuilderImpl builder) {
+        this.arn = builder.arn;
+        this.region = builder.region;
+    }
+
+    /**
+     * <p>
+     * Displays the key ARN of a primary or replica key of a multi-Region key.
+     * </p>
+     * 
+     * @return Displays the key ARN of a primary or replica key of a multi-Region key.
+     */
+    public final String arn() {
+        return arn;
+    }
+
+    /**
+     * <p>
+     * Displays the Amazon Web Services Region of a primary or replica key in a multi-Region key.
+     * </p>
+     * 
+     * @return Displays the Amazon Web Services Region of a primary or replica key in a multi-Region key.
+     */
+    public final String region() {
+        return region;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(arn());
+        hashCode = 31 * hashCode + Objects.hashCode(region());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof MultiRegionKey)) {
+            return false;
+        }
+        MultiRegionKey other = (MultiRegionKey) obj;
+        return Objects.equals(arn(), other.arn()) && Objects.equals(region(), other.region());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("MultiRegionKey").add("Arn", arn()).add("Region", region()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Arn":
+            return Optional.ofNullable(clazz.cast(arn()));
+        case "Region":
+            return Optional.ofNullable(clazz.cast(region()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<MultiRegionKey, T> g) {
+        return obj -> g.apply((MultiRegionKey) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, MultiRegionKey> {
+        /**
+         * <p>
+         * Displays the key ARN of a primary or replica key of a multi-Region key.
+         * </p>
+         * 
+         * @param arn
+         *        Displays the key ARN of a primary or replica key of a multi-Region key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder arn(String arn);
+
+        /**
+         * <p>
+         * Displays the Amazon Web Services Region of a primary or replica key in a multi-Region key.
+         * </p>
+         * 
+         * @param region
+         *        Displays the Amazon Web Services Region of a primary or replica key in a multi-Region key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder region(String region);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String arn;
+
+        private String region;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(MultiRegionKey model) {
+            arn(model.arn);
+            region(model.region);
+        }
+
+        public final String getArn() {
+            return arn;
+        }
+
+        public final void setArn(String arn) {
+            this.arn = arn;
+        }
+
+        @Override
+        public final Builder arn(String arn) {
+            this.arn = arn;
+            return this;
+        }
+
+        public final String getRegion() {
+            return region;
+        }
+
+        public final void setRegion(String region) {
+            this.region = region;
+        }
+
+        @Override
+        public final Builder region(String region) {
+            this.region = region;
+            return this;
+        }
+
+        @Override
+        public MultiRegionKey build() {
+            return new MultiRegionKey(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKeyListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKeyListCopier.java
new file mode 100644
index 0000000..e34add9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKeyListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class MultiRegionKeyListCopier {
+    static List<MultiRegionKey> copy(Collection<? extends MultiRegionKey> multiRegionKeyListParam) {
+        List<MultiRegionKey> list;
+        if (multiRegionKeyListParam == null || multiRegionKeyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<MultiRegionKey> modifiableList = new ArrayList<>();
+            multiRegionKeyListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<MultiRegionKey> copyFromBuilder(Collection<? extends MultiRegionKey.Builder> multiRegionKeyListParam) {
+        List<MultiRegionKey> list;
+        if (multiRegionKeyListParam == null || multiRegionKeyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<MultiRegionKey> modifiableList = new ArrayList<>();
+            multiRegionKeyListParam.forEach(entry -> {
+                MultiRegionKey member = entry == null ? null : entry.build();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<MultiRegionKey.Builder> copyToBuilder(Collection<? extends MultiRegionKey> multiRegionKeyListParam) {
+        List<MultiRegionKey.Builder> list;
+        if (multiRegionKeyListParam == null || multiRegionKeyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<MultiRegionKey.Builder> modifiableList = new ArrayList<>();
+            multiRegionKeyListParam.forEach(entry -> {
+                MultiRegionKey.Builder member = entry == null ? null : entry.toBuilder();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKeyType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKeyType.java
new file mode 100644
index 0000000..a98a1fe
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/MultiRegionKeyType.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum MultiRegionKeyType {
+    PRIMARY("PRIMARY"),
+
+    REPLICA("REPLICA"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, MultiRegionKeyType> VALUE_MAP = EnumUtils.uniqueIndex(MultiRegionKeyType.class,
+            MultiRegionKeyType::toString);
+
+    private final String value;
+
+    private MultiRegionKeyType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return MultiRegionKeyType corresponding to the value
+     */
+    public static MultiRegionKeyType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link MultiRegionKeyType}s
+     */
+    public static Set<MultiRegionKeyType> knownValues() {
+        Set<MultiRegionKeyType> knownValues = EnumSet.allOf(MultiRegionKeyType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/NotFoundException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/NotFoundException.java
new file mode 100644
index 0000000..9a5ede8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/NotFoundException.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified entity or resource could not be found.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class NotFoundException extends KmsException implements
+        ToCopyableBuilder<NotFoundException.Builder, NotFoundException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private NotFoundException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, NotFoundException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(NotFoundException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public NotFoundException build() {
+            return new NotFoundException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/OriginType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/OriginType.java
new file mode 100644
index 0000000..575329d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/OriginType.java
@@ -0,0 +1,72 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum OriginType {
+    AWS_KMS("AWS_KMS"),
+
+    EXTERNAL("EXTERNAL"),
+
+    AWS_CLOUDHSM("AWS_CLOUDHSM"),
+
+    EXTERNAL_KEY_STORE("EXTERNAL_KEY_STORE"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, OriginType> VALUE_MAP = EnumUtils.uniqueIndex(OriginType.class, OriginType::toString);
+
+    private final String value;
+
+    private OriginType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return OriginType corresponding to the value
+     */
+    public static OriginType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link OriginType}s
+     */
+    public static Set<OriginType> knownValues() {
+        Set<OriginType> knownValues = EnumSet.allOf(OriginType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PolicyNameListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PolicyNameListCopier.java
new file mode 100644
index 0000000..5478354
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PolicyNameListCopier.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class PolicyNameListCopier {
+    static List<String> copy(Collection<String> policyNameListParam) {
+        List<String> list;
+        if (policyNameListParam == null || policyNameListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            policyNameListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PutKeyPolicyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PutKeyPolicyRequest.java
new file mode 100644
index 0000000..0b85dc8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PutKeyPolicyRequest.java
@@ -0,0 +1,721 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class PutKeyPolicyRequest extends KmsRequest implements
+        ToCopyableBuilder<PutKeyPolicyRequest.Builder, PutKeyPolicyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(PutKeyPolicyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> POLICY_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("PolicyName").getter(getter(PutKeyPolicyRequest::policyName)).setter(setter(Builder::policyName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PolicyName").build()).build();
+
+    private static final SdkField<String> POLICY_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Policy")
+            .getter(getter(PutKeyPolicyRequest::policy)).setter(setter(Builder::policy))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Policy").build()).build();
+
+    private static final SdkField<Boolean> BYPASS_POLICY_LOCKOUT_SAFETY_CHECK_FIELD = SdkField
+            .<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("BypassPolicyLockoutSafetyCheck")
+            .getter(getter(PutKeyPolicyRequest::bypassPolicyLockoutSafetyCheck))
+            .setter(setter(Builder::bypassPolicyLockoutSafetyCheck))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BypassPolicyLockoutSafetyCheck")
+                    .build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            POLICY_NAME_FIELD, POLICY_FIELD, BYPASS_POLICY_LOCKOUT_SAFETY_CHECK_FIELD));
+
+    private final String keyId;
+
+    private final String policyName;
+
+    private final String policy;
+
+    private final Boolean bypassPolicyLockoutSafetyCheck;
+
+    private PutKeyPolicyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.policyName = builder.policyName;
+        this.policy = builder.policy;
+        this.bypassPolicyLockoutSafetyCheck = builder.bypassPolicyLockoutSafetyCheck;
+    }
+
+    /**
+     * <p>
+     * Sets the key policy on the specified KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Sets the key policy on the specified KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The name of the key policy. The only valid value is <code>default</code>.
+     * </p>
+     * 
+     * @return The name of the key policy. The only valid value is <code>default</code>.
+     */
+    public final String policyName() {
+        return policyName;
+    }
+
+    /**
+     * <p>
+     * The key policy to attach to the KMS key.
+     * </p>
+     * <p>
+     * The key policy must meet the following criteria:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the KMS
+     * key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set
+     * <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Each statement in the key policy must contain one or more principals. The principals in the key policy must exist
+     * and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a delay
+     * before including the new principal in a key policy because the new principal might not be immediately visible to
+     * KMS. For more information, see <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+     * >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access
+     * Management User Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * A key policy document can include only the following characters:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII character
+     * range.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>) special
+     * characters
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the
+     * <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>.
+     * </p>
+     * 
+     * @return The key policy to attach to the KMS key.</p>
+     *         <p>
+     *         The key policy must meet the following criteria:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on
+     *         the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a
+     *         href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     *         >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition,
+     *         set <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Each statement in the key policy must contain one or more principals. The principals in the key policy
+     *         must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to
+     *         enforce a delay before including the new principal in a key policy because the new principal might not be
+     *         immediately visible to KMS. For more information, see <a href=
+     *         "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+     *         >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and
+     *         Access Management User Guide</i>.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         A key policy document can include only the following characters:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII
+     *         character range.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>
+     *         ).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>)
+     *         special characters
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about key policies, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in
+     *         the <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy document,
+     *         see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON
+     *         Policy Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     */
+    public final String policy() {
+        return policy;
+    }
+
+    /**
+     * <p>
+     * Skips ("bypasses") the key policy lockout safety check. The default value is false.
+     * </p>
+     * <important>
+     * <p>
+     * Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to
+     * true indiscriminately.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </important>
+     * <p>
+     * Use this parameter only when you intend to prevent the principal that is making the request from making a
+     * subsequent <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * request on the KMS key.
+     * </p>
+     * 
+     * @return Skips ("bypasses") the key policy lockout safety check. The default value is false.</p> <important>
+     *         <p>
+     *         Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this
+     *         value to true indiscriminately.
+     *         </p>
+     *         <p>
+     *         For more information, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     *         >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         Use this parameter only when you intend to prevent the principal that is making the request from making a
+     *         subsequent <a
+     *         href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request
+     *         on the KMS key.
+     */
+    public final Boolean bypassPolicyLockoutSafetyCheck() {
+        return bypassPolicyLockoutSafetyCheck;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(policyName());
+        hashCode = 31 * hashCode + Objects.hashCode(policy());
+        hashCode = 31 * hashCode + Objects.hashCode(bypassPolicyLockoutSafetyCheck());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof PutKeyPolicyRequest)) {
+            return false;
+        }
+        PutKeyPolicyRequest other = (PutKeyPolicyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(policyName(), other.policyName())
+                && Objects.equals(policy(), other.policy())
+                && Objects.equals(bypassPolicyLockoutSafetyCheck(), other.bypassPolicyLockoutSafetyCheck());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("PutKeyPolicyRequest").add("KeyId", keyId()).add("PolicyName", policyName())
+                .add("Policy", policy()).add("BypassPolicyLockoutSafetyCheck", bypassPolicyLockoutSafetyCheck()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "PolicyName":
+            return Optional.ofNullable(clazz.cast(policyName()));
+        case "Policy":
+            return Optional.ofNullable(clazz.cast(policy()));
+        case "BypassPolicyLockoutSafetyCheck":
+            return Optional.ofNullable(clazz.cast(bypassPolicyLockoutSafetyCheck()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<PutKeyPolicyRequest, T> g) {
+        return obj -> g.apply((PutKeyPolicyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, PutKeyPolicyRequest> {
+        /**
+         * <p>
+         * Sets the key policy on the specified KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Sets the key policy on the specified KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The name of the key policy. The only valid value is <code>default</code>.
+         * </p>
+         * 
+         * @param policyName
+         *        The name of the key policy. The only valid value is <code>default</code>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policyName(String policyName);
+
+        /**
+         * <p>
+         * The key policy to attach to the KMS key.
+         * </p>
+         * <p>
+         * The key policy must meet the following criteria:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the
+         * KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set
+         * <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Each statement in the key policy must contain one or more principals. The principals in the key policy must
+         * exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a
+         * delay before including the new principal in a key policy because the new principal might not be immediately
+         * visible to KMS. For more information, see <a href=
+         * "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+         * >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access
+         * Management User Guide</i>.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * A key policy document can include only the following characters:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII
+         * character range.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>)
+         * special characters
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * For information about key policies, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the
+         * <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy document, see the
+         * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy
+         * Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * </p>
+         * 
+         * @param policy
+         *        The key policy to attach to the KMS key.</p>
+         *        <p>
+         *        The key policy must meet the following criteria:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request
+         *        on the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see
+         *        <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition,
+         *        set <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Each statement in the key policy must contain one or more principals. The principals in the key policy
+         *        must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need
+         *        to enforce a delay before including the new principal in a key policy because the new principal might
+         *        not be immediately visible to KMS. For more information, see <a href=
+         *        "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+         *        >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and
+         *        Access Management User Guide</i>.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        A key policy document can include only the following characters:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII
+         *        character range.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Printable characters in the Basic Latin and Latin-1 Supplement character set (through
+         *        <code>\u00FF</code>).
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>
+         *        ) special characters
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        For information about key policies, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a>
+         *        in the <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy
+         *        document, see the <a
+         *        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy
+         *        Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policy(String policy);
+
+        /**
+         * <p>
+         * Skips ("bypasses") the key policy lockout safety check. The default value is false.
+         * </p>
+         * <important>
+         * <p>
+         * Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to
+         * true indiscriminately.
+         * </p>
+         * <p>
+         * For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </important>
+         * <p>
+         * Use this parameter only when you intend to prevent the principal that is making the request from making a
+         * subsequent <a
+         * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request on
+         * the KMS key.
+         * </p>
+         * 
+         * @param bypassPolicyLockoutSafetyCheck
+         *        Skips ("bypasses") the key policy lockout safety check. The default value is false.</p> <important>
+         *        <p>
+         *        Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this
+         *        value to true indiscriminately.
+         *        </p>
+         *        <p>
+         *        For more information, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        Use this parameter only when you intend to prevent the principal that is making the request from
+         *        making a subsequent <a
+         *        href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+         *        request on the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder bypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String policyName;
+
+        private String policy;
+
+        private Boolean bypassPolicyLockoutSafetyCheck;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(PutKeyPolicyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            policyName(model.policyName);
+            policy(model.policy);
+            bypassPolicyLockoutSafetyCheck(model.bypassPolicyLockoutSafetyCheck);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getPolicyName() {
+            return policyName;
+        }
+
+        public final void setPolicyName(String policyName) {
+            this.policyName = policyName;
+        }
+
+        @Override
+        public final Builder policyName(String policyName) {
+            this.policyName = policyName;
+            return this;
+        }
+
+        public final String getPolicy() {
+            return policy;
+        }
+
+        public final void setPolicy(String policy) {
+            this.policy = policy;
+        }
+
+        @Override
+        public final Builder policy(String policy) {
+            this.policy = policy;
+            return this;
+        }
+
+        public final Boolean getBypassPolicyLockoutSafetyCheck() {
+            return bypassPolicyLockoutSafetyCheck;
+        }
+
+        public final void setBypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) {
+            this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck;
+        }
+
+        @Override
+        public final Builder bypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) {
+            this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public PutKeyPolicyRequest build() {
+            return new PutKeyPolicyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PutKeyPolicyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PutKeyPolicyResponse.java
new file mode 100644
index 0000000..2cee04a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/PutKeyPolicyResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class PutKeyPolicyResponse extends KmsResponse implements
+        ToCopyableBuilder<PutKeyPolicyResponse.Builder, PutKeyPolicyResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private PutKeyPolicyResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof PutKeyPolicyResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("PutKeyPolicyResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, PutKeyPolicyResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(PutKeyPolicyResponse model) {
+            super(model);
+        }
+
+        @Override
+        public PutKeyPolicyResponse build() {
+            return new PutKeyPolicyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReEncryptRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReEncryptRequest.java
new file mode 100644
index 0000000..e692add
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReEncryptRequest.java
@@ -0,0 +1,1444 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.traits.MapTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructMap;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ReEncryptRequest extends KmsRequest implements ToCopyableBuilder<ReEncryptRequest.Builder, ReEncryptRequest> {
+    private static final SdkField<SdkBytes> CIPHERTEXT_BLOB_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("CiphertextBlob").getter(getter(ReEncryptRequest::ciphertextBlob))
+            .setter(setter(Builder::ciphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextBlob").build()).build();
+
+    private static final SdkField<Map<String, String>> SOURCE_ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("SourceEncryptionContext")
+            .getter(getter(ReEncryptRequest::sourceEncryptionContext))
+            .setter(setter(Builder::sourceEncryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceEncryptionContext").build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<String> SOURCE_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SourceKeyId").getter(getter(ReEncryptRequest::sourceKeyId)).setter(setter(Builder::sourceKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceKeyId").build()).build();
+
+    private static final SdkField<String> DESTINATION_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("DestinationKeyId").getter(getter(ReEncryptRequest::destinationKeyId))
+            .setter(setter(Builder::destinationKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DestinationKeyId").build()).build();
+
+    private static final SdkField<Map<String, String>> DESTINATION_ENCRYPTION_CONTEXT_FIELD = SdkField
+            .<Map<String, String>> builder(MarshallingType.MAP)
+            .memberName("DestinationEncryptionContext")
+            .getter(getter(ReEncryptRequest::destinationEncryptionContext))
+            .setter(setter(Builder::destinationEncryptionContext))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DestinationEncryptionContext")
+                    .build(),
+                    MapTrait.builder()
+                            .keyLocationName("key")
+                            .valueLocationName("value")
+                            .valueFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("value").build()).build()).build()).build();
+
+    private static final SdkField<String> SOURCE_ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SourceEncryptionAlgorithm").getter(getter(ReEncryptRequest::sourceEncryptionAlgorithmAsString))
+            .setter(setter(Builder::sourceEncryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceEncryptionAlgorithm").build())
+            .build();
+
+    private static final SdkField<String> DESTINATION_ENCRYPTION_ALGORITHM_FIELD = SdkField
+            .<String> builder(MarshallingType.STRING)
+            .memberName("DestinationEncryptionAlgorithm")
+            .getter(getter(ReEncryptRequest::destinationEncryptionAlgorithmAsString))
+            .setter(setter(Builder::destinationEncryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DestinationEncryptionAlgorithm")
+                    .build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(ReEncryptRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(ReEncryptRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CIPHERTEXT_BLOB_FIELD,
+            SOURCE_ENCRYPTION_CONTEXT_FIELD, SOURCE_KEY_ID_FIELD, DESTINATION_KEY_ID_FIELD, DESTINATION_ENCRYPTION_CONTEXT_FIELD,
+            SOURCE_ENCRYPTION_ALGORITHM_FIELD, DESTINATION_ENCRYPTION_ALGORITHM_FIELD, GRANT_TOKENS_FIELD, DRY_RUN_FIELD));
+
+    private final SdkBytes ciphertextBlob;
+
+    private final Map<String, String> sourceEncryptionContext;
+
+    private final String sourceKeyId;
+
+    private final String destinationKeyId;
+
+    private final Map<String, String> destinationEncryptionContext;
+
+    private final String sourceEncryptionAlgorithm;
+
+    private final String destinationEncryptionAlgorithm;
+
+    private final List<String> grantTokens;
+
+    private final Boolean dryRun;
+
+    private ReEncryptRequest(BuilderImpl builder) {
+        super(builder);
+        this.ciphertextBlob = builder.ciphertextBlob;
+        this.sourceEncryptionContext = builder.sourceEncryptionContext;
+        this.sourceKeyId = builder.sourceKeyId;
+        this.destinationKeyId = builder.destinationKeyId;
+        this.destinationEncryptionContext = builder.destinationEncryptionContext;
+        this.sourceEncryptionAlgorithm = builder.sourceEncryptionAlgorithm;
+        this.destinationEncryptionAlgorithm = builder.destinationEncryptionAlgorithm;
+        this.grantTokens = builder.grantTokens;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Ciphertext of the data to reencrypt.
+     * </p>
+     * 
+     * @return Ciphertext of the data to reencrypt.
+     */
+    public final SdkBytes ciphertextBlob() {
+        return ciphertextBlob;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the SourceEncryptionContext property. This
+     * DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
+     * property). This is useful because the SDK will never return a null collection or map, but you may need to
+     * differentiate between the service returning nothing (or null) and the service returning an empty collection or
+     * map. For requests, this returns true if a value for the property was specified in the request builder, and false
+     * if a value was not specified.
+     */
+    public final boolean hasSourceEncryptionContext() {
+        return sourceEncryptionContext != null && !(sourceEncryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context that was
+     * used to encrypt the ciphertext.
+     * </p>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasSourceEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context that
+     *         was used to encrypt the ciphertext.</p>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> sourceEncryptionContext() {
+        return sourceEncryptionContext;
+    }
+
+    /**
+     * <p>
+     * Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted.
+     * </p>
+     * <p>
+     * Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS key, the
+     * <code>ReEncrypt</code> operation throws an <code>IncorrectKeyException</code>.
+     * </p>
+     * <p>
+     * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a
+     * symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext
+     * blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key that
+     * you intend.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted.</p>
+     *         <p>
+     *         Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS
+     *         key, the <code>ReEncrypt</code> operation throws an <code>IncorrectKeyException</code>.
+     *         </p>
+     *         <p>
+     *         This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you
+     *         used a symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric
+     *         ciphertext blob. However, it is always recommended as a best practice. This practice ensures that you use
+     *         the KMS key that you intend.
+     *         </p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String sourceKeyId() {
+        return sourceKeyId;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric encryption KMS key or
+     * an asymmetric KMS key with a <code>KeyUsage</code> value of <code>ENCRYPT_DECRYPT</code>. To find the
+     * <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric encryption
+     *         KMS key or an asymmetric KMS key with a <code>KeyUsage</code> value of <code>ENCRYPT_DECRYPT</code>. To
+     *         find the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a> operation.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String destinationKeyId() {
+        return destinationKeyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the DestinationEncryptionContext property.
+     * This DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
+     * property). This is useful because the SDK will never return a null collection or map, but you may need to
+     * differentiate between the service returning nothing (or null) and the service returning an empty collection or
+     * map. For requests, this returns true if a value for the property was specified in the request builder, and false
+     * if a value was not specified.
+     */
+    public final boolean hasDestinationEncryptionContext() {
+        return destinationEncryptionContext != null && !(destinationEncryptionContext instanceof SdkAutoConstructMap);
+    }
+
+    /**
+     * <p>
+     * Specifies that encryption context to use when the reencrypting the data.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * A destination encryption context is valid only when the destination KMS key is a symmetric encryption KMS key.
+     * The standard ciphertext format for asymmetric KMS keys does not include fields for metadata.
+     * </p>
+     * <p>
+     * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+     * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+     * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption
+     * context is optional, but it is strongly recommended.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a>
+     * in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasDestinationEncryptionContext} method.
+     * </p>
+     * 
+     * @return Specifies that encryption context to use when the reencrypting the data.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         A destination encryption context is valid only when the destination KMS key is a symmetric encryption KMS
+     *         key. The standard ciphertext format for asymmetric KMS keys does not include fields for metadata.
+     *         </p>
+     *         <p>
+     *         An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+     *         authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+     *         exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+     *         only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys,
+     *         an encryption context is optional, but it is strongly recommended.
+     *         </p>
+     *         <p>
+     *         For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+     *         context</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Map<String, String> destinationEncryptionContext() {
+        return destinationEncryptionContext;
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The
+     * default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for symmetric encryption KMS keys.
+     * </p>
+     * <p>
+     * Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm, the
+     * decrypt attempt fails.
+     * </p>
+     * <p>
+     * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #sourceEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw
+     * value returned by the service is available from {@link #sourceEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted.
+     *         The default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for symmetric encryption
+     *         KMS keys.</p>
+     *         <p>
+     *         Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm,
+     *         the decrypt attempt fails.
+     *         </p>
+     *         <p>
+     *         This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec sourceEncryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(sourceEncryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The
+     * default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for symmetric encryption KMS keys.
+     * </p>
+     * <p>
+     * Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm, the
+     * decrypt attempt fails.
+     * </p>
+     * <p>
+     * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #sourceEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw
+     * value returned by the service is available from {@link #sourceEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted.
+     *         The default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for symmetric encryption
+     *         KMS keys.</p>
+     *         <p>
+     *         Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm,
+     *         the decrypt attempt fails.
+     *         </p>
+     *         <p>
+     *         This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String sourceEncryptionAlgorithmAsString() {
+        return sourceEncryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The default
+     * value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for symmetric encryption KMS
+     * keys.
+     * </p>
+     * <p>
+     * This parameter is required only when the destination KMS key is an asymmetric KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #destinationEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The
+     * raw value returned by the service is available from {@link #destinationEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The
+     *         default value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for symmetric
+     *         encryption KMS keys.</p>
+     *         <p>
+     *         This parameter is required only when the destination KMS key is an asymmetric KMS key.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec destinationEncryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(destinationEncryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The default
+     * value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for symmetric encryption KMS
+     * keys.
+     * </p>
+     * <p>
+     * This parameter is required only when the destination KMS key is an asymmetric KMS key.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #destinationEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The
+     * raw value returned by the service is available from {@link #destinationEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The
+     *         default value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for symmetric
+     *         encryption KMS keys.</p>
+     *         <p>
+     *         This parameter is required only when the destination KMS key is an asymmetric KMS key.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String destinationEncryptionAlgorithmAsString() {
+        return destinationEncryptionAlgorithm;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(hasSourceEncryptionContext() ? sourceEncryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(sourceKeyId());
+        hashCode = 31 * hashCode + Objects.hashCode(destinationKeyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasDestinationEncryptionContext() ? destinationEncryptionContext() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(sourceEncryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(destinationEncryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ReEncryptRequest)) {
+            return false;
+        }
+        ReEncryptRequest other = (ReEncryptRequest) obj;
+        return Objects.equals(ciphertextBlob(), other.ciphertextBlob())
+                && hasSourceEncryptionContext() == other.hasSourceEncryptionContext()
+                && Objects.equals(sourceEncryptionContext(), other.sourceEncryptionContext())
+                && Objects.equals(sourceKeyId(), other.sourceKeyId())
+                && Objects.equals(destinationKeyId(), other.destinationKeyId())
+                && hasDestinationEncryptionContext() == other.hasDestinationEncryptionContext()
+                && Objects.equals(destinationEncryptionContext(), other.destinationEncryptionContext())
+                && Objects.equals(sourceEncryptionAlgorithmAsString(), other.sourceEncryptionAlgorithmAsString())
+                && Objects.equals(destinationEncryptionAlgorithmAsString(), other.destinationEncryptionAlgorithmAsString())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ReEncryptRequest").add("CiphertextBlob", ciphertextBlob())
+                .add("SourceEncryptionContext", hasSourceEncryptionContext() ? sourceEncryptionContext() : null)
+                .add("SourceKeyId", sourceKeyId()).add("DestinationKeyId", destinationKeyId())
+                .add("DestinationEncryptionContext", hasDestinationEncryptionContext() ? destinationEncryptionContext() : null)
+                .add("SourceEncryptionAlgorithm", sourceEncryptionAlgorithmAsString())
+                .add("DestinationEncryptionAlgorithm", destinationEncryptionAlgorithmAsString())
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CiphertextBlob":
+            return Optional.ofNullable(clazz.cast(ciphertextBlob()));
+        case "SourceEncryptionContext":
+            return Optional.ofNullable(clazz.cast(sourceEncryptionContext()));
+        case "SourceKeyId":
+            return Optional.ofNullable(clazz.cast(sourceKeyId()));
+        case "DestinationKeyId":
+            return Optional.ofNullable(clazz.cast(destinationKeyId()));
+        case "DestinationEncryptionContext":
+            return Optional.ofNullable(clazz.cast(destinationEncryptionContext()));
+        case "SourceEncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(sourceEncryptionAlgorithmAsString()));
+        case "DestinationEncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(destinationEncryptionAlgorithmAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ReEncryptRequest, T> g) {
+        return obj -> g.apply((ReEncryptRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ReEncryptRequest> {
+        /**
+         * <p>
+         * Ciphertext of the data to reencrypt.
+         * </p>
+         * 
+         * @param ciphertextBlob
+         *        Ciphertext of the data to reencrypt.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextBlob(SdkBytes ciphertextBlob);
+
+        /**
+         * <p>
+         * Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context that was
+         * used to encrypt the ciphertext.
+         * </p>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param sourceEncryptionContext
+         *        Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context
+         *        that was used to encrypt the ciphertext.</p>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder sourceEncryptionContext(Map<String, String> sourceEncryptionContext);
+
+        /**
+         * <p>
+         * Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted.
+         * </p>
+         * <p>
+         * Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS key,
+         * the <code>ReEncrypt</code> operation throws an <code>IncorrectKeyException</code>.
+         * </p>
+         * <p>
+         * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a
+         * symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext
+         * blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key
+         * that you intend.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param sourceKeyId
+         *        Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted.</p>
+         *        <p>
+         *        Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS
+         *        key, the <code>ReEncrypt</code> operation throws an <code>IncorrectKeyException</code>.
+         *        </p>
+         *        <p>
+         *        This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you
+         *        used a symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the
+         *        symmetric ciphertext blob. However, it is always recommended as a best practice. This practice ensures
+         *        that you use the KMS key that you intend.
+         *        </p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder sourceKeyId(String sourceKeyId);
+
+        /**
+         * <p>
+         * A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric encryption KMS
+         * key or an asymmetric KMS key with a <code>KeyUsage</code> value of <code>ENCRYPT_DECRYPT</code>. To find the
+         * <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a> operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param destinationKeyId
+         *        A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric encryption
+         *        KMS key or an asymmetric KMS key with a <code>KeyUsage</code> value of <code>ENCRYPT_DECRYPT</code>.
+         *        To find the <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a> operation.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder destinationKeyId(String destinationKeyId);
+
+        /**
+         * <p>
+         * Specifies that encryption context to use when the reencrypting the data.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * A destination encryption context is valid only when the destination KMS key is a symmetric encryption KMS
+         * key. The standard ciphertext format for asymmetric KMS keys does not include fields for metadata.
+         * </p>
+         * <p>
+         * An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         * authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact
+         * case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on
+         * operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an
+         * encryption context is optional, but it is strongly recommended.
+         * </p>
+         * <p>
+         * For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         * context</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param destinationEncryptionContext
+         *        Specifies that encryption context to use when the reencrypting the data.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        A destination encryption context is valid only when the destination KMS key is a symmetric encryption
+         *        KMS key. The standard ciphertext format for asymmetric KMS keys does not include fields for metadata.
+         *        </p>
+         *        <p>
+         *        An <i>encryption context</i> is a collection of non-secret key-value pairs that represent additional
+         *        authenticated data. When you use an encryption context to encrypt data, you must specify the same (an
+         *        exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported
+         *        only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS
+         *        keys, an encryption context is optional, but it is strongly recommended.
+         *        </p>
+         *        <p>
+         *        For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
+         *        context</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder destinationEncryptionContext(Map<String, String> destinationEncryptionContext);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The
+         * default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for symmetric encryption KMS
+         * keys.
+         * </p>
+         * <p>
+         * Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm, the
+         * decrypt attempt fails.
+         * </p>
+         * <p>
+         * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+         * </p>
+         * 
+         * @param sourceEncryptionAlgorithm
+         *        Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is
+         *        reencrypted. The default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for
+         *        symmetric encryption KMS keys.</p>
+         *        <p>
+         *        Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different
+         *        algorithm, the decrypt attempt fails.
+         *        </p>
+         *        <p>
+         *        This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder sourceEncryptionAlgorithm(String sourceEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The
+         * default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for symmetric encryption KMS
+         * keys.
+         * </p>
+         * <p>
+         * Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm, the
+         * decrypt attempt fails.
+         * </p>
+         * <p>
+         * This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+         * </p>
+         * 
+         * @param sourceEncryptionAlgorithm
+         *        Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is
+         *        reencrypted. The default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm used for
+         *        symmetric encryption KMS keys.</p>
+         *        <p>
+         *        Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different
+         *        algorithm, the decrypt attempt fails.
+         *        </p>
+         *        <p>
+         *        This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder sourceEncryptionAlgorithm(EncryptionAlgorithmSpec sourceEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The
+         * default value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for symmetric
+         * encryption KMS keys.
+         * </p>
+         * <p>
+         * This parameter is required only when the destination KMS key is an asymmetric KMS key.
+         * </p>
+         * 
+         * @param destinationEncryptionAlgorithm
+         *        Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it.
+         *        The default value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for
+         *        symmetric encryption KMS keys.</p>
+         *        <p>
+         *        This parameter is required only when the destination KMS key is an asymmetric KMS key.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder destinationEncryptionAlgorithm(String destinationEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The
+         * default value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for symmetric
+         * encryption KMS keys.
+         * </p>
+         * <p>
+         * This parameter is required only when the destination KMS key is an asymmetric KMS key.
+         * </p>
+         * 
+         * @param destinationEncryptionAlgorithm
+         *        Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it.
+         *        The default value, <code>SYMMETRIC_DEFAULT</code>, represents the encryption algorithm used for
+         *        symmetric encryption KMS keys.</p>
+         *        <p>
+         *        This parameter is required only when the destination KMS key is an asymmetric KMS key.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder destinationEncryptionAlgorithm(EncryptionAlgorithmSpec destinationEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private SdkBytes ciphertextBlob;
+
+        private Map<String, String> sourceEncryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private String sourceKeyId;
+
+        private String destinationKeyId;
+
+        private Map<String, String> destinationEncryptionContext = DefaultSdkAutoConstructMap.getInstance();
+
+        private String sourceEncryptionAlgorithm;
+
+        private String destinationEncryptionAlgorithm;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ReEncryptRequest model) {
+            super(model);
+            ciphertextBlob(model.ciphertextBlob);
+            sourceEncryptionContext(model.sourceEncryptionContext);
+            sourceKeyId(model.sourceKeyId);
+            destinationKeyId(model.destinationKeyId);
+            destinationEncryptionContext(model.destinationEncryptionContext);
+            sourceEncryptionAlgorithm(model.sourceEncryptionAlgorithm);
+            destinationEncryptionAlgorithm(model.destinationEncryptionAlgorithm);
+            grantTokens(model.grantTokens);
+            dryRun(model.dryRun);
+        }
+
+        public final ByteBuffer getCiphertextBlob() {
+            return ciphertextBlob == null ? null : ciphertextBlob.asByteBuffer();
+        }
+
+        public final void setCiphertextBlob(ByteBuffer ciphertextBlob) {
+            ciphertextBlob(ciphertextBlob == null ? null : SdkBytes.fromByteBuffer(ciphertextBlob));
+        }
+
+        @Override
+        public final Builder ciphertextBlob(SdkBytes ciphertextBlob) {
+            this.ciphertextBlob = ciphertextBlob;
+            return this;
+        }
+
+        public final Map<String, String> getSourceEncryptionContext() {
+            if (sourceEncryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return sourceEncryptionContext;
+        }
+
+        public final void setSourceEncryptionContext(Map<String, String> sourceEncryptionContext) {
+            this.sourceEncryptionContext = EncryptionContextTypeCopier.copy(sourceEncryptionContext);
+        }
+
+        @Override
+        public final Builder sourceEncryptionContext(Map<String, String> sourceEncryptionContext) {
+            this.sourceEncryptionContext = EncryptionContextTypeCopier.copy(sourceEncryptionContext);
+            return this;
+        }
+
+        public final String getSourceKeyId() {
+            return sourceKeyId;
+        }
+
+        public final void setSourceKeyId(String sourceKeyId) {
+            this.sourceKeyId = sourceKeyId;
+        }
+
+        @Override
+        public final Builder sourceKeyId(String sourceKeyId) {
+            this.sourceKeyId = sourceKeyId;
+            return this;
+        }
+
+        public final String getDestinationKeyId() {
+            return destinationKeyId;
+        }
+
+        public final void setDestinationKeyId(String destinationKeyId) {
+            this.destinationKeyId = destinationKeyId;
+        }
+
+        @Override
+        public final Builder destinationKeyId(String destinationKeyId) {
+            this.destinationKeyId = destinationKeyId;
+            return this;
+        }
+
+        public final Map<String, String> getDestinationEncryptionContext() {
+            if (destinationEncryptionContext instanceof SdkAutoConstructMap) {
+                return null;
+            }
+            return destinationEncryptionContext;
+        }
+
+        public final void setDestinationEncryptionContext(Map<String, String> destinationEncryptionContext) {
+            this.destinationEncryptionContext = EncryptionContextTypeCopier.copy(destinationEncryptionContext);
+        }
+
+        @Override
+        public final Builder destinationEncryptionContext(Map<String, String> destinationEncryptionContext) {
+            this.destinationEncryptionContext = EncryptionContextTypeCopier.copy(destinationEncryptionContext);
+            return this;
+        }
+
+        public final String getSourceEncryptionAlgorithm() {
+            return sourceEncryptionAlgorithm;
+        }
+
+        public final void setSourceEncryptionAlgorithm(String sourceEncryptionAlgorithm) {
+            this.sourceEncryptionAlgorithm = sourceEncryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder sourceEncryptionAlgorithm(String sourceEncryptionAlgorithm) {
+            this.sourceEncryptionAlgorithm = sourceEncryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder sourceEncryptionAlgorithm(EncryptionAlgorithmSpec sourceEncryptionAlgorithm) {
+            this.sourceEncryptionAlgorithm(sourceEncryptionAlgorithm == null ? null : sourceEncryptionAlgorithm.toString());
+            return this;
+        }
+
+        public final String getDestinationEncryptionAlgorithm() {
+            return destinationEncryptionAlgorithm;
+        }
+
+        public final void setDestinationEncryptionAlgorithm(String destinationEncryptionAlgorithm) {
+            this.destinationEncryptionAlgorithm = destinationEncryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder destinationEncryptionAlgorithm(String destinationEncryptionAlgorithm) {
+            this.destinationEncryptionAlgorithm = destinationEncryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder destinationEncryptionAlgorithm(EncryptionAlgorithmSpec destinationEncryptionAlgorithm) {
+            this.destinationEncryptionAlgorithm(destinationEncryptionAlgorithm == null ? null : destinationEncryptionAlgorithm
+                    .toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ReEncryptRequest build() {
+            return new ReEncryptRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReEncryptResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReEncryptResponse.java
new file mode 100644
index 0000000..db9d8dd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReEncryptResponse.java
@@ -0,0 +1,494 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ReEncryptResponse extends KmsResponse implements
+        ToCopyableBuilder<ReEncryptResponse.Builder, ReEncryptResponse> {
+    private static final SdkField<SdkBytes> CIPHERTEXT_BLOB_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("CiphertextBlob").getter(getter(ReEncryptResponse::ciphertextBlob))
+            .setter(setter(Builder::ciphertextBlob))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CiphertextBlob").build()).build();
+
+    private static final SdkField<String> SOURCE_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SourceKeyId").getter(getter(ReEncryptResponse::sourceKeyId)).setter(setter(Builder::sourceKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceKeyId").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ReEncryptResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> SOURCE_ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SourceEncryptionAlgorithm").getter(getter(ReEncryptResponse::sourceEncryptionAlgorithmAsString))
+            .setter(setter(Builder::sourceEncryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceEncryptionAlgorithm").build())
+            .build();
+
+    private static final SdkField<String> DESTINATION_ENCRYPTION_ALGORITHM_FIELD = SdkField
+            .<String> builder(MarshallingType.STRING)
+            .memberName("DestinationEncryptionAlgorithm")
+            .getter(getter(ReEncryptResponse::destinationEncryptionAlgorithmAsString))
+            .setter(setter(Builder::destinationEncryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DestinationEncryptionAlgorithm")
+                    .build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CIPHERTEXT_BLOB_FIELD,
+            SOURCE_KEY_ID_FIELD, KEY_ID_FIELD, SOURCE_ENCRYPTION_ALGORITHM_FIELD, DESTINATION_ENCRYPTION_ALGORITHM_FIELD));
+
+    private final SdkBytes ciphertextBlob;
+
+    private final String sourceKeyId;
+
+    private final String keyId;
+
+    private final String sourceEncryptionAlgorithm;
+
+    private final String destinationEncryptionAlgorithm;
+
+    private ReEncryptResponse(BuilderImpl builder) {
+        super(builder);
+        this.ciphertextBlob = builder.ciphertextBlob;
+        this.sourceKeyId = builder.sourceKeyId;
+        this.keyId = builder.keyId;
+        this.sourceEncryptionAlgorithm = builder.sourceEncryptionAlgorithm;
+        this.destinationEncryptionAlgorithm = builder.destinationEncryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The reencrypted data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+     * Otherwise, it is not Base64-encoded.
+     * </p>
+     * 
+     * @return The reencrypted data. When you use the HTTP API or the Amazon Web Services CLI, the value is
+     *         Base64-encoded. Otherwise, it is not Base64-encoded.
+     */
+    public final SdkBytes ciphertextBlob() {
+        return ciphertextBlob;
+    }
+
+    /**
+     * <p>
+     * Unique identifier of the KMS key used to originally encrypt the data.
+     * </p>
+     * 
+     * @return Unique identifier of the KMS key used to originally encrypt the data.
+     */
+    public final String sourceKeyId() {
+        return sourceKeyId;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key that was used to reencrypt the data.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key that was used to reencrypt the data.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #sourceEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw
+     * value returned by the service is available from {@link #sourceEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec sourceEncryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(sourceEncryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #sourceEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw
+     * value returned by the service is available from {@link #sourceEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String sourceEncryptionAlgorithmAsString() {
+        return sourceEncryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to reencrypt the data.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #destinationEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The
+     * raw value returned by the service is available from {@link #destinationEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to reencrypt the data.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final EncryptionAlgorithmSpec destinationEncryptionAlgorithm() {
+        return EncryptionAlgorithmSpec.fromValue(destinationEncryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that was used to reencrypt the data.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #destinationEncryptionAlgorithm} will return {@link EncryptionAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The
+     * raw value returned by the service is available from {@link #destinationEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that was used to reencrypt the data.
+     * @see EncryptionAlgorithmSpec
+     */
+    public final String destinationEncryptionAlgorithmAsString() {
+        return destinationEncryptionAlgorithm;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(ciphertextBlob());
+        hashCode = 31 * hashCode + Objects.hashCode(sourceKeyId());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(sourceEncryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(destinationEncryptionAlgorithmAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ReEncryptResponse)) {
+            return false;
+        }
+        ReEncryptResponse other = (ReEncryptResponse) obj;
+        return Objects.equals(ciphertextBlob(), other.ciphertextBlob()) && Objects.equals(sourceKeyId(), other.sourceKeyId())
+                && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(sourceEncryptionAlgorithmAsString(), other.sourceEncryptionAlgorithmAsString())
+                && Objects.equals(destinationEncryptionAlgorithmAsString(), other.destinationEncryptionAlgorithmAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ReEncryptResponse").add("CiphertextBlob", ciphertextBlob()).add("SourceKeyId", sourceKeyId())
+                .add("KeyId", keyId()).add("SourceEncryptionAlgorithm", sourceEncryptionAlgorithmAsString())
+                .add("DestinationEncryptionAlgorithm", destinationEncryptionAlgorithmAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CiphertextBlob":
+            return Optional.ofNullable(clazz.cast(ciphertextBlob()));
+        case "SourceKeyId":
+            return Optional.ofNullable(clazz.cast(sourceKeyId()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "SourceEncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(sourceEncryptionAlgorithmAsString()));
+        case "DestinationEncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(destinationEncryptionAlgorithmAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ReEncryptResponse, T> g) {
+        return obj -> g.apply((ReEncryptResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ReEncryptResponse> {
+        /**
+         * <p>
+         * The reencrypted data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
+         * Otherwise, it is not Base64-encoded.
+         * </p>
+         * 
+         * @param ciphertextBlob
+         *        The reencrypted data. When you use the HTTP API or the Amazon Web Services CLI, the value is
+         *        Base64-encoded. Otherwise, it is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder ciphertextBlob(SdkBytes ciphertextBlob);
+
+        /**
+         * <p>
+         * Unique identifier of the KMS key used to originally encrypt the data.
+         * </p>
+         * 
+         * @param sourceKeyId
+         *        Unique identifier of the KMS key used to originally encrypt the data.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder sourceKeyId(String sourceKeyId);
+
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key that was used to reencrypt the data.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key that was used to reencrypt the data.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+         * </p>
+         * 
+         * @param sourceEncryptionAlgorithm
+         *        The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder sourceEncryptionAlgorithm(String sourceEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+         * </p>
+         * 
+         * @param sourceEncryptionAlgorithm
+         *        The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder sourceEncryptionAlgorithm(EncryptionAlgorithmSpec sourceEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to reencrypt the data.
+         * </p>
+         * 
+         * @param destinationEncryptionAlgorithm
+         *        The encryption algorithm that was used to reencrypt the data.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder destinationEncryptionAlgorithm(String destinationEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * The encryption algorithm that was used to reencrypt the data.
+         * </p>
+         * 
+         * @param destinationEncryptionAlgorithm
+         *        The encryption algorithm that was used to reencrypt the data.
+         * @see EncryptionAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see EncryptionAlgorithmSpec
+         */
+        Builder destinationEncryptionAlgorithm(EncryptionAlgorithmSpec destinationEncryptionAlgorithm);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private SdkBytes ciphertextBlob;
+
+        private String sourceKeyId;
+
+        private String keyId;
+
+        private String sourceEncryptionAlgorithm;
+
+        private String destinationEncryptionAlgorithm;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ReEncryptResponse model) {
+            super(model);
+            ciphertextBlob(model.ciphertextBlob);
+            sourceKeyId(model.sourceKeyId);
+            keyId(model.keyId);
+            sourceEncryptionAlgorithm(model.sourceEncryptionAlgorithm);
+            destinationEncryptionAlgorithm(model.destinationEncryptionAlgorithm);
+        }
+
+        public final ByteBuffer getCiphertextBlob() {
+            return ciphertextBlob == null ? null : ciphertextBlob.asByteBuffer();
+        }
+
+        public final void setCiphertextBlob(ByteBuffer ciphertextBlob) {
+            ciphertextBlob(ciphertextBlob == null ? null : SdkBytes.fromByteBuffer(ciphertextBlob));
+        }
+
+        @Override
+        public final Builder ciphertextBlob(SdkBytes ciphertextBlob) {
+            this.ciphertextBlob = ciphertextBlob;
+            return this;
+        }
+
+        public final String getSourceKeyId() {
+            return sourceKeyId;
+        }
+
+        public final void setSourceKeyId(String sourceKeyId) {
+            this.sourceKeyId = sourceKeyId;
+        }
+
+        @Override
+        public final Builder sourceKeyId(String sourceKeyId) {
+            this.sourceKeyId = sourceKeyId;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getSourceEncryptionAlgorithm() {
+            return sourceEncryptionAlgorithm;
+        }
+
+        public final void setSourceEncryptionAlgorithm(String sourceEncryptionAlgorithm) {
+            this.sourceEncryptionAlgorithm = sourceEncryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder sourceEncryptionAlgorithm(String sourceEncryptionAlgorithm) {
+            this.sourceEncryptionAlgorithm = sourceEncryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder sourceEncryptionAlgorithm(EncryptionAlgorithmSpec sourceEncryptionAlgorithm) {
+            this.sourceEncryptionAlgorithm(sourceEncryptionAlgorithm == null ? null : sourceEncryptionAlgorithm.toString());
+            return this;
+        }
+
+        public final String getDestinationEncryptionAlgorithm() {
+            return destinationEncryptionAlgorithm;
+        }
+
+        public final void setDestinationEncryptionAlgorithm(String destinationEncryptionAlgorithm) {
+            this.destinationEncryptionAlgorithm = destinationEncryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder destinationEncryptionAlgorithm(String destinationEncryptionAlgorithm) {
+            this.destinationEncryptionAlgorithm = destinationEncryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder destinationEncryptionAlgorithm(EncryptionAlgorithmSpec destinationEncryptionAlgorithm) {
+            this.destinationEncryptionAlgorithm(destinationEncryptionAlgorithm == null ? null : destinationEncryptionAlgorithm
+                    .toString());
+            return this;
+        }
+
+        @Override
+        public ReEncryptResponse build() {
+            return new ReEncryptResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RecipientInfo.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RecipientInfo.java
new file mode 100644
index 0000000..8d0ddc2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RecipientInfo.java
@@ -0,0 +1,306 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Contains information about the party that receives the response from the API operation.
+ * </p>
+ * <p>
+ * This data type is designed to support Amazon Web Services Nitro Enclaves, which lets you create an isolated compute
+ * environment in Amazon EC2. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves,
+ * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web
+ * Services Nitro Enclaves uses KMS</a> in the <i>Key Management Service Developer Guide</i>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class RecipientInfo implements SdkPojo, Serializable, ToCopyableBuilder<RecipientInfo.Builder, RecipientInfo> {
+    private static final SdkField<String> KEY_ENCRYPTION_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyEncryptionAlgorithm").getter(getter(RecipientInfo::keyEncryptionAlgorithmAsString))
+            .setter(setter(Builder::keyEncryptionAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyEncryptionAlgorithm").build())
+            .build();
+
+    private static final SdkField<SdkBytes> ATTESTATION_DOCUMENT_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("AttestationDocument").getter(getter(RecipientInfo::attestationDocument))
+            .setter(setter(Builder::attestationDocument))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AttestationDocument").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(
+            KEY_ENCRYPTION_ALGORITHM_FIELD, ATTESTATION_DOCUMENT_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String keyEncryptionAlgorithm;
+
+    private final SdkBytes attestationDocument;
+
+    private RecipientInfo(BuilderImpl builder) {
+        this.keyEncryptionAlgorithm = builder.keyEncryptionAlgorithm;
+        this.attestationDocument = builder.attestationDocument;
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
+     * encrypt plaintext values for the response. The only valid value is <code>RSAES_OAEP_SHA_256</code>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #keyEncryptionAlgorithm} will return {@link KeyEncryptionMechanism#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #keyEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave
+     *         to encrypt plaintext values for the response. The only valid value is <code>RSAES_OAEP_SHA_256</code>.
+     * @see KeyEncryptionMechanism
+     */
+    public final KeyEncryptionMechanism keyEncryptionAlgorithm() {
+        return KeyEncryptionMechanism.fromValue(keyEncryptionAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
+     * encrypt plaintext values for the response. The only valid value is <code>RSAES_OAEP_SHA_256</code>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #keyEncryptionAlgorithm} will return {@link KeyEncryptionMechanism#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #keyEncryptionAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave
+     *         to encrypt plaintext values for the response. The only valid value is <code>RSAES_OAEP_SHA_256</code>.
+     * @see KeyEncryptionMechanism
+     */
+    public final String keyEncryptionAlgorithmAsString() {
+        return keyEncryptionAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's public
+     * key.
+     * </p>
+     * 
+     * @return The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's
+     *         public key.
+     */
+    public final SdkBytes attestationDocument() {
+        return attestationDocument;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(keyEncryptionAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(attestationDocument());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof RecipientInfo)) {
+            return false;
+        }
+        RecipientInfo other = (RecipientInfo) obj;
+        return Objects.equals(keyEncryptionAlgorithmAsString(), other.keyEncryptionAlgorithmAsString())
+                && Objects.equals(attestationDocument(), other.attestationDocument());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("RecipientInfo").add("KeyEncryptionAlgorithm", keyEncryptionAlgorithmAsString())
+                .add("AttestationDocument", attestationDocument()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyEncryptionAlgorithm":
+            return Optional.ofNullable(clazz.cast(keyEncryptionAlgorithmAsString()));
+        case "AttestationDocument":
+            return Optional.ofNullable(clazz.cast(attestationDocument()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<RecipientInfo, T> g) {
+        return obj -> g.apply((RecipientInfo) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, RecipientInfo> {
+        /**
+         * <p>
+         * The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
+         * encrypt plaintext values for the response. The only valid value is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * 
+         * @param keyEncryptionAlgorithm
+         *        The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro
+         *        Enclave to encrypt plaintext values for the response. The only valid value is
+         *        <code>RSAES_OAEP_SHA_256</code>.
+         * @see KeyEncryptionMechanism
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyEncryptionMechanism
+         */
+        Builder keyEncryptionAlgorithm(String keyEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro Enclave to
+         * encrypt plaintext values for the response. The only valid value is <code>RSAES_OAEP_SHA_256</code>.
+         * </p>
+         * 
+         * @param keyEncryptionAlgorithm
+         *        The encryption algorithm that KMS should use with the public key for an Amazon Web Services Nitro
+         *        Enclave to encrypt plaintext values for the response. The only valid value is
+         *        <code>RSAES_OAEP_SHA_256</code>.
+         * @see KeyEncryptionMechanism
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyEncryptionMechanism
+         */
+        Builder keyEncryptionAlgorithm(KeyEncryptionMechanism keyEncryptionAlgorithm);
+
+        /**
+         * <p>
+         * The attestation document for an Amazon Web Services Nitro Enclave. This document includes the enclave's
+         * public key.
+         * </p>
+         * 
+         * @param attestationDocument
+         *        The attestation document for an Amazon Web Services Nitro Enclave. This document includes the
+         *        enclave's public key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder attestationDocument(SdkBytes attestationDocument);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String keyEncryptionAlgorithm;
+
+        private SdkBytes attestationDocument;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(RecipientInfo model) {
+            keyEncryptionAlgorithm(model.keyEncryptionAlgorithm);
+            attestationDocument(model.attestationDocument);
+        }
+
+        public final String getKeyEncryptionAlgorithm() {
+            return keyEncryptionAlgorithm;
+        }
+
+        public final void setKeyEncryptionAlgorithm(String keyEncryptionAlgorithm) {
+            this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
+        }
+
+        @Override
+        public final Builder keyEncryptionAlgorithm(String keyEncryptionAlgorithm) {
+            this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder keyEncryptionAlgorithm(KeyEncryptionMechanism keyEncryptionAlgorithm) {
+            this.keyEncryptionAlgorithm(keyEncryptionAlgorithm == null ? null : keyEncryptionAlgorithm.toString());
+            return this;
+        }
+
+        public final ByteBuffer getAttestationDocument() {
+            return attestationDocument == null ? null : attestationDocument.asByteBuffer();
+        }
+
+        public final void setAttestationDocument(ByteBuffer attestationDocument) {
+            attestationDocument(attestationDocument == null ? null : SdkBytes.fromByteBuffer(attestationDocument));
+        }
+
+        @Override
+        public final Builder attestationDocument(SdkBytes attestationDocument) {
+            this.attestationDocument = attestationDocument;
+            return this;
+        }
+
+        @Override
+        public RecipientInfo build() {
+            return new RecipientInfo(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReplicateKeyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReplicateKeyRequest.java
new file mode 100644
index 0000000..4273a9f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReplicateKeyRequest.java
@@ -0,0 +1,1322 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ReplicateKeyRequest extends KmsRequest implements
+        ToCopyableBuilder<ReplicateKeyRequest.Builder, ReplicateKeyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ReplicateKeyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> REPLICA_REGION_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("ReplicaRegion").getter(getter(ReplicateKeyRequest::replicaRegion))
+            .setter(setter(Builder::replicaRegion))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReplicaRegion").build()).build();
+
+    private static final SdkField<String> POLICY_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Policy")
+            .getter(getter(ReplicateKeyRequest::policy)).setter(setter(Builder::policy))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Policy").build()).build();
+
+    private static final SdkField<Boolean> BYPASS_POLICY_LOCKOUT_SAFETY_CHECK_FIELD = SdkField
+            .<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("BypassPolicyLockoutSafetyCheck")
+            .getter(getter(ReplicateKeyRequest::bypassPolicyLockoutSafetyCheck))
+            .setter(setter(Builder::bypassPolicyLockoutSafetyCheck))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BypassPolicyLockoutSafetyCheck")
+                    .build()).build();
+
+    private static final SdkField<String> DESCRIPTION_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("Description").getter(getter(ReplicateKeyRequest::description)).setter(setter(Builder::description))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build();
+
+    private static final SdkField<List<Tag>> TAGS_FIELD = SdkField
+            .<List<Tag>> builder(MarshallingType.LIST)
+            .memberName("Tags")
+            .getter(getter(ReplicateKeyRequest::tags))
+            .setter(setter(Builder::tags))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<Tag> builder(MarshallingType.SDK_POJO)
+                                            .constructor(Tag::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            REPLICA_REGION_FIELD, POLICY_FIELD, BYPASS_POLICY_LOCKOUT_SAFETY_CHECK_FIELD, DESCRIPTION_FIELD, TAGS_FIELD));
+
+    private final String keyId;
+
+    private final String replicaRegion;
+
+    private final String policy;
+
+    private final Boolean bypassPolicyLockoutSafetyCheck;
+
+    private final String description;
+
+    private final List<Tag> tags;
+
+    private ReplicateKeyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.replicaRegion = builder.replicaRegion;
+        this.policy = builder.policy;
+        this.bypassPolicyLockoutSafetyCheck = builder.bypassPolicyLockoutSafetyCheck;
+        this.description = builder.description;
+        this.tags = builder.tags;
+    }
+
+    /**
+     * <p>
+     * Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a
+     * multi-Region primary key, use the <a>DescribeKey</a> operation to check the value of the
+     * <code>MultiRegionKeyType</code> property.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of a multi-Region primary key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a
+     *         multi-Region primary key, use the <a>DescribeKey</a> operation to check the value of the
+     *         <code>MultiRegionKeyType</code> property.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of a multi-Region primary key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The Region ID of the Amazon Web Services Region for this replica key.
+     * </p>
+     * <p>
+     * Enter the Region ID, such as <code>us-east-1</code> or <code>ap-southeast-2</code>. For a list of Amazon Web
+     * Services Regions in which KMS is supported, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">KMS service endpoints</a> in the
+     * <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * <note>
+     * <p>
+     * HMAC KMS keys are not supported in all Amazon Web Services Regions. If you try to replicate an HMAC KMS key in an
+     * Amazon Web Services Region in which HMAC keys are not supported, the <code>ReplicateKey</code> operation returns
+     * an <code>UnsupportedOperationException</code>. For a list of Regions in which HMAC KMS keys are supported, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key
+     * Management Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * The replica must be in a different Amazon Web Services Region than its primary key and other replicas of that
+     * primary key, but in the same Amazon Web Services partition. KMS must be available in the replica Region. If the
+     * Region is not enabled by default, the Amazon Web Services account must be enabled in the Region. For information
+     * about Amazon Web Services partitions, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
+     * (ARNs)</a> in the <i>Amazon Web Services General Reference</i>. For information about enabling and disabling
+     * Regions, see <a
+     * href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable">Enabling a Region</a>
+     * and <a href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable">Disabling a
+     * Region</a> in the <i>Amazon Web Services General Reference</i>.
+     * </p>
+     * 
+     * @return The Region ID of the Amazon Web Services Region for this replica key. </p>
+     *         <p>
+     *         Enter the Region ID, such as <code>us-east-1</code> or <code>ap-southeast-2</code>. For a list of Amazon
+     *         Web Services Regions in which KMS is supported, see <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">KMS service endpoints</a> in the
+     *         <i>Amazon Web Services General Reference</i>.
+     *         </p>
+     *         <note>
+     *         <p>
+     *         HMAC KMS keys are not supported in all Amazon Web Services Regions. If you try to replicate an HMAC KMS
+     *         key in an Amazon Web Services Region in which HMAC keys are not supported, the <code>ReplicateKey</code>
+     *         operation returns an <code>UnsupportedOperationException</code>. For a list of Regions in which HMAC KMS
+     *         keys are supported, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC
+     *         keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </note>
+     *         <p>
+     *         The replica must be in a different Amazon Web Services Region than its primary key and other replicas of
+     *         that primary key, but in the same Amazon Web Services partition. KMS must be available in the replica
+     *         Region. If the Region is not enabled by default, the Amazon Web Services account must be enabled in the
+     *         Region. For information about Amazon Web Services partitions, see <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
+     *         (ARNs)</a> in the <i>Amazon Web Services General Reference</i>. For information about enabling and
+     *         disabling Regions, see <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable">Enabling a
+     *         Region</a> and <a
+     *         href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable">Disabling a
+     *         Region</a> in the <i>Amazon Web Services General Reference</i>.
+     */
+    public final String replicaRegion() {
+        return replicaRegion;
+    }
+
+    /**
+     * <p>
+     * The key policy to attach to the KMS key. This parameter is optional. If you do not provide a key policy, KMS
+     * attaches the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">default key
+     * policy</a> to the KMS key.
+     * </p>
+     * <p>
+     * The key policy is not a shared property of multi-Region keys. You can specify the same key policy or a different
+     * key policy for each key in a set of related multi-Region keys. KMS does not synchronize this property.
+     * </p>
+     * <p>
+     * If you provide a key policy, it must meet the following criteria:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the KMS
+     * key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set
+     * <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Each statement in the key policy must contain one or more principals. The principals in the key policy must exist
+     * and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a delay
+     * before including the new principal in a key policy because the new principal might not be immediately visible to
+     * KMS. For more information, see <a href=
+     * "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+     * >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access
+     * Management User Guide</i>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * A key policy document can include only the following characters:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII character
+     * range.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>) special
+     * characters
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * For information about key policies, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the
+     * <i>Key Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a
+     * href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in
+     * the <i> <i>Identity and Access Management User Guide</i> </i>.
+     * </p>
+     * 
+     * @return The key policy to attach to the KMS key. This parameter is optional. If you do not provide a key policy,
+     *         KMS attaches the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">default
+     *         key policy</a> to the KMS key.</p>
+     *         <p>
+     *         The key policy is not a shared property of multi-Region keys. You can specify the same key policy or a
+     *         different key policy for each key in a set of related multi-Region keys. KMS does not synchronize this
+     *         property.
+     *         </p>
+     *         <p>
+     *         If you provide a key policy, it must meet the following criteria:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on
+     *         the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a
+     *         href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     *         >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition,
+     *         set <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Each statement in the key policy must contain one or more principals. The principals in the key policy
+     *         must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to
+     *         enforce a delay before including the new principal in a key policy because the new principal might not be
+     *         immediately visible to KMS. For more information, see <a href=
+     *         "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+     *         >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and
+     *         Access Management User Guide</i>.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         A key policy document can include only the following characters:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII
+     *         character range.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>
+     *         ).
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>)
+     *         special characters
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         For information about key policies, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in
+     *         the <i>Key Management Service Developer Guide</i>. For help writing and formatting a JSON policy
+     *         document, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM
+     *         JSON Policy Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+     */
+    public final String policy() {
+        return policy;
+    }
+
+    /**
+     * <p>
+     * Skips ("bypasses") the key policy lockout safety check. The default value is false.
+     * </p>
+     * <important>
+     * <p>
+     * Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to
+     * true indiscriminately.
+     * </p>
+     * <p>
+     * For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * </important>
+     * <p>
+     * Use this parameter only when you intend to prevent the principal that is making the request from making a
+     * subsequent <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+     * request on the KMS key.
+     * </p>
+     * 
+     * @return Skips ("bypasses") the key policy lockout safety check. The default value is false.</p> <important>
+     *         <p>
+     *         Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this
+     *         value to true indiscriminately.
+     *         </p>
+     *         <p>
+     *         For more information, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+     *         >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         Use this parameter only when you intend to prevent the principal that is making the request from making a
+     *         subsequent <a
+     *         href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request
+     *         on the KMS key.
+     */
+    public final Boolean bypassPolicyLockoutSafetyCheck() {
+        return bypassPolicyLockoutSafetyCheck;
+    }
+
+    /**
+     * <p>
+     * A description of the KMS key. The default value is an empty string (no description).
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * The description is not a shared property of multi-Region keys. You can specify the same description or a
+     * different description for each key in a set of related multi-Region keys. KMS does not synchronize this property.
+     * </p>
+     * 
+     * @return A description of the KMS key. The default value is an empty string (no description).</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         The description is not a shared property of multi-Region keys. You can specify the same description or a
+     *         different description for each key in a set of related multi-Region keys. KMS does not synchronize this
+     *         property.
+     */
+    public final String description() {
+        return description;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
+     * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
+     * because the SDK will never return a null collection or map, but you may need to differentiate between the service
+     * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
+     * if a value for the property was specified in the request builder, and false if a value was not specified.
+     */
+    public final boolean hasTags() {
+        return tags != null && !(tags instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag an
+     * existing KMS key, use the <a>TagResource</a> operation.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important> <note>
+     * <p>
+     * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key Management
+     * Service Developer Guide</i>.
+     * </p>
+     * </note>
+     * <p>
+     * To use this parameter, you must have <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     * >kms:TagResource</a> permission in an IAM policy.
+     * </p>
+     * <p>
+     * Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for each key
+     * in a set of related multi-Region keys. KMS does not synchronize this property.
+     * </p>
+     * <p>
+     * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+     * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If you
+     * specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified
+     * one.
+     * </p>
+     * <p>
+     * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report with
+     * usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasTags} method.
+     * </p>
+     * 
+     * @return Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To
+     *         tag an existing KMS key, use the <a>TagResource</a> operation.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important> <note>
+     *         <p>
+     *         Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+     *         Management Service Developer Guide</i>.
+     *         </p>
+     *         </note>
+     *         <p>
+     *         To use this parameter, you must have <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+     *         >kms:TagResource</a> permission in an IAM policy.
+     *         </p>
+     *         <p>
+     *         Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for
+     *         each key in a set of related multi-Region keys. KMS does not synchronize this property.
+     *         </p>
+     *         <p>
+     *         Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the
+     *         tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag
+     *         key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value
+     *         with the specified one.
+     *         </p>
+     *         <p>
+     *         When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation
+     *         report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For
+     *         details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging
+     *         Keys</a>.
+     */
+    public final List<Tag> tags() {
+        return tags;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(replicaRegion());
+        hashCode = 31 * hashCode + Objects.hashCode(policy());
+        hashCode = 31 * hashCode + Objects.hashCode(bypassPolicyLockoutSafetyCheck());
+        hashCode = 31 * hashCode + Objects.hashCode(description());
+        hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ReplicateKeyRequest)) {
+            return false;
+        }
+        ReplicateKeyRequest other = (ReplicateKeyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(replicaRegion(), other.replicaRegion())
+                && Objects.equals(policy(), other.policy())
+                && Objects.equals(bypassPolicyLockoutSafetyCheck(), other.bypassPolicyLockoutSafetyCheck())
+                && Objects.equals(description(), other.description()) && hasTags() == other.hasTags()
+                && Objects.equals(tags(), other.tags());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ReplicateKeyRequest").add("KeyId", keyId()).add("ReplicaRegion", replicaRegion())
+                .add("Policy", policy()).add("BypassPolicyLockoutSafetyCheck", bypassPolicyLockoutSafetyCheck())
+                .add("Description", description()).add("Tags", hasTags() ? tags() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "ReplicaRegion":
+            return Optional.ofNullable(clazz.cast(replicaRegion()));
+        case "Policy":
+            return Optional.ofNullable(clazz.cast(policy()));
+        case "BypassPolicyLockoutSafetyCheck":
+            return Optional.ofNullable(clazz.cast(bypassPolicyLockoutSafetyCheck()));
+        case "Description":
+            return Optional.ofNullable(clazz.cast(description()));
+        case "Tags":
+            return Optional.ofNullable(clazz.cast(tags()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ReplicateKeyRequest, T> g) {
+        return obj -> g.apply((ReplicateKeyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ReplicateKeyRequest> {
+        /**
+         * <p>
+         * Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a
+         * multi-Region primary key, use the <a>DescribeKey</a> operation to check the value of the
+         * <code>MultiRegionKeyType</code> property.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of a multi-Region primary key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a
+         *        multi-Region primary key, use the <a>DescribeKey</a> operation to check the value of the
+         *        <code>MultiRegionKeyType</code> property.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of a multi-Region primary key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The Region ID of the Amazon Web Services Region for this replica key.
+         * </p>
+         * <p>
+         * Enter the Region ID, such as <code>us-east-1</code> or <code>ap-southeast-2</code>. For a list of Amazon Web
+         * Services Regions in which KMS is supported, see <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">KMS service endpoints</a> in the
+         * <i>Amazon Web Services General Reference</i>.
+         * </p>
+         * <note>
+         * <p>
+         * HMAC KMS keys are not supported in all Amazon Web Services Regions. If you try to replicate an HMAC KMS key
+         * in an Amazon Web Services Region in which HMAC keys are not supported, the <code>ReplicateKey</code>
+         * operation returns an <code>UnsupportedOperationException</code>. For a list of Regions in which HMAC KMS keys
+         * are supported, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in
+         * KMS</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * The replica must be in a different Amazon Web Services Region than its primary key and other replicas of that
+         * primary key, but in the same Amazon Web Services partition. KMS must be available in the replica Region. If
+         * the Region is not enabled by default, the Amazon Web Services account must be enabled in the Region. For
+         * information about Amazon Web Services partitions, see <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
+         * (ARNs)</a> in the <i>Amazon Web Services General Reference</i>. For information about enabling and disabling
+         * Regions, see <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable">Enabling a
+         * Region</a> and <a
+         * href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable">Disabling a
+         * Region</a> in the <i>Amazon Web Services General Reference</i>.
+         * </p>
+         * 
+         * @param replicaRegion
+         *        The Region ID of the Amazon Web Services Region for this replica key. </p>
+         *        <p>
+         *        Enter the Region ID, such as <code>us-east-1</code> or <code>ap-southeast-2</code>. For a list of
+         *        Amazon Web Services Regions in which KMS is supported, see <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">KMS service endpoints</a> in
+         *        the <i>Amazon Web Services General Reference</i>.
+         *        </p>
+         *        <note>
+         *        <p>
+         *        HMAC KMS keys are not supported in all Amazon Web Services Regions. If you try to replicate an HMAC
+         *        KMS key in an Amazon Web Services Region in which HMAC keys are not supported, the
+         *        <code>ReplicateKey</code> operation returns an <code>UnsupportedOperationException</code>. For a list
+         *        of Regions in which HMAC KMS keys are supported, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the
+         *        <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </note>
+         *        <p>
+         *        The replica must be in a different Amazon Web Services Region than its primary key and other replicas
+         *        of that primary key, but in the same Amazon Web Services partition. KMS must be available in the
+         *        replica Region. If the Region is not enabled by default, the Amazon Web Services account must be
+         *        enabled in the Region. For information about Amazon Web Services partitions, see <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource
+         *        Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>. For information about enabling
+         *        and disabling Regions, see <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable">Enabling a
+         *        Region</a> and <a
+         *        href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable">Disabling
+         *        a Region</a> in the <i>Amazon Web Services General Reference</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaRegion(String replicaRegion);
+
+        /**
+         * <p>
+         * The key policy to attach to the KMS key. This parameter is optional. If you do not provide a key policy, KMS
+         * attaches the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">default key
+         * policy</a> to the KMS key.
+         * </p>
+         * <p>
+         * The key policy is not a shared property of multi-Region keys. You can specify the same key policy or a
+         * different key policy for each key in a set of related multi-Region keys. KMS does not synchronize this
+         * property.
+         * </p>
+         * <p>
+         * If you provide a key policy, it must meet the following criteria:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the
+         * KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set
+         * <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Each statement in the key policy must contain one or more principals. The principals in the key policy must
+         * exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a
+         * delay before including the new principal in a key policy because the new principal might not be immediately
+         * visible to KMS. For more information, see <a href=
+         * "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+         * >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access
+         * Management User Guide</i>.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * A key policy document can include only the following characters:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII
+         * character range.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>)
+         * special characters
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * For information about key policies, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the
+         * <i>Key Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see
+         * the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy
+         * Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * </p>
+         * 
+         * @param policy
+         *        The key policy to attach to the KMS key. This parameter is optional. If you do not provide a key
+         *        policy, KMS attaches the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default"
+         *        >default key policy</a> to the KMS key.</p>
+         *        <p>
+         *        The key policy is not a shared property of multi-Region keys. You can specify the same key policy or a
+         *        different key policy for each key in a set of related multi-Region keys. KMS does not synchronize this
+         *        property.
+         *        </p>
+         *        <p>
+         *        If you provide a key policy, it must meet the following criteria:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request
+         *        on the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see
+         *        <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition,
+         *        set <code>BypassPolicyLockoutSafetyCheck</code> to true.)
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Each statement in the key policy must contain one or more principals. The principals in the key policy
+         *        must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need
+         *        to enforce a delay before including the new principal in a key policy because the new principal might
+         *        not be immediately visible to KMS. For more information, see <a href=
+         *        "https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency"
+         *        >Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and
+         *        Access Management User Guide</i>.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        A key policy document can include only the following characters:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII
+         *        character range.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Printable characters in the Basic Latin and Latin-1 Supplement character set (through
+         *        <code>\u00FF</code>).
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>
+         *        ) special characters
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        For information about key policies, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a>
+         *        in the <i>Key Management Service Developer Guide</i>. For help writing and formatting a JSON policy
+         *        document, see the <a
+         *        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy
+         *        Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder policy(String policy);
+
+        /**
+         * <p>
+         * Skips ("bypasses") the key policy lockout safety check. The default value is false.
+         * </p>
+         * <important>
+         * <p>
+         * Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to
+         * true indiscriminately.
+         * </p>
+         * <p>
+         * For more information, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         * >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * </important>
+         * <p>
+         * Use this parameter only when you intend to prevent the principal that is making the request from making a
+         * subsequent <a
+         * href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request on
+         * the KMS key.
+         * </p>
+         * 
+         * @param bypassPolicyLockoutSafetyCheck
+         *        Skips ("bypasses") the key policy lockout safety check. The default value is false.</p> <important>
+         *        <p>
+         *        Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this
+         *        value to true indiscriminately.
+         *        </p>
+         *        <p>
+         *        For more information, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key"
+         *        >Default key policy</a> in the <i>Key Management Service Developer Guide</i>.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        Use this parameter only when you intend to prevent the principal that is making the request from
+         *        making a subsequent <a
+         *        href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a>
+         *        request on the KMS key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder bypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck);
+
+        /**
+         * <p>
+         * A description of the KMS key. The default value is an empty string (no description).
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * The description is not a shared property of multi-Region keys. You can specify the same description or a
+         * different description for each key in a set of related multi-Region keys. KMS does not synchronize this
+         * property.
+         * </p>
+         * 
+         * @param description
+         *        A description of the KMS key. The default value is an empty string (no description).</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        The description is not a shared property of multi-Region keys. You can specify the same description or
+         *        a different description for each key in a set of related multi-Region keys. KMS does not synchronize
+         *        this property.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder description(String description);
+
+        /**
+         * <p>
+         * Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag
+         * an existing KMS key, use the <a>TagResource</a> operation.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important> <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * To use this parameter, you must have <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         * >kms:TagResource</a> permission in an IAM policy.
+         * </p>
+         * <p>
+         * Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for each
+         * key in a set of related multi-Region keys. KMS does not synchronize this property.
+         * </p>
+         * <p>
+         * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+         * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If
+         * you specify an existing tag key with a different tag value, KMS replaces the current tag value with the
+         * specified one.
+         * </p>
+         * <p>
+         * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report
+         * with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details,
+         * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * </p>
+         * 
+         * @param tags
+         *        Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created.
+         *        To tag an existing KMS key, use the <a>TagResource</a> operation.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important> <note>
+         *        <p>
+         *        Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         *        Management Service Developer Guide</i>.
+         *        </p>
+         *        </note>
+         *        <p>
+         *        To use this parameter, you must have <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         *        >kms:TagResource</a> permission in an IAM policy.
+         *        </p>
+         *        <p>
+         *        Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags
+         *        for each key in a set of related multi-Region keys. KMS does not synchronize this property.
+         *        </p>
+         *        <p>
+         *        Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but
+         *        the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the
+         *        same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current
+         *        tag value with the specified one.
+         *        </p>
+         *        <p>
+         *        When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation
+         *        report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Collection<Tag> tags);
+
+        /**
+         * <p>
+         * Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag
+         * an existing KMS key, use the <a>TagResource</a> operation.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important> <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * To use this parameter, you must have <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         * >kms:TagResource</a> permission in an IAM policy.
+         * </p>
+         * <p>
+         * Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for each
+         * key in a set of related multi-Region keys. KMS does not synchronize this property.
+         * </p>
+         * <p>
+         * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+         * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If
+         * you specify an existing tag key with a different tag value, KMS replaces the current tag value with the
+         * specified one.
+         * </p>
+         * <p>
+         * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report
+         * with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details,
+         * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * </p>
+         * 
+         * @param tags
+         *        Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created.
+         *        To tag an existing KMS key, use the <a>TagResource</a> operation.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important> <note>
+         *        <p>
+         *        Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         *        Management Service Developer Guide</i>.
+         *        </p>
+         *        </note>
+         *        <p>
+         *        To use this parameter, you must have <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         *        >kms:TagResource</a> permission in an IAM policy.
+         *        </p>
+         *        <p>
+         *        Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags
+         *        for each key in a set of related multi-Region keys. KMS does not synchronize this property.
+         *        </p>
+         *        <p>
+         *        Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but
+         *        the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the
+         *        same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current
+         *        tag value with the specified one.
+         *        </p>
+         *        <p>
+         *        When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation
+         *        report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key.
+         *        For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Tag... tags);
+
+        /**
+         * <p>
+         * Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag
+         * an existing KMS key, use the <a>TagResource</a> operation.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important> <note>
+         * <p>
+         * Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC for KMS</a> in the <i>Key
+         * Management Service Developer Guide</i>.
+         * </p>
+         * </note>
+         * <p>
+         * To use this parameter, you must have <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
+         * >kms:TagResource</a> permission in an IAM policy.
+         * </p>
+         * <p>
+         * Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for each
+         * key in a set of related multi-Region keys. KMS does not synchronize this property.
+         * </p>
+         * <p>
+         * Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag
+         * value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If
+         * you specify an existing tag key with a different tag value, KMS replaces the current tag value with the
+         * specified one.
+         * </p>
+         * <p>
+         * When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report
+         * with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details,
+         * see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging Keys</a>.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.Tag.Builder} avoiding the need to create one manually via
+         * {@link software.amazon.awssdk.services.kms.model.Tag#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link software.amazon.awssdk.services.kms.model.Tag.Builder#build()} is
+         * called immediately and its result is passed to {@link #tags(List<Tag>)}.
+         * 
+         * @param tags
+         *        a consumer that will call methods on {@link software.amazon.awssdk.services.kms.model.Tag.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #tags(java.util.Collection<Tag>)
+         */
+        Builder tags(Consumer<Tag.Builder>... tags);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String replicaRegion;
+
+        private String policy;
+
+        private Boolean bypassPolicyLockoutSafetyCheck;
+
+        private String description;
+
+        private List<Tag> tags = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ReplicateKeyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            replicaRegion(model.replicaRegion);
+            policy(model.policy);
+            bypassPolicyLockoutSafetyCheck(model.bypassPolicyLockoutSafetyCheck);
+            description(model.description);
+            tags(model.tags);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getReplicaRegion() {
+            return replicaRegion;
+        }
+
+        public final void setReplicaRegion(String replicaRegion) {
+            this.replicaRegion = replicaRegion;
+        }
+
+        @Override
+        public final Builder replicaRegion(String replicaRegion) {
+            this.replicaRegion = replicaRegion;
+            return this;
+        }
+
+        public final String getPolicy() {
+            return policy;
+        }
+
+        public final void setPolicy(String policy) {
+            this.policy = policy;
+        }
+
+        @Override
+        public final Builder policy(String policy) {
+            this.policy = policy;
+            return this;
+        }
+
+        public final Boolean getBypassPolicyLockoutSafetyCheck() {
+            return bypassPolicyLockoutSafetyCheck;
+        }
+
+        public final void setBypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) {
+            this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck;
+        }
+
+        @Override
+        public final Builder bypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) {
+            this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck;
+            return this;
+        }
+
+        public final String getDescription() {
+            return description;
+        }
+
+        public final void setDescription(String description) {
+            this.description = description;
+        }
+
+        @Override
+        public final Builder description(String description) {
+            this.description = description;
+            return this;
+        }
+
+        public final List<Tag.Builder> getTags() {
+            List<Tag.Builder> result = TagListCopier.copyToBuilder(this.tags);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setTags(Collection<Tag.BuilderImpl> tags) {
+            this.tags = TagListCopier.copyFromBuilder(tags);
+        }
+
+        @Override
+        public final Builder tags(Collection<Tag> tags) {
+            this.tags = TagListCopier.copy(tags);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Tag... tags) {
+            tags(Arrays.asList(tags));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Consumer<Tag.Builder>... tags) {
+            tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ReplicateKeyRequest build() {
+            return new ReplicateKeyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReplicateKeyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReplicateKeyResponse.java
new file mode 100644
index 0000000..ed56e9c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ReplicateKeyResponse.java
@@ -0,0 +1,410 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ReplicateKeyResponse extends KmsResponse implements
+        ToCopyableBuilder<ReplicateKeyResponse.Builder, ReplicateKeyResponse> {
+    private static final SdkField<KeyMetadata> REPLICA_KEY_METADATA_FIELD = SdkField
+            .<KeyMetadata> builder(MarshallingType.SDK_POJO).memberName("ReplicaKeyMetadata")
+            .getter(getter(ReplicateKeyResponse::replicaKeyMetadata)).setter(setter(Builder::replicaKeyMetadata))
+            .constructor(KeyMetadata::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReplicaKeyMetadata").build())
+            .build();
+
+    private static final SdkField<String> REPLICA_POLICY_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("ReplicaPolicy").getter(getter(ReplicateKeyResponse::replicaPolicy))
+            .setter(setter(Builder::replicaPolicy))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReplicaPolicy").build()).build();
+
+    private static final SdkField<List<Tag>> REPLICA_TAGS_FIELD = SdkField
+            .<List<Tag>> builder(MarshallingType.LIST)
+            .memberName("ReplicaTags")
+            .getter(getter(ReplicateKeyResponse::replicaTags))
+            .setter(setter(Builder::replicaTags))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReplicaTags").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<Tag> builder(MarshallingType.SDK_POJO)
+                                            .constructor(Tag::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(REPLICA_KEY_METADATA_FIELD,
+            REPLICA_POLICY_FIELD, REPLICA_TAGS_FIELD));
+
+    private final KeyMetadata replicaKeyMetadata;
+
+    private final String replicaPolicy;
+
+    private final List<Tag> replicaTags;
+
+    private ReplicateKeyResponse(BuilderImpl builder) {
+        super(builder);
+        this.replicaKeyMetadata = builder.replicaKeyMetadata;
+        this.replicaPolicy = builder.replicaPolicy;
+        this.replicaTags = builder.replicaTags;
+    }
+
+    /**
+     * <p>
+     * Displays details about the new replica key, including its Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. It also
+     * includes the ARN and Amazon Web Services Region of its primary key and other replica keys.
+     * </p>
+     * 
+     * @return Displays details about the new replica key, including its Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+     *         and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS
+     *         keys</a>. It also includes the ARN and Amazon Web Services Region of its primary key and other replica
+     *         keys.
+     */
+    public final KeyMetadata replicaKeyMetadata() {
+        return replicaKeyMetadata;
+    }
+
+    /**
+     * <p>
+     * The key policy of the new replica key. The value is a key policy document in JSON format.
+     * </p>
+     * 
+     * @return The key policy of the new replica key. The value is a key policy document in JSON format.
+     */
+    public final String replicaPolicy() {
+        return replicaPolicy;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the ReplicaTags property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasReplicaTags() {
+        return replicaTags != null && !(replicaTags instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * The tags on the new replica key. The value is a list of tag key and tag value pairs.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasReplicaTags} method.
+     * </p>
+     * 
+     * @return The tags on the new replica key. The value is a list of tag key and tag value pairs.
+     */
+    public final List<Tag> replicaTags() {
+        return replicaTags;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(replicaKeyMetadata());
+        hashCode = 31 * hashCode + Objects.hashCode(replicaPolicy());
+        hashCode = 31 * hashCode + Objects.hashCode(hasReplicaTags() ? replicaTags() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ReplicateKeyResponse)) {
+            return false;
+        }
+        ReplicateKeyResponse other = (ReplicateKeyResponse) obj;
+        return Objects.equals(replicaKeyMetadata(), other.replicaKeyMetadata())
+                && Objects.equals(replicaPolicy(), other.replicaPolicy()) && hasReplicaTags() == other.hasReplicaTags()
+                && Objects.equals(replicaTags(), other.replicaTags());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ReplicateKeyResponse").add("ReplicaKeyMetadata", replicaKeyMetadata())
+                .add("ReplicaPolicy", replicaPolicy()).add("ReplicaTags", hasReplicaTags() ? replicaTags() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "ReplicaKeyMetadata":
+            return Optional.ofNullable(clazz.cast(replicaKeyMetadata()));
+        case "ReplicaPolicy":
+            return Optional.ofNullable(clazz.cast(replicaPolicy()));
+        case "ReplicaTags":
+            return Optional.ofNullable(clazz.cast(replicaTags()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ReplicateKeyResponse, T> g) {
+        return obj -> g.apply((ReplicateKeyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ReplicateKeyResponse> {
+        /**
+         * <p>
+         * Displays details about the new replica key, including its Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. It
+         * also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.
+         * </p>
+         * 
+         * @param replicaKeyMetadata
+         *        Displays details about the new replica key, including its Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS
+         *        keys</a>. It also includes the ARN and Amazon Web Services Region of its primary key and other replica
+         *        keys.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaKeyMetadata(KeyMetadata replicaKeyMetadata);
+
+        /**
+         * <p>
+         * Displays details about the new replica key, including its Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>. It
+         * also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.
+         * </p>
+         * This is a convenience method that creates an instance of the {@link KeyMetadata.Builder} avoiding the need to
+         * create one manually via {@link KeyMetadata#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link KeyMetadata.Builder#build()} is called immediately and its result
+         * is passed to {@link #replicaKeyMetadata(KeyMetadata)}.
+         * 
+         * @param replicaKeyMetadata
+         *        a consumer that will call methods on {@link KeyMetadata.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #replicaKeyMetadata(KeyMetadata)
+         */
+        default Builder replicaKeyMetadata(Consumer<KeyMetadata.Builder> replicaKeyMetadata) {
+            return replicaKeyMetadata(KeyMetadata.builder().applyMutation(replicaKeyMetadata).build());
+        }
+
+        /**
+         * <p>
+         * The key policy of the new replica key. The value is a key policy document in JSON format.
+         * </p>
+         * 
+         * @param replicaPolicy
+         *        The key policy of the new replica key. The value is a key policy document in JSON format.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaPolicy(String replicaPolicy);
+
+        /**
+         * <p>
+         * The tags on the new replica key. The value is a list of tag key and tag value pairs.
+         * </p>
+         * 
+         * @param replicaTags
+         *        The tags on the new replica key. The value is a list of tag key and tag value pairs.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaTags(Collection<Tag> replicaTags);
+
+        /**
+         * <p>
+         * The tags on the new replica key. The value is a list of tag key and tag value pairs.
+         * </p>
+         * 
+         * @param replicaTags
+         *        The tags on the new replica key. The value is a list of tag key and tag value pairs.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder replicaTags(Tag... replicaTags);
+
+        /**
+         * <p>
+         * The tags on the new replica key. The value is a list of tag key and tag value pairs.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.Tag.Builder} avoiding the need to create one manually via
+         * {@link software.amazon.awssdk.services.kms.model.Tag#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link software.amazon.awssdk.services.kms.model.Tag.Builder#build()} is
+         * called immediately and its result is passed to {@link #replicaTags(List<Tag>)}.
+         * 
+         * @param replicaTags
+         *        a consumer that will call methods on {@link software.amazon.awssdk.services.kms.model.Tag.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #replicaTags(java.util.Collection<Tag>)
+         */
+        Builder replicaTags(Consumer<Tag.Builder>... replicaTags);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private KeyMetadata replicaKeyMetadata;
+
+        private String replicaPolicy;
+
+        private List<Tag> replicaTags = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ReplicateKeyResponse model) {
+            super(model);
+            replicaKeyMetadata(model.replicaKeyMetadata);
+            replicaPolicy(model.replicaPolicy);
+            replicaTags(model.replicaTags);
+        }
+
+        public final KeyMetadata.Builder getReplicaKeyMetadata() {
+            return replicaKeyMetadata != null ? replicaKeyMetadata.toBuilder() : null;
+        }
+
+        public final void setReplicaKeyMetadata(KeyMetadata.BuilderImpl replicaKeyMetadata) {
+            this.replicaKeyMetadata = replicaKeyMetadata != null ? replicaKeyMetadata.build() : null;
+        }
+
+        @Override
+        public final Builder replicaKeyMetadata(KeyMetadata replicaKeyMetadata) {
+            this.replicaKeyMetadata = replicaKeyMetadata;
+            return this;
+        }
+
+        public final String getReplicaPolicy() {
+            return replicaPolicy;
+        }
+
+        public final void setReplicaPolicy(String replicaPolicy) {
+            this.replicaPolicy = replicaPolicy;
+        }
+
+        @Override
+        public final Builder replicaPolicy(String replicaPolicy) {
+            this.replicaPolicy = replicaPolicy;
+            return this;
+        }
+
+        public final List<Tag.Builder> getReplicaTags() {
+            List<Tag.Builder> result = TagListCopier.copyToBuilder(this.replicaTags);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setReplicaTags(Collection<Tag.BuilderImpl> replicaTags) {
+            this.replicaTags = TagListCopier.copyFromBuilder(replicaTags);
+        }
+
+        @Override
+        public final Builder replicaTags(Collection<Tag> replicaTags) {
+            this.replicaTags = TagListCopier.copy(replicaTags);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder replicaTags(Tag... replicaTags) {
+            replicaTags(Arrays.asList(replicaTags));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder replicaTags(Consumer<Tag.Builder>... replicaTags) {
+            replicaTags(Stream.of(replicaTags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        @Override
+        public ReplicateKeyResponse build() {
+            return new ReplicateKeyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RetireGrantRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RetireGrantRequest.java
new file mode 100644
index 0000000..9aee546
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RetireGrantRequest.java
@@ -0,0 +1,439 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class RetireGrantRequest extends KmsRequest implements
+        ToCopyableBuilder<RetireGrantRequest.Builder, RetireGrantRequest> {
+    private static final SdkField<String> GRANT_TOKEN_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantToken").getter(getter(RetireGrantRequest::grantToken)).setter(setter(Builder::grantToken))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantToken").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(RetireGrantRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> GRANT_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantId").getter(getter(RetireGrantRequest::grantId)).setter(setter(Builder::grantId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantId").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(RetireGrantRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(GRANT_TOKEN_FIELD,
+            KEY_ID_FIELD, GRANT_ID_FIELD, DRY_RUN_FIELD));
+
+    private final String grantToken;
+
+    private final String keyId;
+
+    private final String grantId;
+
+    private final Boolean dryRun;
+
+    private RetireGrantRequest(BuilderImpl builder) {
+        super(builder);
+        this.grantToken = builder.grantToken;
+        this.keyId = builder.keyId;
+        this.grantId = builder.grantId;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has achieved
+     * eventual consistency.
+     * </p>
+     * <p>
+     * Only the <a>CreateGrant</a> operation returns a grant token. For details, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+     * consistency</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has
+     *         achieved eventual consistency.</p>
+     *         <p>
+     *         Only the <a>CreateGrant</a> operation returns a grant token. For details, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">
+     *         Eventual consistency</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final String grantToken() {
+        return grantToken;
+    }
+
+    /**
+     * <p>
+     * The key ARN KMS key associated with the grant. To find the key ARN, use the <a>ListKeys</a> operation.
+     * </p>
+     * <p>
+     * For example: <code>arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * 
+     * @return The key ARN KMS key associated with the grant. To find the key ARN, use the <a>ListKeys</a>
+     *         operation.</p>
+     *         <p>
+     *         For example: <code>arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the grant to retire. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+     * <a>ListRetirableGrants</a>.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
+     * </p>
+     * </li>
+     * </ul>
+     * 
+     * @return Identifies the grant to retire. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+     *         <a>ListRetirableGrants</a>.</p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
+     *         </p>
+     *         </li>
+     */
+    public final String grantId() {
+        return grantId;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(grantToken());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(grantId());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof RetireGrantRequest)) {
+            return false;
+        }
+        RetireGrantRequest other = (RetireGrantRequest) obj;
+        return Objects.equals(grantToken(), other.grantToken()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(grantId(), other.grantId()) && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("RetireGrantRequest").add("GrantToken", grantToken()).add("KeyId", keyId())
+                .add("GrantId", grantId()).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "GrantToken":
+            return Optional.ofNullable(clazz.cast(grantToken()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GrantId":
+            return Optional.ofNullable(clazz.cast(grantId()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<RetireGrantRequest, T> g) {
+        return obj -> g.apply((RetireGrantRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, RetireGrantRequest> {
+        /**
+         * <p>
+         * Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has
+         * achieved eventual consistency.
+         * </p>
+         * <p>
+         * Only the <a>CreateGrant</a> operation returns a grant token. For details, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual
+         * consistency</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantToken
+         *        Identifies the grant to be retired. You can use a grant token to identify a new grant even before it
+         *        has achieved eventual consistency.</p>
+         *        <p>
+         *        Only the <a>CreateGrant</a> operation returns a grant token. For details, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency"
+         *        >Eventual consistency</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantToken(String grantToken);
+
+        /**
+         * <p>
+         * The key ARN KMS key associated with the grant. To find the key ARN, use the <a>ListKeys</a> operation.
+         * </p>
+         * <p>
+         * For example: <code>arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * 
+         * @param keyId
+         *        The key ARN KMS key associated with the grant. To find the key ARN, use the <a>ListKeys</a>
+         *        operation.</p>
+         *        <p>
+         *        For example: <code>arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Identifies the grant to retire. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+         * <a>ListRetirableGrants</a>.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param grantId
+         *        Identifies the grant to retire. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+         *        <a>ListRetirableGrants</a>.</p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
+         *        </p>
+         *        </li>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantId(String grantId);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String grantToken;
+
+        private String keyId;
+
+        private String grantId;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(RetireGrantRequest model) {
+            super(model);
+            grantToken(model.grantToken);
+            keyId(model.keyId);
+            grantId(model.grantId);
+            dryRun(model.dryRun);
+        }
+
+        public final String getGrantToken() {
+            return grantToken;
+        }
+
+        public final void setGrantToken(String grantToken) {
+            this.grantToken = grantToken;
+        }
+
+        @Override
+        public final Builder grantToken(String grantToken) {
+            this.grantToken = grantToken;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getGrantId() {
+            return grantId;
+        }
+
+        public final void setGrantId(String grantId) {
+            this.grantId = grantId;
+        }
+
+        @Override
+        public final Builder grantId(String grantId) {
+            this.grantId = grantId;
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public RetireGrantRequest build() {
+            return new RetireGrantRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RetireGrantResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RetireGrantResponse.java
new file mode 100644
index 0000000..f7835d8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RetireGrantResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class RetireGrantResponse extends KmsResponse implements
+        ToCopyableBuilder<RetireGrantResponse.Builder, RetireGrantResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private RetireGrantResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof RetireGrantResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("RetireGrantResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, RetireGrantResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(RetireGrantResponse model) {
+            super(model);
+        }
+
+        @Override
+        public RetireGrantResponse build() {
+            return new RetireGrantResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RevokeGrantRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RevokeGrantRequest.java
new file mode 100644
index 0000000..a1dd47c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RevokeGrantRequest.java
@@ -0,0 +1,415 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class RevokeGrantRequest extends KmsRequest implements
+        ToCopyableBuilder<RevokeGrantRequest.Builder, RevokeGrantRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(RevokeGrantRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> GRANT_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("GrantId").getter(getter(RevokeGrantRequest::grantId)).setter(setter(Builder::grantId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantId").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(RevokeGrantRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, GRANT_ID_FIELD,
+            DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final String grantId;
+
+    private final Boolean dryRun;
+
+    private RevokeGrantRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.grantId = builder.grantId;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the KMS key associated with the grant. To get the key ID and key ARN for a KMS key, use
+     * <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account,
+     * you must use the key ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return A unique identifier for the KMS key associated with the grant. To get the key ID and key ARN for a KMS
+     *         key, use <a>ListKeys</a> or <a>DescribeKey</a>.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+     *         account, you must use the key ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the grant to revoke. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+     * <a>ListRetirableGrants</a>.
+     * </p>
+     * 
+     * @return Identifies the grant to revoke. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+     *         <a>ListRetirableGrants</a>.
+     */
+    public final String grantId() {
+        return grantId;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(grantId());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof RevokeGrantRequest)) {
+            return false;
+        }
+        RevokeGrantRequest other = (RevokeGrantRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(grantId(), other.grantId())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("RevokeGrantRequest").add("KeyId", keyId()).add("GrantId", grantId()).add("DryRun", dryRun())
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "GrantId":
+            return Optional.ofNullable(clazz.cast(grantId()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<RevokeGrantRequest, T> g) {
+        return obj -> g.apply((RevokeGrantRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, RevokeGrantRequest> {
+        /**
+         * <p>
+         * A unique identifier for the KMS key associated with the grant. To get the key ID and key ARN for a KMS key,
+         * use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         * account, you must use the key ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        A unique identifier for the KMS key associated with the grant. To get the key ID and key ARN for a KMS
+         *        key, use <a>ListKeys</a> or <a>DescribeKey</a>.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services
+         *        account, you must use the key ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Identifies the grant to revoke. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+         * <a>ListRetirableGrants</a>.
+         * </p>
+         * 
+         * @param grantId
+         *        Identifies the grant to revoke. To get the grant ID, use <a>CreateGrant</a>, <a>ListGrants</a>, or
+         *        <a>ListRetirableGrants</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantId(String grantId);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String grantId;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(RevokeGrantRequest model) {
+            super(model);
+            keyId(model.keyId);
+            grantId(model.grantId);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getGrantId() {
+            return grantId;
+        }
+
+        public final void setGrantId(String grantId) {
+            this.grantId = grantId;
+        }
+
+        @Override
+        public final Builder grantId(String grantId) {
+            this.grantId = grantId;
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public RevokeGrantRequest build() {
+            return new RevokeGrantRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RevokeGrantResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RevokeGrantResponse.java
new file mode 100644
index 0000000..806d3ae
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/RevokeGrantResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class RevokeGrantResponse extends KmsResponse implements
+        ToCopyableBuilder<RevokeGrantResponse.Builder, RevokeGrantResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private RevokeGrantResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof RevokeGrantResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("RevokeGrantResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, RevokeGrantResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(RevokeGrantResponse model) {
+            super(model);
+        }
+
+        @Override
+        public RevokeGrantResponse build() {
+            return new RevokeGrantResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ScheduleKeyDeletionRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ScheduleKeyDeletionRequest.java
new file mode 100644
index 0000000..45baa4e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ScheduleKeyDeletionRequest.java
@@ -0,0 +1,381 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ScheduleKeyDeletionRequest extends KmsRequest implements
+        ToCopyableBuilder<ScheduleKeyDeletionRequest.Builder, ScheduleKeyDeletionRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ScheduleKeyDeletionRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Integer> PENDING_WINDOW_IN_DAYS_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER)
+            .memberName("PendingWindowInDays").getter(getter(ScheduleKeyDeletionRequest::pendingWindowInDays))
+            .setter(setter(Builder::pendingWindowInDays))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PendingWindowInDays").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            PENDING_WINDOW_IN_DAYS_FIELD));
+
+    private final String keyId;
+
+    private final Integer pendingWindowInDays;
+
+    private ScheduleKeyDeletionRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.pendingWindowInDays = builder.pendingWindowInDays;
+    }
+
+    /**
+     * <p>
+     * The unique identifier of the KMS key to delete.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return The unique identifier of the KMS key to delete.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS key.
+     * </p>
+     * <p>
+     * If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the last of its
+     * replica keys is deleted. Otherwise, the waiting period begins immediately.
+     * </p>
+     * <p>
+     * This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include a
+     * value, it defaults to 30. You can use the <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-schedule-key-deletion-pending-window-in-days"
+     * > <code>kms:ScheduleKeyDeletionPendingWindowInDays</code> </a> condition key to further constrain the values that
+     * principals can specify in the <code>PendingWindowInDays</code> parameter.
+     * </p>
+     * 
+     * @return The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS
+     *         key.</p>
+     *         <p>
+     *         If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the last
+     *         of its replica keys is deleted. Otherwise, the waiting period begins immediately.
+     *         </p>
+     *         <p>
+     *         This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not
+     *         include a value, it defaults to 30. You can use the <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-schedule-key-deletion-pending-window-in-days"
+     *         > <code>kms:ScheduleKeyDeletionPendingWindowInDays</code> </a> condition key to further constrain the
+     *         values that principals can specify in the <code>PendingWindowInDays</code> parameter.
+     */
+    public final Integer pendingWindowInDays() {
+        return pendingWindowInDays;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(pendingWindowInDays());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ScheduleKeyDeletionRequest)) {
+            return false;
+        }
+        ScheduleKeyDeletionRequest other = (ScheduleKeyDeletionRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(pendingWindowInDays(), other.pendingWindowInDays());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ScheduleKeyDeletionRequest").add("KeyId", keyId())
+                .add("PendingWindowInDays", pendingWindowInDays()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "PendingWindowInDays":
+            return Optional.ofNullable(clazz.cast(pendingWindowInDays()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ScheduleKeyDeletionRequest, T> g) {
+        return obj -> g.apply((ScheduleKeyDeletionRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, ScheduleKeyDeletionRequest> {
+        /**
+         * <p>
+         * The unique identifier of the KMS key to delete.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        The unique identifier of the KMS key to delete.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS key.
+         * </p>
+         * <p>
+         * If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the last of
+         * its replica keys is deleted. Otherwise, the waiting period begins immediately.
+         * </p>
+         * <p>
+         * This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include
+         * a value, it defaults to 30. You can use the <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-schedule-key-deletion-pending-window-in-days"
+         * > <code>kms:ScheduleKeyDeletionPendingWindowInDays</code> </a> condition key to further constrain the values
+         * that principals can specify in the <code>PendingWindowInDays</code> parameter.
+         * </p>
+         * 
+         * @param pendingWindowInDays
+         *        The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS
+         *        key.</p>
+         *        <p>
+         *        If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the
+         *        last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
+         *        </p>
+         *        <p>
+         *        This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not
+         *        include a value, it defaults to 30. You can use the <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-schedule-key-deletion-pending-window-in-days"
+         *        > <code>kms:ScheduleKeyDeletionPendingWindowInDays</code> </a> condition key to further constrain the
+         *        values that principals can specify in the <code>PendingWindowInDays</code> parameter.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder pendingWindowInDays(Integer pendingWindowInDays);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Integer pendingWindowInDays;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ScheduleKeyDeletionRequest model) {
+            super(model);
+            keyId(model.keyId);
+            pendingWindowInDays(model.pendingWindowInDays);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Integer getPendingWindowInDays() {
+            return pendingWindowInDays;
+        }
+
+        public final void setPendingWindowInDays(Integer pendingWindowInDays) {
+            this.pendingWindowInDays = pendingWindowInDays;
+        }
+
+        @Override
+        public final Builder pendingWindowInDays(Integer pendingWindowInDays) {
+            this.pendingWindowInDays = pendingWindowInDays;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public ScheduleKeyDeletionRequest build() {
+            return new ScheduleKeyDeletionRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ScheduleKeyDeletionResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ScheduleKeyDeletionResponse.java
new file mode 100644
index 0000000..46b2ac5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ScheduleKeyDeletionResponse.java
@@ -0,0 +1,454 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.time.Instant;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class ScheduleKeyDeletionResponse extends KmsResponse implements
+        ToCopyableBuilder<ScheduleKeyDeletionResponse.Builder, ScheduleKeyDeletionResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(ScheduleKeyDeletionResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Instant> DELETION_DATE_FIELD = SdkField.<Instant> builder(MarshallingType.INSTANT)
+            .memberName("DeletionDate").getter(getter(ScheduleKeyDeletionResponse::deletionDate))
+            .setter(setter(Builder::deletionDate))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DeletionDate").build()).build();
+
+    private static final SdkField<String> KEY_STATE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyState").getter(getter(ScheduleKeyDeletionResponse::keyStateAsString))
+            .setter(setter(Builder::keyState))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyState").build()).build();
+
+    private static final SdkField<Integer> PENDING_WINDOW_IN_DAYS_FIELD = SdkField.<Integer> builder(MarshallingType.INTEGER)
+            .memberName("PendingWindowInDays").getter(getter(ScheduleKeyDeletionResponse::pendingWindowInDays))
+            .setter(setter(Builder::pendingWindowInDays))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PendingWindowInDays").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            DELETION_DATE_FIELD, KEY_STATE_FIELD, PENDING_WINDOW_IN_DAYS_FIELD));
+
+    private final String keyId;
+
+    private final Instant deletionDate;
+
+    private final String keyState;
+
+    private final Integer pendingWindowInDays;
+
+    private ScheduleKeyDeletionResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.deletionDate = builder.deletionDate;
+        this.keyState = builder.keyState;
+        this.pendingWindowInDays = builder.pendingWindowInDays;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the KMS
+     * key whose deletion is scheduled.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the KMS key whose deletion is scheduled.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The date and time after which KMS deletes the KMS key.
+     * </p>
+     * <p>
+     * If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The deletion date for
+     * the primary key isn't known until its last replica key is deleted.
+     * </p>
+     * 
+     * @return The date and time after which KMS deletes the KMS key.</p>
+     *         <p>
+     *         If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The deletion
+     *         date for the primary key isn't known until its last replica key is deleted.
+     */
+    public final Instant deletionDate() {
+        return deletionDate;
+    }
+
+    /**
+     * <p>
+     * The current status of the KMS key.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyState} will
+     * return {@link KeyState#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyStateAsString}.
+     * </p>
+     * 
+     * @return The current status of the KMS key.</p>
+     *         <p>
+     *         For more information about how key state affects the use of a KMS key, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i>Key Management Service Developer Guide</i>.
+     * @see KeyState
+     */
+    public final KeyState keyState() {
+        return KeyState.fromValue(keyState);
+    }
+
+    /**
+     * <p>
+     * The current status of the KMS key.
+     * </p>
+     * <p>
+     * For more information about how key state affects the use of a KMS key, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+     * <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #keyState} will
+     * return {@link KeyState#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #keyStateAsString}.
+     * </p>
+     * 
+     * @return The current status of the KMS key.</p>
+     *         <p>
+     *         For more information about how key state affects the use of a KMS key, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in
+     *         the <i>Key Management Service Developer Guide</i>.
+     * @see KeyState
+     */
+    public final String keyStateAsString() {
+        return keyState;
+    }
+
+    /**
+     * <p>
+     * The waiting period before the KMS key is deleted.
+     * </p>
+     * <p>
+     * If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its
+     * replica keys is deleted. Otherwise, the waiting period begins immediately.
+     * </p>
+     * 
+     * @return The waiting period before the KMS key is deleted. </p>
+     *         <p>
+     *         If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of
+     *         its replica keys is deleted. Otherwise, the waiting period begins immediately.
+     */
+    public final Integer pendingWindowInDays() {
+        return pendingWindowInDays;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(deletionDate());
+        hashCode = 31 * hashCode + Objects.hashCode(keyStateAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(pendingWindowInDays());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof ScheduleKeyDeletionResponse)) {
+            return false;
+        }
+        ScheduleKeyDeletionResponse other = (ScheduleKeyDeletionResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(deletionDate(), other.deletionDate())
+                && Objects.equals(keyStateAsString(), other.keyStateAsString())
+                && Objects.equals(pendingWindowInDays(), other.pendingWindowInDays());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("ScheduleKeyDeletionResponse").add("KeyId", keyId()).add("DeletionDate", deletionDate())
+                .add("KeyState", keyStateAsString()).add("PendingWindowInDays", pendingWindowInDays()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "DeletionDate":
+            return Optional.ofNullable(clazz.cast(deletionDate()));
+        case "KeyState":
+            return Optional.ofNullable(clazz.cast(keyStateAsString()));
+        case "PendingWindowInDays":
+            return Optional.ofNullable(clazz.cast(pendingWindowInDays()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<ScheduleKeyDeletionResponse, T> g) {
+        return obj -> g.apply((ScheduleKeyDeletionResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, ScheduleKeyDeletionResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * KMS key whose deletion is scheduled.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the KMS key whose deletion is scheduled.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The date and time after which KMS deletes the KMS key.
+         * </p>
+         * <p>
+         * If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The deletion date
+         * for the primary key isn't known until its last replica key is deleted.
+         * </p>
+         * 
+         * @param deletionDate
+         *        The date and time after which KMS deletes the KMS key.</p>
+         *        <p>
+         *        If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The
+         *        deletion date for the primary key isn't known until its last replica key is deleted.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder deletionDate(Instant deletionDate);
+
+        /**
+         * <p>
+         * The current status of the KMS key.
+         * </p>
+         * <p>
+         * For more information about how key state affects the use of a KMS key, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+         * <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param keyState
+         *        The current status of the KMS key.</p>
+         *        <p>
+         *        For more information about how key state affects the use of a KMS key, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>
+         *        in the <i>Key Management Service Developer Guide</i>.
+         * @see KeyState
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyState
+         */
+        Builder keyState(String keyState);
+
+        /**
+         * <p>
+         * The current status of the KMS key.
+         * </p>
+         * <p>
+         * For more information about how key state affects the use of a KMS key, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the
+         * <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param keyState
+         *        The current status of the KMS key.</p>
+         *        <p>
+         *        For more information about how key state affects the use of a KMS key, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a>
+         *        in the <i>Key Management Service Developer Guide</i>.
+         * @see KeyState
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see KeyState
+         */
+        Builder keyState(KeyState keyState);
+
+        /**
+         * <p>
+         * The waiting period before the KMS key is deleted.
+         * </p>
+         * <p>
+         * If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its
+         * replica keys is deleted. Otherwise, the waiting period begins immediately.
+         * </p>
+         * 
+         * @param pendingWindowInDays
+         *        The waiting period before the KMS key is deleted. </p>
+         *        <p>
+         *        If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of
+         *        its replica keys is deleted. Otherwise, the waiting period begins immediately.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder pendingWindowInDays(Integer pendingWindowInDays);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Instant deletionDate;
+
+        private String keyState;
+
+        private Integer pendingWindowInDays;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(ScheduleKeyDeletionResponse model) {
+            super(model);
+            keyId(model.keyId);
+            deletionDate(model.deletionDate);
+            keyState(model.keyState);
+            pendingWindowInDays(model.pendingWindowInDays);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Instant getDeletionDate() {
+            return deletionDate;
+        }
+
+        public final void setDeletionDate(Instant deletionDate) {
+            this.deletionDate = deletionDate;
+        }
+
+        @Override
+        public final Builder deletionDate(Instant deletionDate) {
+            this.deletionDate = deletionDate;
+            return this;
+        }
+
+        public final String getKeyState() {
+            return keyState;
+        }
+
+        public final void setKeyState(String keyState) {
+            this.keyState = keyState;
+        }
+
+        @Override
+        public final Builder keyState(String keyState) {
+            this.keyState = keyState;
+            return this;
+        }
+
+        @Override
+        public final Builder keyState(KeyState keyState) {
+            this.keyState(keyState == null ? null : keyState.toString());
+            return this;
+        }
+
+        public final Integer getPendingWindowInDays() {
+            return pendingWindowInDays;
+        }
+
+        public final void setPendingWindowInDays(Integer pendingWindowInDays) {
+            this.pendingWindowInDays = pendingWindowInDays;
+        }
+
+        @Override
+        public final Builder pendingWindowInDays(Integer pendingWindowInDays) {
+            this.pendingWindowInDays = pendingWindowInDays;
+            return this;
+        }
+
+        @Override
+        public ScheduleKeyDeletionResponse build() {
+            return new ScheduleKeyDeletionResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SignRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SignRequest.java
new file mode 100644
index 0000000..b1216c0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SignRequest.java
@@ -0,0 +1,1254 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class SignRequest extends KmsRequest implements ToCopyableBuilder<SignRequest.Builder, SignRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(SignRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> MESSAGE_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Message").getter(getter(SignRequest::message)).setter(setter(Builder::message))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Message").build()).build();
+
+    private static final SdkField<String> MESSAGE_TYPE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MessageType").getter(getter(SignRequest::messageTypeAsString)).setter(setter(Builder::messageType))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MessageType").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(SignRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<String> SIGNING_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SigningAlgorithm").getter(getter(SignRequest::signingAlgorithmAsString))
+            .setter(setter(Builder::signingAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningAlgorithm").build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(SignRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, MESSAGE_FIELD,
+            MESSAGE_TYPE_FIELD, GRANT_TOKENS_FIELD, SIGNING_ALGORITHM_FIELD, DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes message;
+
+    private final String messageType;
+
+    private final List<String> grantTokens;
+
+    private final String signingAlgorithm;
+
+    private final Boolean dryRun;
+
+    private SignRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.message = builder.message;
+        this.messageType = builder.messageType;
+        this.grantTokens = builder.grantTokens;
+        this.signingAlgorithm = builder.signingAlgorithm;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Identifies an asymmetric KMS key. KMS uses the private key in the asymmetric KMS key to sign the message. The
+     * <code>KeyUsage</code> type of the KMS key must be <code>SIGN_VERIFY</code>. To find the <code>KeyUsage</code> of
+     * a KMS key, use the <a>DescribeKey</a> operation.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Identifies an asymmetric KMS key. KMS uses the private key in the asymmetric KMS key to sign the message.
+     *         The <code>KeyUsage</code> type of the KMS key must be <code>SIGN_VERIFY</code>. To find the
+     *         <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger message, provide
+     * a message digest.
+     * </p>
+     * <p>
+     * If you provide a message digest, use the <code>DIGEST</code> value of <code>MessageType</code> to prevent the
+     * digest from being hashed again while signing.
+     * </p>
+     * 
+     * @return Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger message,
+     *         provide a message digest.</p>
+     *         <p>
+     *         If you provide a message digest, use the <code>DIGEST</code> value of <code>MessageType</code> to prevent
+     *         the digest from being hashed again while signing.
+     */
+    public final SdkBytes message() {
+        return message;
+    }
+
+    /**
+     * <p>
+     * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+     * already hashed.
+     * </p>
+     * <p>
+     * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm, which
+     * begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the signing
+     * algorithm.
+     * </p>
+     * <important>
+     * <p>
+     * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message digest.
+     * If you use the <code>DIGEST</code> value with an unhashed message, the security of the signing operation can be
+     * compromised.
+     * </p>
+     * </important>
+     * <p>
+     * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code> value
+     * must match the length of hashed messages for the specified signing algorithm.
+     * </p>
+     * <p>
+     * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the digest
+     * is hashed again while signing. However, this can cause verification failures when verifying with a system that
+     * assumes a single hash.
+     * </p>
+     * <p>
+     * The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code> value.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #messageType} will
+     * return {@link MessageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #messageTypeAsString}.
+     * </p>
+     * 
+     * @return Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     *         algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which
+     *         are already hashed.</p>
+     *         <p>
+     *         When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+     *         which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in
+     *         the signing algorithm.
+     *         </p>
+     *         <important>
+     *         <p>
+     *         Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+     *         digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the signing
+     *         operation can be compromised.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+     *         value must match the length of hashed messages for the specified signing algorithm.
+     *         </p>
+     *         <p>
+     *         You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+     *         digest is hashed again while signing. However, this can cause verification failures when verifying with a
+     *         system that assumes a single hash.
+     *         </p>
+     *         <p>
+     *         The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code> value.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     *         >Offline verification with SM2 key pairs</a>.
+     *         </p>
+     *         </li>
+     * @see MessageType
+     */
+    public final MessageType messageType() {
+        return MessageType.fromValue(messageType);
+    }
+
+    /**
+     * <p>
+     * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+     * already hashed.
+     * </p>
+     * <p>
+     * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm, which
+     * begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the signing
+     * algorithm.
+     * </p>
+     * <important>
+     * <p>
+     * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message digest.
+     * If you use the <code>DIGEST</code> value with an unhashed message, the security of the signing operation can be
+     * compromised.
+     * </p>
+     * </important>
+     * <p>
+     * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code> value
+     * must match the length of hashed messages for the specified signing algorithm.
+     * </p>
+     * <p>
+     * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the digest
+     * is hashed again while signing. However, this can cause verification failures when verifying with a system that
+     * assumes a single hash.
+     * </p>
+     * <p>
+     * The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code> value.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #messageType} will
+     * return {@link MessageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #messageTypeAsString}.
+     * </p>
+     * 
+     * @return Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     *         algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which
+     *         are already hashed.</p>
+     *         <p>
+     *         When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+     *         which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in
+     *         the signing algorithm.
+     *         </p>
+     *         <important>
+     *         <p>
+     *         Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+     *         digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the signing
+     *         operation can be compromised.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+     *         value must match the length of hashed messages for the specified signing algorithm.
+     *         </p>
+     *         <p>
+     *         You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+     *         digest is hashed again while signing. However, this can cause verification failures when verifying with a
+     *         system that assumes a single hash.
+     *         </p>
+     *         <p>
+     *         The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code> value.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     *         >Offline verification with SM2 key pairs</a>.
+     *         </p>
+     *         </li>
+     * @see MessageType
+     */
+    public final String messageTypeAsString() {
+        return messageType;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Specifies the signing algorithm to use when signing the message.
+     * </p>
+     * <p>
+     * Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When signing
+     * with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms for
+     * compatibility with existing applications.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the signing algorithm to use when signing the message. </p>
+     *         <p>
+     *         Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When
+     *         signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms
+     *         for compatibility with existing applications.
+     * @see SigningAlgorithmSpec
+     */
+    public final SigningAlgorithmSpec signingAlgorithm() {
+        return SigningAlgorithmSpec.fromValue(signingAlgorithm);
+    }
+
+    /**
+     * <p>
+     * Specifies the signing algorithm to use when signing the message.
+     * </p>
+     * <p>
+     * Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When signing
+     * with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms for
+     * compatibility with existing applications.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return Specifies the signing algorithm to use when signing the message. </p>
+     *         <p>
+     *         Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When
+     *         signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms
+     *         for compatibility with existing applications.
+     * @see SigningAlgorithmSpec
+     */
+    public final String signingAlgorithmAsString() {
+        return signingAlgorithm;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(message());
+        hashCode = 31 * hashCode + Objects.hashCode(messageTypeAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof SignRequest)) {
+            return false;
+        }
+        SignRequest other = (SignRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(message(), other.message())
+                && Objects.equals(messageTypeAsString(), other.messageTypeAsString())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(signingAlgorithmAsString(), other.signingAlgorithmAsString())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("SignRequest").add("KeyId", keyId())
+                .add("Message", message() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("MessageType", messageTypeAsString()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("SigningAlgorithm", signingAlgorithmAsString()).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Message":
+            return Optional.ofNullable(clazz.cast(message()));
+        case "MessageType":
+            return Optional.ofNullable(clazz.cast(messageTypeAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "SigningAlgorithm":
+            return Optional.ofNullable(clazz.cast(signingAlgorithmAsString()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<SignRequest, T> g) {
+        return obj -> g.apply((SignRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, SignRequest> {
+        /**
+         * <p>
+         * Identifies an asymmetric KMS key. KMS uses the private key in the asymmetric KMS key to sign the message. The
+         * <code>KeyUsage</code> type of the KMS key must be <code>SIGN_VERIFY</code>. To find the <code>KeyUsage</code>
+         * of a KMS key, use the <a>DescribeKey</a> operation.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies an asymmetric KMS key. KMS uses the private key in the asymmetric KMS key to sign the
+         *        message. The <code>KeyUsage</code> type of the KMS key must be <code>SIGN_VERIFY</code>. To find the
+         *        <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger message,
+         * provide a message digest.
+         * </p>
+         * <p>
+         * If you provide a message digest, use the <code>DIGEST</code> value of <code>MessageType</code> to prevent the
+         * digest from being hashed again while signing.
+         * </p>
+         * 
+         * @param message
+         *        Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger
+         *        message, provide a message digest.</p>
+         *        <p>
+         *        If you provide a message digest, use the <code>DIGEST</code> value of <code>MessageType</code> to
+         *        prevent the digest from being hashed again while signing.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder message(SdkBytes message);
+
+        /**
+         * <p>
+         * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+         * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+         * already hashed.
+         * </p>
+         * <p>
+         * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+         * which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the
+         * signing algorithm.
+         * </p>
+         * <important>
+         * <p>
+         * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+         * digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the signing
+         * operation can be compromised.
+         * </p>
+         * </important>
+         * <p>
+         * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+         * value must match the length of hashed messages for the specified signing algorithm.
+         * </p>
+         * <p>
+         * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+         * digest is hashed again while signing. However, this can cause verification failures when verifying with a
+         * system that assumes a single hash.
+         * </p>
+         * <p>
+         * The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code> value.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         * >Offline verification with SM2 key pairs</a>.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param messageType
+         *        Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the
+         *        signing algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message
+         *        digests, which are already hashed.</p>
+         *        <p>
+         *        When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing
+         *        algorithm, which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the
+         *        hashing step in the signing algorithm.
+         *        </p>
+         *        <important>
+         *        <p>
+         *        Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a
+         *        message digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the
+         *        signing operation can be compromised.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the
+         *        <code>Message</code> value must match the length of hashed messages for the specified signing
+         *        algorithm.
+         *        </p>
+         *        <p>
+         *        You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so
+         *        the digest is hashed again while signing. However, this can cause verification failures when verifying
+         *        with a system that assumes a single hash.
+         *        </p>
+         *        <p>
+         *        The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code>
+         *        value.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         *        >Offline verification with SM2 key pairs</a>.
+         *        </p>
+         *        </li>
+         * @see MessageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MessageType
+         */
+        Builder messageType(String messageType);
+
+        /**
+         * <p>
+         * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+         * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+         * already hashed.
+         * </p>
+         * <p>
+         * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+         * which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the
+         * signing algorithm.
+         * </p>
+         * <important>
+         * <p>
+         * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+         * digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the signing
+         * operation can be compromised.
+         * </p>
+         * </important>
+         * <p>
+         * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+         * value must match the length of hashed messages for the specified signing algorithm.
+         * </p>
+         * <p>
+         * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+         * digest is hashed again while signing. However, this can cause verification failures when verifying with a
+         * system that assumes a single hash.
+         * </p>
+         * <p>
+         * The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code> value.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         * >Offline verification with SM2 key pairs</a>.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param messageType
+         *        Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the
+         *        signing algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message
+         *        digests, which are already hashed.</p>
+         *        <p>
+         *        When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing
+         *        algorithm, which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the
+         *        hashing step in the signing algorithm.
+         *        </p>
+         *        <important>
+         *        <p>
+         *        Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a
+         *        message digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the
+         *        signing operation can be compromised.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the
+         *        <code>Message</code> value must match the length of hashed messages for the specified signing
+         *        algorithm.
+         *        </p>
+         *        <p>
+         *        You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so
+         *        the digest is hashed again while signing. However, this can cause verification failures when verifying
+         *        with a system that assumes a single hash.
+         *        </p>
+         *        <p>
+         *        The hashing algorithm in that <code>Sign</code> uses is based on the <code>SigningAlgorithm</code>
+         *        value.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         *        >Offline verification with SM2 key pairs</a>.
+         *        </p>
+         *        </li>
+         * @see MessageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MessageType
+         */
+        Builder messageType(MessageType messageType);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Specifies the signing algorithm to use when signing the message.
+         * </p>
+         * <p>
+         * Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When
+         * signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms for
+         * compatibility with existing applications.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        Specifies the signing algorithm to use when signing the message. </p>
+         *        <p>
+         *        Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key.
+         *        When signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5
+         *        algorithms for compatibility with existing applications.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(String signingAlgorithm);
+
+        /**
+         * <p>
+         * Specifies the signing algorithm to use when signing the message.
+         * </p>
+         * <p>
+         * Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When
+         * signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms for
+         * compatibility with existing applications.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        Specifies the signing algorithm to use when signing the message. </p>
+         *        <p>
+         *        Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key.
+         *        When signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5
+         *        algorithms for compatibility with existing applications.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes message;
+
+        private String messageType;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private String signingAlgorithm;
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(SignRequest model) {
+            super(model);
+            keyId(model.keyId);
+            message(model.message);
+            messageType(model.messageType);
+            grantTokens(model.grantTokens);
+            signingAlgorithm(model.signingAlgorithm);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getMessage() {
+            return message == null ? null : message.asByteBuffer();
+        }
+
+        public final void setMessage(ByteBuffer message) {
+            message(message == null ? null : SdkBytes.fromByteBuffer(message));
+        }
+
+        @Override
+        public final Builder message(SdkBytes message) {
+            this.message = message;
+            return this;
+        }
+
+        public final String getMessageType() {
+            return messageType;
+        }
+
+        public final void setMessageType(String messageType) {
+            this.messageType = messageType;
+        }
+
+        @Override
+        public final Builder messageType(String messageType) {
+            this.messageType = messageType;
+            return this;
+        }
+
+        @Override
+        public final Builder messageType(MessageType messageType) {
+            this.messageType(messageType == null ? null : messageType.toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final String getSigningAlgorithm() {
+            return signingAlgorithm;
+        }
+
+        public final void setSigningAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm) {
+            this.signingAlgorithm(signingAlgorithm == null ? null : signingAlgorithm.toString());
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public SignRequest build() {
+            return new SignRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SignResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SignResponse.java
new file mode 100644
index 0000000..75756a6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SignResponse.java
@@ -0,0 +1,415 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class SignResponse extends KmsResponse implements ToCopyableBuilder<SignResponse.Builder, SignResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(SignResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> SIGNATURE_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Signature").getter(getter(SignResponse::signature)).setter(setter(Builder::signature))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Signature").build()).build();
+
+    private static final SdkField<String> SIGNING_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SigningAlgorithm").getter(getter(SignResponse::signingAlgorithmAsString))
+            .setter(setter(Builder::signingAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningAlgorithm").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, SIGNATURE_FIELD,
+            SIGNING_ALGORITHM_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes signature;
+
+    private final String signingAlgorithm;
+
+    private SignResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.signature = builder.signature;
+        this.signingAlgorithm = builder.signingAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+     * asymmetric KMS key that was used to sign the message.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the asymmetric KMS key that was used to sign the message.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The cryptographic signature that was generated for the message.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * When used with the supported RSA signing algorithms, the encoding of this value is defined by <a
+     * href="https://tools.ietf.org/html/rfc8017">PKCS #1 in RFC 8017</a>.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * When used with the <code>ECDSA_SHA_256</code>, <code>ECDSA_SHA_384</code>, or <code>ECDSA_SHA_512</code> signing
+     * algorithms, this value is a DER-encoded object as defined by ANSI X9.62–2005 and <a
+     * href="https://tools.ietf.org/html/rfc3279#section-2.2.3">RFC 3279 Section 2.2.3</a>. This is the most commonly
+     * used signature format and is appropriate for most uses.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not
+     * Base64-encoded.
+     * </p>
+     * 
+     * @return The cryptographic signature that was generated for the message. </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         When used with the supported RSA signing algorithms, the encoding of this value is defined by <a
+     *         href="https://tools.ietf.org/html/rfc8017">PKCS #1 in RFC 8017</a>.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         When used with the <code>ECDSA_SHA_256</code>, <code>ECDSA_SHA_384</code>, or <code>ECDSA_SHA_512</code>
+     *         signing algorithms, this value is a DER-encoded object as defined by ANSI X9.62–2005 and <a
+     *         href="https://tools.ietf.org/html/rfc3279#section-2.2.3">RFC 3279 Section 2.2.3</a>. This is the most
+     *         commonly used signature format and is appropriate for most uses.
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is
+     *         not Base64-encoded.
+     */
+    public final SdkBytes signature() {
+        return signature;
+    }
+
+    /**
+     * <p>
+     * The signing algorithm that was used to sign the message.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The signing algorithm that was used to sign the message.
+     * @see SigningAlgorithmSpec
+     */
+    public final SigningAlgorithmSpec signingAlgorithm() {
+        return SigningAlgorithmSpec.fromValue(signingAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The signing algorithm that was used to sign the message.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The signing algorithm that was used to sign the message.
+     * @see SigningAlgorithmSpec
+     */
+    public final String signingAlgorithmAsString() {
+        return signingAlgorithm;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(signature());
+        hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithmAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof SignResponse)) {
+            return false;
+        }
+        SignResponse other = (SignResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(signature(), other.signature())
+                && Objects.equals(signingAlgorithmAsString(), other.signingAlgorithmAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("SignResponse").add("KeyId", keyId()).add("Signature", signature())
+                .add("SigningAlgorithm", signingAlgorithmAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Signature":
+            return Optional.ofNullable(clazz.cast(signature()));
+        case "SigningAlgorithm":
+            return Optional.ofNullable(clazz.cast(signingAlgorithmAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<SignResponse, T> g) {
+        return obj -> g.apply((SignResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, SignResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * asymmetric KMS key that was used to sign the message.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the asymmetric KMS key that was used to sign the message.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The cryptographic signature that was generated for the message.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * When used with the supported RSA signing algorithms, the encoding of this value is defined by <a
+         * href="https://tools.ietf.org/html/rfc8017">PKCS #1 in RFC 8017</a>.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * When used with the <code>ECDSA_SHA_256</code>, <code>ECDSA_SHA_384</code>, or <code>ECDSA_SHA_512</code>
+         * signing algorithms, this value is a DER-encoded object as defined by ANSI X9.62–2005 and <a
+         * href="https://tools.ietf.org/html/rfc3279#section-2.2.3">RFC 3279 Section 2.2.3</a>. This is the most
+         * commonly used signature format and is appropriate for most uses.
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not
+         * Base64-encoded.
+         * </p>
+         * 
+         * @param signature
+         *        The cryptographic signature that was generated for the message. </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        When used with the supported RSA signing algorithms, the encoding of this value is defined by <a
+         *        href="https://tools.ietf.org/html/rfc8017">PKCS #1 in RFC 8017</a>.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        When used with the <code>ECDSA_SHA_256</code>, <code>ECDSA_SHA_384</code>, or
+         *        <code>ECDSA_SHA_512</code> signing algorithms, this value is a DER-encoded object as defined by ANSI
+         *        X9.62–2005 and <a href="https://tools.ietf.org/html/rfc3279#section-2.2.3">RFC 3279 Section 2.2.3</a>.
+         *        This is the most commonly used signature format and is appropriate for most uses.
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it
+         *        is not Base64-encoded.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signature(SdkBytes signature);
+
+        /**
+         * <p>
+         * The signing algorithm that was used to sign the message.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        The signing algorithm that was used to sign the message.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(String signingAlgorithm);
+
+        /**
+         * <p>
+         * The signing algorithm that was used to sign the message.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        The signing algorithm that was used to sign the message.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes signature;
+
+        private String signingAlgorithm;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(SignResponse model) {
+            super(model);
+            keyId(model.keyId);
+            signature(model.signature);
+            signingAlgorithm(model.signingAlgorithm);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getSignature() {
+            return signature == null ? null : signature.asByteBuffer();
+        }
+
+        public final void setSignature(ByteBuffer signature) {
+            signature(signature == null ? null : SdkBytes.fromByteBuffer(signature));
+        }
+
+        @Override
+        public final Builder signature(SdkBytes signature) {
+            this.signature = signature;
+            return this;
+        }
+
+        public final String getSigningAlgorithm() {
+            return signingAlgorithm;
+        }
+
+        public final void setSigningAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm) {
+            this.signingAlgorithm(signingAlgorithm == null ? null : signingAlgorithm.toString());
+            return this;
+        }
+
+        @Override
+        public SignResponse build() {
+            return new SignResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SigningAlgorithmSpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SigningAlgorithmSpec.java
new file mode 100644
index 0000000..414d307
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SigningAlgorithmSpec.java
@@ -0,0 +1,85 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum SigningAlgorithmSpec {
+    RSASSA_PSS_SHA_256("RSASSA_PSS_SHA_256"),
+
+    RSASSA_PSS_SHA_384("RSASSA_PSS_SHA_384"),
+
+    RSASSA_PSS_SHA_512("RSASSA_PSS_SHA_512"),
+
+    RSASSA_PKCS1_V1_5_SHA_256("RSASSA_PKCS1_V1_5_SHA_256"),
+
+    RSASSA_PKCS1_V1_5_SHA_384("RSASSA_PKCS1_V1_5_SHA_384"),
+
+    RSASSA_PKCS1_V1_5_SHA_512("RSASSA_PKCS1_V1_5_SHA_512"),
+
+    ECDSA_SHA_256("ECDSA_SHA_256"),
+
+    ECDSA_SHA_384("ECDSA_SHA_384"),
+
+    ECDSA_SHA_512("ECDSA_SHA_512"),
+
+    SM2_DSA("SM2DSA"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, SigningAlgorithmSpec> VALUE_MAP = EnumUtils.uniqueIndex(SigningAlgorithmSpec.class,
+            SigningAlgorithmSpec::toString);
+
+    private final String value;
+
+    private SigningAlgorithmSpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return SigningAlgorithmSpec corresponding to the value
+     */
+    public static SigningAlgorithmSpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link SigningAlgorithmSpec}s
+     */
+    public static Set<SigningAlgorithmSpec> knownValues() {
+        Set<SigningAlgorithmSpec> knownValues = EnumSet.allOf(SigningAlgorithmSpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SigningAlgorithmSpecListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SigningAlgorithmSpecListCopier.java
new file mode 100644
index 0000000..21577fc
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/SigningAlgorithmSpecListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class SigningAlgorithmSpecListCopier {
+    static List<String> copy(Collection<String> signingAlgorithmSpecListParam) {
+        List<String> list;
+        if (signingAlgorithmSpecListParam == null || signingAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            signingAlgorithmSpecListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<String> copyEnumToString(Collection<SigningAlgorithmSpec> signingAlgorithmSpecListParam) {
+        List<String> list;
+        if (signingAlgorithmSpecListParam == null || signingAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            signingAlgorithmSpecListParam.forEach(entry -> {
+                String result = entry.toString();
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<SigningAlgorithmSpec> copyStringToEnum(Collection<String> signingAlgorithmSpecListParam) {
+        List<SigningAlgorithmSpec> list;
+        if (signingAlgorithmSpecListParam == null || signingAlgorithmSpecListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<SigningAlgorithmSpec> modifiableList = new ArrayList<>();
+            signingAlgorithmSpecListParam.forEach(entry -> {
+                SigningAlgorithmSpec result = SigningAlgorithmSpec.fromValue(entry);
+                modifiableList.add(result);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/Tag.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/Tag.java
new file mode 100644
index 0000000..6406326
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/Tag.java
@@ -0,0 +1,246 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag
+ * values can be empty (null) strings.
+ * </p>
+ * <important>
+ * <p>
+ * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+ * CloudTrail logs and other output.
+ * </p>
+ * </important>
+ * <p>
+ * For information about the rules that apply to tag keys and tag values, see <a
+ * href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html">User-Defined Tag
+ * Restrictions</a> in the <i>Amazon Web Services Billing and Cost Management User Guide</i>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class Tag implements SdkPojo, Serializable, ToCopyableBuilder<Tag.Builder, Tag> {
+    private static final SdkField<String> TAG_KEY_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("TagKey")
+            .getter(getter(Tag::tagKey)).setter(setter(Builder::tagKey))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TagKey").build()).build();
+
+    private static final SdkField<String> TAG_VALUE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("TagValue").getter(getter(Tag::tagValue)).setter(setter(Builder::tagValue))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TagValue").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays
+            .asList(TAG_KEY_FIELD, TAG_VALUE_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String tagKey;
+
+    private final String tagValue;
+
+    private Tag(BuilderImpl builder) {
+        this.tagKey = builder.tagKey;
+        this.tagValue = builder.tagValue;
+    }
+
+    /**
+     * <p>
+     * The key of the tag.
+     * </p>
+     * 
+     * @return The key of the tag.
+     */
+    public final String tagKey() {
+        return tagKey;
+    }
+
+    /**
+     * <p>
+     * The value of the tag.
+     * </p>
+     * 
+     * @return The value of the tag.
+     */
+    public final String tagValue() {
+        return tagValue;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(tagKey());
+        hashCode = 31 * hashCode + Objects.hashCode(tagValue());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof Tag)) {
+            return false;
+        }
+        Tag other = (Tag) obj;
+        return Objects.equals(tagKey(), other.tagKey()) && Objects.equals(tagValue(), other.tagValue());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("Tag").add("TagKey", tagKey()).add("TagValue", tagValue()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "TagKey":
+            return Optional.ofNullable(clazz.cast(tagKey()));
+        case "TagValue":
+            return Optional.ofNullable(clazz.cast(tagValue()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<Tag, T> g) {
+        return obj -> g.apply((Tag) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, Tag> {
+        /**
+         * <p>
+         * The key of the tag.
+         * </p>
+         * 
+         * @param tagKey
+         *        The key of the tag.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tagKey(String tagKey);
+
+        /**
+         * <p>
+         * The value of the tag.
+         * </p>
+         * 
+         * @param tagValue
+         *        The value of the tag.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tagValue(String tagValue);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String tagKey;
+
+        private String tagValue;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(Tag model) {
+            tagKey(model.tagKey);
+            tagValue(model.tagValue);
+        }
+
+        public final String getTagKey() {
+            return tagKey;
+        }
+
+        public final void setTagKey(String tagKey) {
+            this.tagKey = tagKey;
+        }
+
+        @Override
+        public final Builder tagKey(String tagKey) {
+            this.tagKey = tagKey;
+            return this;
+        }
+
+        public final String getTagValue() {
+            return tagValue;
+        }
+
+        public final void setTagValue(String tagValue) {
+            this.tagValue = tagValue;
+        }
+
+        @Override
+        public final Builder tagValue(String tagValue) {
+            this.tagValue = tagValue;
+            return this;
+        }
+
+        @Override
+        public Tag build() {
+            return new Tag(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagException.java
new file mode 100644
index 0000000..71aa9a2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagException.java
@@ -0,0 +1,133 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because one or more tags are not valid.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class TagException extends KmsException implements ToCopyableBuilder<TagException.Builder, TagException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private TagException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, TagException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(TagException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public TagException build() {
+            return new TagException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagKeyListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagKeyListCopier.java
new file mode 100644
index 0000000..1fb4c29
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagKeyListCopier.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class TagKeyListCopier {
+    static List<String> copy(Collection<String> tagKeyListParam) {
+        List<String> list;
+        if (tagKeyListParam == null || tagKeyListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<String> modifiableList = new ArrayList<>();
+            tagKeyListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagListCopier.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagListCopier.java
new file mode 100644
index 0000000..d84250f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagListCopier.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+
+@Generated("software.amazon.awssdk:codegen")
+final class TagListCopier {
+    static List<Tag> copy(Collection<? extends Tag> tagListParam) {
+        List<Tag> list;
+        if (tagListParam == null || tagListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<Tag> modifiableList = new ArrayList<>();
+            tagListParam.forEach(entry -> {
+                modifiableList.add(entry);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<Tag> copyFromBuilder(Collection<? extends Tag.Builder> tagListParam) {
+        List<Tag> list;
+        if (tagListParam == null || tagListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<Tag> modifiableList = new ArrayList<>();
+            tagListParam.forEach(entry -> {
+                Tag member = entry == null ? null : entry.build();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+
+    static List<Tag.Builder> copyToBuilder(Collection<? extends Tag> tagListParam) {
+        List<Tag.Builder> list;
+        if (tagListParam == null || tagListParam instanceof SdkAutoConstructList) {
+            list = DefaultSdkAutoConstructList.getInstance();
+        } else {
+            List<Tag.Builder> modifiableList = new ArrayList<>();
+            tagListParam.forEach(entry -> {
+                Tag.Builder member = entry == null ? null : entry.toBuilder();
+                modifiableList.add(member);
+            });
+            list = Collections.unmodifiableList(modifiableList);
+        }
+        return list;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagResourceRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagResourceRequest.java
new file mode 100644
index 0000000..21fbc04
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagResourceRequest.java
@@ -0,0 +1,486 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class TagResourceRequest extends KmsRequest implements
+        ToCopyableBuilder<TagResourceRequest.Builder, TagResourceRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(TagResourceRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<List<Tag>> TAGS_FIELD = SdkField
+            .<List<Tag>> builder(MarshallingType.LIST)
+            .memberName("Tags")
+            .getter(getter(TagResourceRequest::tags))
+            .setter(setter(Builder::tags))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<Tag> builder(MarshallingType.SDK_POJO)
+                                            .constructor(Tag::builder)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, TAGS_FIELD));
+
+    private final String keyId;
+
+    private final List<Tag> tags;
+
+    private TagResourceRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.tags = builder.tags;
+    }
+
+    /**
+     * <p>
+     * Identifies a customer managed key in the account and Region.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies a customer managed key in the account and Region.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
+     * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
+     * because the SDK will never return a null collection or map, but you may need to differentiate between the service
+     * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
+     * if a value for the property was specified in the request builder, and false if a value was not specified.
+     */
+    public final boolean hasTags() {
+        return tags != null && !(tags instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a
+     * different tag value, KMS replaces the current tag value with the specified one.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasTags} method.
+     * </p>
+     * 
+     * @return One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null)
+     *         string. </p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key
+     *         with a different tag value, KMS replaces the current tag value with the specified one.
+     */
+    public final List<Tag> tags() {
+        return tags;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof TagResourceRequest)) {
+            return false;
+        }
+        TagResourceRequest other = (TagResourceRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("TagResourceRequest").add("KeyId", keyId()).add("Tags", hasTags() ? tags() : null).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Tags":
+            return Optional.ofNullable(clazz.cast(tags()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<TagResourceRequest, T> g) {
+        return obj -> g.apply((TagResourceRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, TagResourceRequest> {
+        /**
+         * <p>
+         * Identifies a customer managed key in the account and Region.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies a customer managed key in the account and Region.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null)
+         * string.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with
+         * a different tag value, KMS replaces the current tag value with the specified one.
+         * </p>
+         * 
+         * @param tags
+         *        One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null)
+         *        string. </p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag
+         *        key with a different tag value, KMS replaces the current tag value with the specified one.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Collection<Tag> tags);
+
+        /**
+         * <p>
+         * One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null)
+         * string.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with
+         * a different tag value, KMS replaces the current tag value with the specified one.
+         * </p>
+         * 
+         * @param tags
+         *        One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null)
+         *        string. </p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag
+         *        key with a different tag value, KMS replaces the current tag value with the specified one.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tags(Tag... tags);
+
+        /**
+         * <p>
+         * One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null)
+         * string.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with
+         * a different tag value, KMS replaces the current tag value with the specified one.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link software.amazon.awssdk.services.kms.model.Tag.Builder} avoiding the need to create one manually via
+         * {@link software.amazon.awssdk.services.kms.model.Tag#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link software.amazon.awssdk.services.kms.model.Tag.Builder#build()} is
+         * called immediately and its result is passed to {@link #tags(List<Tag>)}.
+         * 
+         * @param tags
+         *        a consumer that will call methods on {@link software.amazon.awssdk.services.kms.model.Tag.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #tags(java.util.Collection<Tag>)
+         */
+        Builder tags(Consumer<Tag.Builder>... tags);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private List<Tag> tags = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(TagResourceRequest model) {
+            super(model);
+            keyId(model.keyId);
+            tags(model.tags);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final List<Tag.Builder> getTags() {
+            List<Tag.Builder> result = TagListCopier.copyToBuilder(this.tags);
+            if (result instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return result;
+        }
+
+        public final void setTags(Collection<Tag.BuilderImpl> tags) {
+            this.tags = TagListCopier.copyFromBuilder(tags);
+        }
+
+        @Override
+        public final Builder tags(Collection<Tag> tags) {
+            this.tags = TagListCopier.copy(tags);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Tag... tags) {
+            tags(Arrays.asList(tags));
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tags(Consumer<Tag.Builder>... tags) {
+            tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public TagResourceRequest build() {
+            return new TagResourceRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagResourceResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagResourceResponse.java
new file mode 100644
index 0000000..0a1c35d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/TagResourceResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class TagResourceResponse extends KmsResponse implements
+        ToCopyableBuilder<TagResourceResponse.Builder, TagResourceResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private TagResourceResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof TagResourceResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("TagResourceResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, TagResourceResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(TagResourceResponse model) {
+            super(model);
+        }
+
+        @Override
+        public TagResourceResponse build() {
+            return new TagResourceResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UnsupportedOperationException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UnsupportedOperationException.java
new file mode 100644
index 0000000..fdc9ee6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UnsupportedOperationException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because a specified parameter is not supported or a specified resource is not valid for this
+ * operation.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UnsupportedOperationException extends KmsException implements
+        ToCopyableBuilder<UnsupportedOperationException.Builder, UnsupportedOperationException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private UnsupportedOperationException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, UnsupportedOperationException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UnsupportedOperationException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public UnsupportedOperationException build() {
+            return new UnsupportedOperationException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UntagResourceRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UntagResourceRequest.java
new file mode 100644
index 0000000..070e2c9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UntagResourceRequest.java
@@ -0,0 +1,389 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UntagResourceRequest extends KmsRequest implements
+        ToCopyableBuilder<UntagResourceRequest.Builder, UntagResourceRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(UntagResourceRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<List<String>> TAG_KEYS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("TagKeys")
+            .getter(getter(UntagResourceRequest::tagKeys))
+            .setter(setter(Builder::tagKeys))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TagKeys").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, TAG_KEYS_FIELD));
+
+    private final String keyId;
+
+    private final List<String> tagKeys;
+
+    private UntagResourceRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.tagKeys = builder.tagKeys;
+    }
+
+    /**
+     * <p>
+     * Identifies the KMS key from which you are removing tags.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the KMS key from which you are removing tags.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the TagKeys property. This DOES NOT check
+     * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
+     * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
+     * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
+     * returns true if a value for the property was specified in the request builder, and false if a value was not
+     * specified.
+     */
+    public final boolean hasTagKeys() {
+        return tagKeys != null && !(tagKeys instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * One or more tag keys. Specify only the tag keys, not the tag values.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasTagKeys} method.
+     * </p>
+     * 
+     * @return One or more tag keys. Specify only the tag keys, not the tag values.
+     */
+    public final List<String> tagKeys() {
+        return tagKeys;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(hasTagKeys() ? tagKeys() : null);
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UntagResourceRequest)) {
+            return false;
+        }
+        UntagResourceRequest other = (UntagResourceRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && hasTagKeys() == other.hasTagKeys()
+                && Objects.equals(tagKeys(), other.tagKeys());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UntagResourceRequest").add("KeyId", keyId()).add("TagKeys", hasTagKeys() ? tagKeys() : null)
+                .build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "TagKeys":
+            return Optional.ofNullable(clazz.cast(tagKeys()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<UntagResourceRequest, T> g) {
+        return obj -> g.apply((UntagResourceRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, UntagResourceRequest> {
+        /**
+         * <p>
+         * Identifies the KMS key from which you are removing tags.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the KMS key from which you are removing tags.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * One or more tag keys. Specify only the tag keys, not the tag values.
+         * </p>
+         * 
+         * @param tagKeys
+         *        One or more tag keys. Specify only the tag keys, not the tag values.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tagKeys(Collection<String> tagKeys);
+
+        /**
+         * <p>
+         * One or more tag keys. Specify only the tag keys, not the tag values.
+         * </p>
+         * 
+         * @param tagKeys
+         *        One or more tag keys. Specify only the tag keys, not the tag values.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder tagKeys(String... tagKeys);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private List<String> tagKeys = DefaultSdkAutoConstructList.getInstance();
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UntagResourceRequest model) {
+            super(model);
+            keyId(model.keyId);
+            tagKeys(model.tagKeys);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Collection<String> getTagKeys() {
+            if (tagKeys instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return tagKeys;
+        }
+
+        public final void setTagKeys(Collection<String> tagKeys) {
+            this.tagKeys = TagKeyListCopier.copy(tagKeys);
+        }
+
+        @Override
+        public final Builder tagKeys(Collection<String> tagKeys) {
+            this.tagKeys = TagKeyListCopier.copy(tagKeys);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder tagKeys(String... tagKeys) {
+            tagKeys(Arrays.asList(tagKeys));
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public UntagResourceRequest build() {
+            return new UntagResourceRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UntagResourceResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UntagResourceResponse.java
new file mode 100644
index 0000000..df08ed7
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UntagResourceResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class UntagResourceResponse extends KmsResponse implements
+        ToCopyableBuilder<UntagResourceResponse.Builder, UntagResourceResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private UntagResourceResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UntagResourceResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UntagResourceResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, UntagResourceResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UntagResourceResponse model) {
+            super(model);
+        }
+
+        @Override
+        public UntagResourceResponse build() {
+            return new UntagResourceResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateAliasRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateAliasRequest.java
new file mode 100644
index 0000000..cc53ac0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateAliasRequest.java
@@ -0,0 +1,410 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdateAliasRequest extends KmsRequest implements
+        ToCopyableBuilder<UpdateAliasRequest.Builder, UpdateAliasRequest> {
+    private static final SdkField<String> ALIAS_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AliasName").getter(getter(UpdateAliasRequest::aliasName)).setter(setter(Builder::aliasName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AliasName").build()).build();
+
+    private static final SdkField<String> TARGET_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("TargetKeyId").getter(getter(UpdateAliasRequest::targetKeyId)).setter(setter(Builder::targetKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TargetKeyId").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ALIAS_NAME_FIELD,
+            TARGET_KEY_ID_FIELD));
+
+    private final String aliasName;
+
+    private final String targetKeyId;
+
+    private UpdateAliasRequest(BuilderImpl builder) {
+        super(builder);
+        this.aliasName = builder.aliasName;
+        this.targetKeyId = builder.targetKeyId;
+    }
+
+    /**
+     * <p>
+     * Identifies the alias that is changing its KMS key. This value must begin with <code>alias/</code> followed by the
+     * alias name, such as <code>alias/ExampleAlias</code>. You cannot use <code>UpdateAlias</code> to change the alias
+     * name.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * 
+     * @return Identifies the alias that is changing its KMS key. This value must begin with <code>alias/</code>
+     *         followed by the alias name, such as <code>alias/ExampleAlias</code>. You cannot use
+     *         <code>UpdateAlias</code> to change the alias name.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     */
+    public final String aliasName() {
+        return aliasName;
+    }
+
+    /**
+     * <p>
+     * Identifies the <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
+     * to associate with the alias. You don't have permission to associate an alias with an <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
+     * managed key</a>.
+     * </p>
+     * <p>
+     * The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new target KMS key
+     * must be the same type as the current target KMS key (both symmetric or both asymmetric or both HMAC) and they
+     * must have the same key usage.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * <p>
+     * To verify that the alias is mapped to the correct KMS key, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Identifies the <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed
+     *         key</a> to associate with the alias. You don't have permission to associate an alias with an <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+     *         Services managed key</a>.</p>
+     *         <p>
+     *         The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new target
+     *         KMS key must be the same type as the current target KMS key (both symmetric or both asymmetric or both
+     *         HMAC) and they must have the same key usage.
+     *         </p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     *         </p>
+     *         <p>
+     *         To verify that the alias is mapped to the correct KMS key, use <a>ListAliases</a>.
+     */
+    public final String targetKeyId() {
+        return targetKeyId;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(aliasName());
+        hashCode = 31 * hashCode + Objects.hashCode(targetKeyId());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdateAliasRequest)) {
+            return false;
+        }
+        UpdateAliasRequest other = (UpdateAliasRequest) obj;
+        return Objects.equals(aliasName(), other.aliasName()) && Objects.equals(targetKeyId(), other.targetKeyId());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdateAliasRequest").add("AliasName", aliasName()).add("TargetKeyId", targetKeyId()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "AliasName":
+            return Optional.ofNullable(clazz.cast(aliasName()));
+        case "TargetKeyId":
+            return Optional.ofNullable(clazz.cast(targetKeyId()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<UpdateAliasRequest, T> g) {
+        return obj -> g.apply((UpdateAliasRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, UpdateAliasRequest> {
+        /**
+         * <p>
+         * Identifies the alias that is changing its KMS key. This value must begin with <code>alias/</code> followed by
+         * the alias name, such as <code>alias/ExampleAlias</code>. You cannot use <code>UpdateAlias</code> to change
+         * the alias name.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * 
+         * @param aliasName
+         *        Identifies the alias that is changing its KMS key. This value must begin with <code>alias/</code>
+         *        followed by the alias name, such as <code>alias/ExampleAlias</code>. You cannot use
+         *        <code>UpdateAlias</code> to change the alias name.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder aliasName(String aliasName);
+
+        /**
+         * <p>
+         * Identifies the <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed
+         * key</a> to associate with the alias. You don't have permission to associate an alias with an <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
+         * Services managed key</a>.
+         * </p>
+         * <p>
+         * The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new target KMS
+         * key must be the same type as the current target KMS key (both symmetric or both asymmetric or both HMAC) and
+         * they must have the same key usage.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * <p>
+         * To verify that the alias is mapped to the correct KMS key, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param targetKeyId
+         *        Identifies the <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer
+         *        managed key</a> to associate with the alias. You don't have permission to associate an alias with an
+         *        <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
+         *        Web Services managed key</a>.</p>
+         *        <p>
+         *        The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new
+         *        target KMS key must be the same type as the current target KMS key (both symmetric or both asymmetric
+         *        or both HMAC) and they must have the same key usage.
+         *        </p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         *        </p>
+         *        <p>
+         *        To verify that the alias is mapped to the correct KMS key, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder targetKeyId(String targetKeyId);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String aliasName;
+
+        private String targetKeyId;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdateAliasRequest model) {
+            super(model);
+            aliasName(model.aliasName);
+            targetKeyId(model.targetKeyId);
+        }
+
+        public final String getAliasName() {
+            return aliasName;
+        }
+
+        public final void setAliasName(String aliasName) {
+            this.aliasName = aliasName;
+        }
+
+        @Override
+        public final Builder aliasName(String aliasName) {
+            this.aliasName = aliasName;
+            return this;
+        }
+
+        public final String getTargetKeyId() {
+            return targetKeyId;
+        }
+
+        public final void setTargetKeyId(String targetKeyId) {
+            this.targetKeyId = targetKeyId;
+        }
+
+        @Override
+        public final Builder targetKeyId(String targetKeyId) {
+            this.targetKeyId = targetKeyId;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public UpdateAliasRequest build() {
+            return new UpdateAliasRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateAliasResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateAliasResponse.java
new file mode 100644
index 0000000..3c15c1a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateAliasResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdateAliasResponse extends KmsResponse implements
+        ToCopyableBuilder<UpdateAliasResponse.Builder, UpdateAliasResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private UpdateAliasResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdateAliasResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdateAliasResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, UpdateAliasResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdateAliasResponse model) {
+            super(model);
+        }
+
+        @Override
+        public UpdateAliasResponse build() {
+            return new UpdateAliasResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateCustomKeyStoreRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateCustomKeyStoreRequest.java
new file mode 100644
index 0000000..7d1ad6e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateCustomKeyStoreRequest.java
@@ -0,0 +1,1163 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdateCustomKeyStoreRequest extends KmsRequest implements
+        ToCopyableBuilder<UpdateCustomKeyStoreRequest.Builder, UpdateCustomKeyStoreRequest> {
+    private static final SdkField<String> CUSTOM_KEY_STORE_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CustomKeyStoreId").getter(getter(UpdateCustomKeyStoreRequest::customKeyStoreId))
+            .setter(setter(Builder::customKeyStoreId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomKeyStoreId").build()).build();
+
+    private static final SdkField<String> NEW_CUSTOM_KEY_STORE_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("NewCustomKeyStoreName").getter(getter(UpdateCustomKeyStoreRequest::newCustomKeyStoreName))
+            .setter(setter(Builder::newCustomKeyStoreName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NewCustomKeyStoreName").build())
+            .build();
+
+    private static final SdkField<String> KEY_STORE_PASSWORD_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("KeyStorePassword").getter(getter(UpdateCustomKeyStoreRequest::keyStorePassword))
+            .setter(setter(Builder::keyStorePassword))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyStorePassword").build()).build();
+
+    private static final SdkField<String> CLOUD_HSM_CLUSTER_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("CloudHsmClusterId").getter(getter(UpdateCustomKeyStoreRequest::cloudHsmClusterId))
+            .setter(setter(Builder::cloudHsmClusterId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CloudHsmClusterId").build()).build();
+
+    private static final SdkField<String> XKS_PROXY_URI_ENDPOINT_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyUriEndpoint").getter(getter(UpdateCustomKeyStoreRequest::xksProxyUriEndpoint))
+            .setter(setter(Builder::xksProxyUriEndpoint))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyUriEndpoint").build())
+            .build();
+
+    private static final SdkField<String> XKS_PROXY_URI_PATH_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyUriPath").getter(getter(UpdateCustomKeyStoreRequest::xksProxyUriPath))
+            .setter(setter(Builder::xksProxyUriPath))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyUriPath").build()).build();
+
+    private static final SdkField<String> XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME_FIELD = SdkField
+            .<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyVpcEndpointServiceName")
+            .getter(getter(UpdateCustomKeyStoreRequest::xksProxyVpcEndpointServiceName))
+            .setter(setter(Builder::xksProxyVpcEndpointServiceName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyVpcEndpointServiceName")
+                    .build()).build();
+
+    private static final SdkField<XksProxyAuthenticationCredentialType> XKS_PROXY_AUTHENTICATION_CREDENTIAL_FIELD = SdkField
+            .<XksProxyAuthenticationCredentialType> builder(MarshallingType.SDK_POJO)
+            .memberName("XksProxyAuthenticationCredential")
+            .getter(getter(UpdateCustomKeyStoreRequest::xksProxyAuthenticationCredential))
+            .setter(setter(Builder::xksProxyAuthenticationCredential))
+            .constructor(XksProxyAuthenticationCredentialType::builder)
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyAuthenticationCredential")
+                    .build()).build();
+
+    private static final SdkField<String> XKS_PROXY_CONNECTIVITY_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("XksProxyConnectivity").getter(getter(UpdateCustomKeyStoreRequest::xksProxyConnectivityAsString))
+            .setter(setter(Builder::xksProxyConnectivity))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("XksProxyConnectivity").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CUSTOM_KEY_STORE_ID_FIELD,
+            NEW_CUSTOM_KEY_STORE_NAME_FIELD, KEY_STORE_PASSWORD_FIELD, CLOUD_HSM_CLUSTER_ID_FIELD, XKS_PROXY_URI_ENDPOINT_FIELD,
+            XKS_PROXY_URI_PATH_FIELD, XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME_FIELD, XKS_PROXY_AUTHENTICATION_CREDENTIAL_FIELD,
+            XKS_PROXY_CONNECTIVITY_FIELD));
+
+    private final String customKeyStoreId;
+
+    private final String newCustomKeyStoreName;
+
+    private final String keyStorePassword;
+
+    private final String cloudHsmClusterId;
+
+    private final String xksProxyUriEndpoint;
+
+    private final String xksProxyUriPath;
+
+    private final String xksProxyVpcEndpointServiceName;
+
+    private final XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential;
+
+    private final String xksProxyConnectivity;
+
+    private UpdateCustomKeyStoreRequest(BuilderImpl builder) {
+        super(builder);
+        this.customKeyStoreId = builder.customKeyStoreId;
+        this.newCustomKeyStoreName = builder.newCustomKeyStoreName;
+        this.keyStorePassword = builder.keyStorePassword;
+        this.cloudHsmClusterId = builder.cloudHsmClusterId;
+        this.xksProxyUriEndpoint = builder.xksProxyUriEndpoint;
+        this.xksProxyUriPath = builder.xksProxyUriPath;
+        this.xksProxyVpcEndpointServiceName = builder.xksProxyVpcEndpointServiceName;
+        this.xksProxyAuthenticationCredential = builder.xksProxyAuthenticationCredential;
+        this.xksProxyConnectivity = builder.xksProxyConnectivity;
+    }
+
+    /**
+     * <p>
+     * Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of
+     * a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+     * </p>
+     * 
+     * @return Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find
+     *         the ID of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+     */
+    public final String customKeyStoreId() {
+        return customKeyStoreId;
+    }
+
+    /**
+     * <p>
+     * Changes the friendly name of the custom key store to the value that you specify. The custom key store name must
+     * be unique in the Amazon Web Services account.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * <p>
+     * To change this value, an CloudHSM key store must be disconnected. An external key store can be connected or
+     * disconnected.
+     * </p>
+     * 
+     * @return Changes the friendly name of the custom key store to the value that you specify. The custom key store
+     *         name must be unique in the Amazon Web Services account.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         To change this value, an CloudHSM key store must be disconnected. An external key store can be connected
+     *         or disconnected.
+     */
+    public final String newCustomKeyStoreName() {
+        return newCustomKeyStoreName;
+    }
+
+    /**
+     * <p>
+     * Enter the current password of the <code>kmsuser</code> crypto user (CU) in the CloudHSM cluster that is
+     * associated with the custom key store. This parameter is valid only for custom key stores with a
+     * <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * This parameter tells KMS the current password of the <code>kmsuser</code> crypto user (CU). It does not set or
+     * change the password of any users in the CloudHSM cluster.
+     * </p>
+     * <p>
+     * To change this value, the CloudHSM key store must be disconnected.
+     * </p>
+     * 
+     * @return Enter the current password of the <code>kmsuser</code> crypto user (CU) in the CloudHSM cluster that is
+     *         associated with the custom key store. This parameter is valid only for custom key stores with a
+     *         <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         This parameter tells KMS the current password of the <code>kmsuser</code> crypto user (CU). It does not
+     *         set or change the password of any users in the CloudHSM cluster.
+     *         </p>
+     *         <p>
+     *         To change this value, the CloudHSM key store must be disconnected.
+     */
+    public final String keyStorePassword() {
+        return keyStorePassword;
+    }
+
+    /**
+     * <p>
+     * Associates the custom key store with a related CloudHSM cluster. This parameter is valid only for custom key
+     * stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+     * </p>
+     * <p>
+     * Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a
+     * backup history and has the same cluster certificate as the original cluster. You cannot use this parameter to
+     * associate a custom key store with an unrelated cluster. In addition, the replacement cluster must <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">fulfill the
+     * requirements</a> for a cluster associated with a custom key store. To view the cluster certificate of a cluster,
+     * use the <a
+     * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a>
+     * operation.
+     * </p>
+     * <p>
+     * To change this value, the CloudHSM key store must be disconnected.
+     * </p>
+     * 
+     * @return Associates the custom key store with a related CloudHSM cluster. This parameter is valid only for custom
+     *         key stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+     *         <p>
+     *         Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares
+     *         a backup history and has the same cluster certificate as the original cluster. You cannot use this
+     *         parameter to associate a custom key store with an unrelated cluster. In addition, the replacement cluster
+     *         must <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">fulfill
+     *         the requirements</a> for a cluster associated with a custom key store. To view the cluster certificate of
+     *         a cluster, use the <a
+     *         href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+     *         >DescribeClusters</a> operation.
+     *         </p>
+     *         <p>
+     *         To change this value, the CloudHSM key store must be disconnected.
+     */
+    public final String cloudHsmClusterId() {
+        return cloudHsmClusterId;
+    }
+
+    /**
+     * <p>
+     * Changes the URI endpoint that KMS uses to connect to your external key store proxy (XKS proxy). This parameter is
+     * valid only for custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * For external key stores with an <code>XksProxyConnectivity</code> value of <code>PUBLIC_ENDPOINT</code>, the
+     * protocol must be HTTPS.
+     * </p>
+     * <p>
+     * For external key stores with an <code>XksProxyConnectivity</code> value of <code>VPC_ENDPOINT_SERVICE</code>,
+     * specify <code>https://</code> followed by the private DNS name associated with the VPC endpoint service. Each
+     * external key store must use a different private DNS name.
+     * </p>
+     * <p>
+     * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+     * Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * To change this value, the external key store must be disconnected.
+     * </p>
+     * 
+     * @return Changes the URI endpoint that KMS uses to connect to your external key store proxy (XKS proxy). This
+     *         parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+     *         <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         For external key stores with an <code>XksProxyConnectivity</code> value of <code>PUBLIC_ENDPOINT</code>,
+     *         the protocol must be HTTPS.
+     *         </p>
+     *         <p>
+     *         For external key stores with an <code>XksProxyConnectivity</code> value of
+     *         <code>VPC_ENDPOINT_SERVICE</code>, specify <code>https://</code> followed by the private DNS name
+     *         associated with the VPC endpoint service. Each external key store must use a different private DNS name.
+     *         </p>
+     *         <p>
+     *         The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in
+     *         the Amazon Web Services account and Region.
+     *         </p>
+     *         <p>
+     *         To change this value, the external key store must be disconnected.
+     */
+    public final String xksProxyUriEndpoint() {
+        return xksProxyUriEndpoint;
+    }
+
+    /**
+     * <p>
+     * Changes the base path to the proxy APIs for this external key store. To find this value, see the documentation
+     * for your external key manager and external key store proxy (XKS proxy). This parameter is valid only for custom
+     * key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code>, where <code>v1</code>
+     * represents the version of the KMS external key store proxy API. You can include an optional prefix between the
+     * required elements such as <code>/<i>example</i>/kms/xks/v1</code>.
+     * </p>
+     * <p>
+     * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+     * Amazon Web Services account and Region.
+     * </p>
+     * <p>
+     * You can change this value when the external key store is connected or disconnected.
+     * </p>
+     * 
+     * @return Changes the base path to the proxy APIs for this external key store. To find this value, see the
+     *         documentation for your external key manager and external key store proxy (XKS proxy). This parameter is
+     *         valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+     *         <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code>, where
+     *         <code>v1</code> represents the version of the KMS external key store proxy API. You can include an
+     *         optional prefix between the required elements such as <code>/<i>example</i>/kms/xks/v1</code>.
+     *         </p>
+     *         <p>
+     *         The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in
+     *         the Amazon Web Services account and Region.
+     *         </p>
+     *         <p>
+     *         You can change this value when the external key store is connected or disconnected.
+     */
+    public final String xksProxyUriPath() {
+        return xksProxyUriPath;
+    }
+
+    /**
+     * <p>
+     * Changes the name that KMS uses to identify the Amazon VPC endpoint service for your external key store proxy (XKS
+     * proxy). This parameter is valid when the <code>CustomKeyStoreType</code> is <code>EXTERNAL_KEY_STORE</code> and
+     * the <code>XksProxyConnectivity</code> is <code>VPC_ENDPOINT_SERVICE</code>.
+     * </p>
+     * <p>
+     * To change this value, the external key store must be disconnected.
+     * </p>
+     * 
+     * @return Changes the name that KMS uses to identify the Amazon VPC endpoint service for your external key store
+     *         proxy (XKS proxy). This parameter is valid when the <code>CustomKeyStoreType</code> is
+     *         <code>EXTERNAL_KEY_STORE</code> and the <code>XksProxyConnectivity</code> is
+     *         <code>VPC_ENDPOINT_SERVICE</code>.</p>
+     *         <p>
+     *         To change this value, the external key store must be disconnected.
+     */
+    public final String xksProxyVpcEndpointServiceName() {
+        return xksProxyVpcEndpointServiceName;
+    }
+
+    /**
+     * <p>
+     * Changes the credentials that KMS uses to sign requests to the external key store proxy (XKS proxy). This
+     * parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+     * <code>EXTERNAL_KEY_STORE</code>.
+     * </p>
+     * <p>
+     * You must specify both the <code>AccessKeyId</code> and <code>SecretAccessKey</code> value in the authentication
+     * credential, even if you are only updating one value.
+     * </p>
+     * <p>
+     * This parameter doesn't establish or change your authentication credentials on the proxy. It just tells KMS the
+     * credential that you established with your external key store proxy. For example, if you rotate the credential on
+     * your external key store proxy, you can use this parameter to update the credential in KMS.
+     * </p>
+     * <p>
+     * You can change this value when the external key store is connected or disconnected.
+     * </p>
+     * 
+     * @return Changes the credentials that KMS uses to sign requests to the external key store proxy (XKS proxy). This
+     *         parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+     *         <code>EXTERNAL_KEY_STORE</code>.</p>
+     *         <p>
+     *         You must specify both the <code>AccessKeyId</code> and <code>SecretAccessKey</code> value in the
+     *         authentication credential, even if you are only updating one value.
+     *         </p>
+     *         <p>
+     *         This parameter doesn't establish or change your authentication credentials on the proxy. It just tells
+     *         KMS the credential that you established with your external key store proxy. For example, if you rotate
+     *         the credential on your external key store proxy, you can use this parameter to update the credential in
+     *         KMS.
+     *         </p>
+     *         <p>
+     *         You can change this value when the external key store is connected or disconnected.
+     */
+    public final XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential() {
+        return xksProxyAuthenticationCredential;
+    }
+
+    /**
+     * <p>
+     * Changes the connectivity setting for the external key store. To indicate that the external key store proxy uses a
+     * Amazon VPC endpoint service to communicate with KMS, specify <code>VPC_ENDPOINT_SERVICE</code>. Otherwise,
+     * specify <code>PUBLIC_ENDPOINT</code>.
+     * </p>
+     * <p>
+     * If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must also change
+     * the <code>XksProxyUriEndpoint</code> and add an <code>XksProxyVpcEndpointServiceName</code> value.
+     * </p>
+     * <p>
+     * If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also change the
+     * <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+     * <code>XksProxyVpcEndpointServiceName</code> value.
+     * </p>
+     * <p>
+     * To change this value, the external key store must be disconnected.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #xksProxyConnectivity} will return {@link XksProxyConnectivityType#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #xksProxyConnectivityAsString}.
+     * </p>
+     * 
+     * @return Changes the connectivity setting for the external key store. To indicate that the external key store
+     *         proxy uses a Amazon VPC endpoint service to communicate with KMS, specify
+     *         <code>VPC_ENDPOINT_SERVICE</code>. Otherwise, specify <code>PUBLIC_ENDPOINT</code>.</p>
+     *         <p>
+     *         If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must also
+     *         change the <code>XksProxyUriEndpoint</code> and add an <code>XksProxyVpcEndpointServiceName</code> value.
+     *         </p>
+     *         <p>
+     *         If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also change
+     *         the <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+     *         <code>XksProxyVpcEndpointServiceName</code> value.
+     *         </p>
+     *         <p>
+     *         To change this value, the external key store must be disconnected.
+     * @see XksProxyConnectivityType
+     */
+    public final XksProxyConnectivityType xksProxyConnectivity() {
+        return XksProxyConnectivityType.fromValue(xksProxyConnectivity);
+    }
+
+    /**
+     * <p>
+     * Changes the connectivity setting for the external key store. To indicate that the external key store proxy uses a
+     * Amazon VPC endpoint service to communicate with KMS, specify <code>VPC_ENDPOINT_SERVICE</code>. Otherwise,
+     * specify <code>PUBLIC_ENDPOINT</code>.
+     * </p>
+     * <p>
+     * If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must also change
+     * the <code>XksProxyUriEndpoint</code> and add an <code>XksProxyVpcEndpointServiceName</code> value.
+     * </p>
+     * <p>
+     * If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also change the
+     * <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+     * <code>XksProxyVpcEndpointServiceName</code> value.
+     * </p>
+     * <p>
+     * To change this value, the external key store must be disconnected.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version,
+     * {@link #xksProxyConnectivity} will return {@link XksProxyConnectivityType#UNKNOWN_TO_SDK_VERSION}. The raw value
+     * returned by the service is available from {@link #xksProxyConnectivityAsString}.
+     * </p>
+     * 
+     * @return Changes the connectivity setting for the external key store. To indicate that the external key store
+     *         proxy uses a Amazon VPC endpoint service to communicate with KMS, specify
+     *         <code>VPC_ENDPOINT_SERVICE</code>. Otherwise, specify <code>PUBLIC_ENDPOINT</code>.</p>
+     *         <p>
+     *         If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must also
+     *         change the <code>XksProxyUriEndpoint</code> and add an <code>XksProxyVpcEndpointServiceName</code> value.
+     *         </p>
+     *         <p>
+     *         If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also change
+     *         the <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+     *         <code>XksProxyVpcEndpointServiceName</code> value.
+     *         </p>
+     *         <p>
+     *         To change this value, the external key store must be disconnected.
+     * @see XksProxyConnectivityType
+     */
+    public final String xksProxyConnectivityAsString() {
+        return xksProxyConnectivity;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(customKeyStoreId());
+        hashCode = 31 * hashCode + Objects.hashCode(newCustomKeyStoreName());
+        hashCode = 31 * hashCode + Objects.hashCode(keyStorePassword());
+        hashCode = 31 * hashCode + Objects.hashCode(cloudHsmClusterId());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyUriEndpoint());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyUriPath());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyVpcEndpointServiceName());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyAuthenticationCredential());
+        hashCode = 31 * hashCode + Objects.hashCode(xksProxyConnectivityAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdateCustomKeyStoreRequest)) {
+            return false;
+        }
+        UpdateCustomKeyStoreRequest other = (UpdateCustomKeyStoreRequest) obj;
+        return Objects.equals(customKeyStoreId(), other.customKeyStoreId())
+                && Objects.equals(newCustomKeyStoreName(), other.newCustomKeyStoreName())
+                && Objects.equals(keyStorePassword(), other.keyStorePassword())
+                && Objects.equals(cloudHsmClusterId(), other.cloudHsmClusterId())
+                && Objects.equals(xksProxyUriEndpoint(), other.xksProxyUriEndpoint())
+                && Objects.equals(xksProxyUriPath(), other.xksProxyUriPath())
+                && Objects.equals(xksProxyVpcEndpointServiceName(), other.xksProxyVpcEndpointServiceName())
+                && Objects.equals(xksProxyAuthenticationCredential(), other.xksProxyAuthenticationCredential())
+                && Objects.equals(xksProxyConnectivityAsString(), other.xksProxyConnectivityAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdateCustomKeyStoreRequest").add("CustomKeyStoreId", customKeyStoreId())
+                .add("NewCustomKeyStoreName", newCustomKeyStoreName())
+                .add("KeyStorePassword", keyStorePassword() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("CloudHsmClusterId", cloudHsmClusterId()).add("XksProxyUriEndpoint", xksProxyUriEndpoint())
+                .add("XksProxyUriPath", xksProxyUriPath())
+                .add("XksProxyVpcEndpointServiceName", xksProxyVpcEndpointServiceName())
+                .add("XksProxyAuthenticationCredential", xksProxyAuthenticationCredential())
+                .add("XksProxyConnectivity", xksProxyConnectivityAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "CustomKeyStoreId":
+            return Optional.ofNullable(clazz.cast(customKeyStoreId()));
+        case "NewCustomKeyStoreName":
+            return Optional.ofNullable(clazz.cast(newCustomKeyStoreName()));
+        case "KeyStorePassword":
+            return Optional.ofNullable(clazz.cast(keyStorePassword()));
+        case "CloudHsmClusterId":
+            return Optional.ofNullable(clazz.cast(cloudHsmClusterId()));
+        case "XksProxyUriEndpoint":
+            return Optional.ofNullable(clazz.cast(xksProxyUriEndpoint()));
+        case "XksProxyUriPath":
+            return Optional.ofNullable(clazz.cast(xksProxyUriPath()));
+        case "XksProxyVpcEndpointServiceName":
+            return Optional.ofNullable(clazz.cast(xksProxyVpcEndpointServiceName()));
+        case "XksProxyAuthenticationCredential":
+            return Optional.ofNullable(clazz.cast(xksProxyAuthenticationCredential()));
+        case "XksProxyConnectivity":
+            return Optional.ofNullable(clazz.cast(xksProxyConnectivityAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<UpdateCustomKeyStoreRequest, T> g) {
+        return obj -> g.apply((UpdateCustomKeyStoreRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, UpdateCustomKeyStoreRequest> {
+        /**
+         * <p>
+         * Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID
+         * of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+         * </p>
+         * 
+         * @param customKeyStoreId
+         *        Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find
+         *        the ID of a custom key store, use the <a>DescribeCustomKeyStores</a> operation.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder customKeyStoreId(String customKeyStoreId);
+
+        /**
+         * <p>
+         * Changes the friendly name of the custom key store to the value that you specify. The custom key store name
+         * must be unique in the Amazon Web Services account.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * <p>
+         * To change this value, an CloudHSM key store must be disconnected. An external key store can be connected or
+         * disconnected.
+         * </p>
+         * 
+         * @param newCustomKeyStoreName
+         *        Changes the friendly name of the custom key store to the value that you specify. The custom key store
+         *        name must be unique in the Amazon Web Services account.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        To change this value, an CloudHSM key store must be disconnected. An external key store can be
+         *        connected or disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder newCustomKeyStoreName(String newCustomKeyStoreName);
+
+        /**
+         * <p>
+         * Enter the current password of the <code>kmsuser</code> crypto user (CU) in the CloudHSM cluster that is
+         * associated with the custom key store. This parameter is valid only for custom key stores with a
+         * <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * This parameter tells KMS the current password of the <code>kmsuser</code> crypto user (CU). It does not set
+         * or change the password of any users in the CloudHSM cluster.
+         * </p>
+         * <p>
+         * To change this value, the CloudHSM key store must be disconnected.
+         * </p>
+         * 
+         * @param keyStorePassword
+         *        Enter the current password of the <code>kmsuser</code> crypto user (CU) in the CloudHSM cluster that
+         *        is associated with the custom key store. This parameter is valid only for custom key stores with a
+         *        <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        This parameter tells KMS the current password of the <code>kmsuser</code> crypto user (CU). It does
+         *        not set or change the password of any users in the CloudHSM cluster.
+         *        </p>
+         *        <p>
+         *        To change this value, the CloudHSM key store must be disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyStorePassword(String keyStorePassword);
+
+        /**
+         * <p>
+         * Associates the custom key store with a related CloudHSM cluster. This parameter is valid only for custom key
+         * stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.
+         * </p>
+         * <p>
+         * Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a
+         * backup history and has the same cluster certificate as the original cluster. You cannot use this parameter to
+         * associate a custom key store with an unrelated cluster. In addition, the replacement cluster must <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">fulfill the
+         * requirements</a> for a cluster associated with a custom key store. To view the cluster certificate of a
+         * cluster, use the <a
+         * href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">
+         * DescribeClusters</a> operation.
+         * </p>
+         * <p>
+         * To change this value, the CloudHSM key store must be disconnected.
+         * </p>
+         * 
+         * @param cloudHsmClusterId
+         *        Associates the custom key store with a related CloudHSM cluster. This parameter is valid only for
+         *        custom key stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
+         *        <p>
+         *        Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that
+         *        shares a backup history and has the same cluster certificate as the original cluster. You cannot use
+         *        this parameter to associate a custom key store with an unrelated cluster. In addition, the replacement
+         *        cluster must <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
+         *        >fulfill the requirements</a> for a cluster associated with a custom key store. To view the cluster
+         *        certificate of a cluster, use the <a
+         *        href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
+         *        >DescribeClusters</a> operation.
+         *        </p>
+         *        <p>
+         *        To change this value, the CloudHSM key store must be disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder cloudHsmClusterId(String cloudHsmClusterId);
+
+        /**
+         * <p>
+         * Changes the URI endpoint that KMS uses to connect to your external key store proxy (XKS proxy). This
+         * parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+         * <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * For external key stores with an <code>XksProxyConnectivity</code> value of <code>PUBLIC_ENDPOINT</code>, the
+         * protocol must be HTTPS.
+         * </p>
+         * <p>
+         * For external key stores with an <code>XksProxyConnectivity</code> value of <code>VPC_ENDPOINT_SERVICE</code>,
+         * specify <code>https://</code> followed by the private DNS name associated with the VPC endpoint service. Each
+         * external key store must use a different private DNS name.
+         * </p>
+         * <p>
+         * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+         * Amazon Web Services account and Region.
+         * </p>
+         * <p>
+         * To change this value, the external key store must be disconnected.
+         * </p>
+         * 
+         * @param xksProxyUriEndpoint
+         *        Changes the URI endpoint that KMS uses to connect to your external key store proxy (XKS proxy). This
+         *        parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+         *        <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        For external key stores with an <code>XksProxyConnectivity</code> value of
+         *        <code>PUBLIC_ENDPOINT</code>, the protocol must be HTTPS.
+         *        </p>
+         *        <p>
+         *        For external key stores with an <code>XksProxyConnectivity</code> value of
+         *        <code>VPC_ENDPOINT_SERVICE</code>, specify <code>https://</code> followed by the private DNS name
+         *        associated with the VPC endpoint service. Each external key store must use a different private DNS
+         *        name.
+         *        </p>
+         *        <p>
+         *        The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique
+         *        in the Amazon Web Services account and Region.
+         *        </p>
+         *        <p>
+         *        To change this value, the external key store must be disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyUriEndpoint(String xksProxyUriEndpoint);
+
+        /**
+         * <p>
+         * Changes the base path to the proxy APIs for this external key store. To find this value, see the
+         * documentation for your external key manager and external key store proxy (XKS proxy). This parameter is valid
+         * only for custom key stores with a <code>CustomKeyStoreType</code> of <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code>, where <code>v1</code>
+         * represents the version of the KMS external key store proxy API. You can include an optional prefix between
+         * the required elements such as <code>/<i>example</i>/kms/xks/v1</code>.
+         * </p>
+         * <p>
+         * The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique in the
+         * Amazon Web Services account and Region.
+         * </p>
+         * <p>
+         * You can change this value when the external key store is connected or disconnected.
+         * </p>
+         * 
+         * @param xksProxyUriPath
+         *        Changes the base path to the proxy APIs for this external key store. To find this value, see the
+         *        documentation for your external key manager and external key store proxy (XKS proxy). This parameter
+         *        is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+         *        <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        The value must start with <code>/</code> and must end with <code>/kms/xks/v1</code>, where
+         *        <code>v1</code> represents the version of the KMS external key store proxy API. You can include an
+         *        optional prefix between the required elements such as <code>/<i>example</i>/kms/xks/v1</code>.
+         *        </p>
+         *        <p>
+         *        The combined <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> values must be unique
+         *        in the Amazon Web Services account and Region.
+         *        </p>
+         *        <p>
+         *        You can change this value when the external key store is connected or disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyUriPath(String xksProxyUriPath);
+
+        /**
+         * <p>
+         * Changes the name that KMS uses to identify the Amazon VPC endpoint service for your external key store proxy
+         * (XKS proxy). This parameter is valid when the <code>CustomKeyStoreType</code> is
+         * <code>EXTERNAL_KEY_STORE</code> and the <code>XksProxyConnectivity</code> is
+         * <code>VPC_ENDPOINT_SERVICE</code>.
+         * </p>
+         * <p>
+         * To change this value, the external key store must be disconnected.
+         * </p>
+         * 
+         * @param xksProxyVpcEndpointServiceName
+         *        Changes the name that KMS uses to identify the Amazon VPC endpoint service for your external key store
+         *        proxy (XKS proxy). This parameter is valid when the <code>CustomKeyStoreType</code> is
+         *        <code>EXTERNAL_KEY_STORE</code> and the <code>XksProxyConnectivity</code> is
+         *        <code>VPC_ENDPOINT_SERVICE</code>.</p>
+         *        <p>
+         *        To change this value, the external key store must be disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyVpcEndpointServiceName(String xksProxyVpcEndpointServiceName);
+
+        /**
+         * <p>
+         * Changes the credentials that KMS uses to sign requests to the external key store proxy (XKS proxy). This
+         * parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+         * <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * You must specify both the <code>AccessKeyId</code> and <code>SecretAccessKey</code> value in the
+         * authentication credential, even if you are only updating one value.
+         * </p>
+         * <p>
+         * This parameter doesn't establish or change your authentication credentials on the proxy. It just tells KMS
+         * the credential that you established with your external key store proxy. For example, if you rotate the
+         * credential on your external key store proxy, you can use this parameter to update the credential in KMS.
+         * </p>
+         * <p>
+         * You can change this value when the external key store is connected or disconnected.
+         * </p>
+         * 
+         * @param xksProxyAuthenticationCredential
+         *        Changes the credentials that KMS uses to sign requests to the external key store proxy (XKS proxy).
+         *        This parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+         *        <code>EXTERNAL_KEY_STORE</code>.</p>
+         *        <p>
+         *        You must specify both the <code>AccessKeyId</code> and <code>SecretAccessKey</code> value in the
+         *        authentication credential, even if you are only updating one value.
+         *        </p>
+         *        <p>
+         *        This parameter doesn't establish or change your authentication credentials on the proxy. It just tells
+         *        KMS the credential that you established with your external key store proxy. For example, if you rotate
+         *        the credential on your external key store proxy, you can use this parameter to update the credential
+         *        in KMS.
+         *        </p>
+         *        <p>
+         *        You can change this value when the external key store is connected or disconnected.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential);
+
+        /**
+         * <p>
+         * Changes the credentials that KMS uses to sign requests to the external key store proxy (XKS proxy). This
+         * parameter is valid only for custom key stores with a <code>CustomKeyStoreType</code> of
+         * <code>EXTERNAL_KEY_STORE</code>.
+         * </p>
+         * <p>
+         * You must specify both the <code>AccessKeyId</code> and <code>SecretAccessKey</code> value in the
+         * authentication credential, even if you are only updating one value.
+         * </p>
+         * <p>
+         * This parameter doesn't establish or change your authentication credentials on the proxy. It just tells KMS
+         * the credential that you established with your external key store proxy. For example, if you rotate the
+         * credential on your external key store proxy, you can use this parameter to update the credential in KMS.
+         * </p>
+         * <p>
+         * You can change this value when the external key store is connected or disconnected.
+         * </p>
+         * This is a convenience method that creates an instance of the
+         * {@link XksProxyAuthenticationCredentialType.Builder} avoiding the need to create one manually via
+         * {@link XksProxyAuthenticationCredentialType#builder()}.
+         *
+         * <p>
+         * When the {@link Consumer} completes, {@link XksProxyAuthenticationCredentialType.Builder#build()} is called
+         * immediately and its result is passed to
+         * {@link #xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType)}.
+         * 
+         * @param xksProxyAuthenticationCredential
+         *        a consumer that will call methods on {@link XksProxyAuthenticationCredentialType.Builder}
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see #xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType)
+         */
+        default Builder xksProxyAuthenticationCredential(
+                Consumer<XksProxyAuthenticationCredentialType.Builder> xksProxyAuthenticationCredential) {
+            return xksProxyAuthenticationCredential(XksProxyAuthenticationCredentialType.builder()
+                    .applyMutation(xksProxyAuthenticationCredential).build());
+        }
+
+        /**
+         * <p>
+         * Changes the connectivity setting for the external key store. To indicate that the external key store proxy
+         * uses a Amazon VPC endpoint service to communicate with KMS, specify <code>VPC_ENDPOINT_SERVICE</code>.
+         * Otherwise, specify <code>PUBLIC_ENDPOINT</code>.
+         * </p>
+         * <p>
+         * If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must also
+         * change the <code>XksProxyUriEndpoint</code> and add an <code>XksProxyVpcEndpointServiceName</code> value.
+         * </p>
+         * <p>
+         * If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also change the
+         * <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+         * <code>XksProxyVpcEndpointServiceName</code> value.
+         * </p>
+         * <p>
+         * To change this value, the external key store must be disconnected.
+         * </p>
+         * 
+         * @param xksProxyConnectivity
+         *        Changes the connectivity setting for the external key store. To indicate that the external key store
+         *        proxy uses a Amazon VPC endpoint service to communicate with KMS, specify
+         *        <code>VPC_ENDPOINT_SERVICE</code>. Otherwise, specify <code>PUBLIC_ENDPOINT</code>.</p>
+         *        <p>
+         *        If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must
+         *        also change the <code>XksProxyUriEndpoint</code> and add an
+         *        <code>XksProxyVpcEndpointServiceName</code> value.
+         *        </p>
+         *        <p>
+         *        If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also
+         *        change the <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+         *        <code>XksProxyVpcEndpointServiceName</code> value.
+         *        </p>
+         *        <p>
+         *        To change this value, the external key store must be disconnected.
+         * @see XksProxyConnectivityType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see XksProxyConnectivityType
+         */
+        Builder xksProxyConnectivity(String xksProxyConnectivity);
+
+        /**
+         * <p>
+         * Changes the connectivity setting for the external key store. To indicate that the external key store proxy
+         * uses a Amazon VPC endpoint service to communicate with KMS, specify <code>VPC_ENDPOINT_SERVICE</code>.
+         * Otherwise, specify <code>PUBLIC_ENDPOINT</code>.
+         * </p>
+         * <p>
+         * If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must also
+         * change the <code>XksProxyUriEndpoint</code> and add an <code>XksProxyVpcEndpointServiceName</code> value.
+         * </p>
+         * <p>
+         * If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also change the
+         * <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+         * <code>XksProxyVpcEndpointServiceName</code> value.
+         * </p>
+         * <p>
+         * To change this value, the external key store must be disconnected.
+         * </p>
+         * 
+         * @param xksProxyConnectivity
+         *        Changes the connectivity setting for the external key store. To indicate that the external key store
+         *        proxy uses a Amazon VPC endpoint service to communicate with KMS, specify
+         *        <code>VPC_ENDPOINT_SERVICE</code>. Otherwise, specify <code>PUBLIC_ENDPOINT</code>.</p>
+         *        <p>
+         *        If you change the <code>XksProxyConnectivity</code> to <code>VPC_ENDPOINT_SERVICE</code>, you must
+         *        also change the <code>XksProxyUriEndpoint</code> and add an
+         *        <code>XksProxyVpcEndpointServiceName</code> value.
+         *        </p>
+         *        <p>
+         *        If you change the <code>XksProxyConnectivity</code> to <code>PUBLIC_ENDPOINT</code>, you must also
+         *        change the <code>XksProxyUriEndpoint</code> and specify a null or empty string for the
+         *        <code>XksProxyVpcEndpointServiceName</code> value.
+         *        </p>
+         *        <p>
+         *        To change this value, the external key store must be disconnected.
+         * @see XksProxyConnectivityType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see XksProxyConnectivityType
+         */
+        Builder xksProxyConnectivity(XksProxyConnectivityType xksProxyConnectivity);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String customKeyStoreId;
+
+        private String newCustomKeyStoreName;
+
+        private String keyStorePassword;
+
+        private String cloudHsmClusterId;
+
+        private String xksProxyUriEndpoint;
+
+        private String xksProxyUriPath;
+
+        private String xksProxyVpcEndpointServiceName;
+
+        private XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential;
+
+        private String xksProxyConnectivity;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdateCustomKeyStoreRequest model) {
+            super(model);
+            customKeyStoreId(model.customKeyStoreId);
+            newCustomKeyStoreName(model.newCustomKeyStoreName);
+            keyStorePassword(model.keyStorePassword);
+            cloudHsmClusterId(model.cloudHsmClusterId);
+            xksProxyUriEndpoint(model.xksProxyUriEndpoint);
+            xksProxyUriPath(model.xksProxyUriPath);
+            xksProxyVpcEndpointServiceName(model.xksProxyVpcEndpointServiceName);
+            xksProxyAuthenticationCredential(model.xksProxyAuthenticationCredential);
+            xksProxyConnectivity(model.xksProxyConnectivity);
+        }
+
+        public final String getCustomKeyStoreId() {
+            return customKeyStoreId;
+        }
+
+        public final void setCustomKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+        }
+
+        @Override
+        public final Builder customKeyStoreId(String customKeyStoreId) {
+            this.customKeyStoreId = customKeyStoreId;
+            return this;
+        }
+
+        public final String getNewCustomKeyStoreName() {
+            return newCustomKeyStoreName;
+        }
+
+        public final void setNewCustomKeyStoreName(String newCustomKeyStoreName) {
+            this.newCustomKeyStoreName = newCustomKeyStoreName;
+        }
+
+        @Override
+        public final Builder newCustomKeyStoreName(String newCustomKeyStoreName) {
+            this.newCustomKeyStoreName = newCustomKeyStoreName;
+            return this;
+        }
+
+        public final String getKeyStorePassword() {
+            return keyStorePassword;
+        }
+
+        public final void setKeyStorePassword(String keyStorePassword) {
+            this.keyStorePassword = keyStorePassword;
+        }
+
+        @Override
+        public final Builder keyStorePassword(String keyStorePassword) {
+            this.keyStorePassword = keyStorePassword;
+            return this;
+        }
+
+        public final String getCloudHsmClusterId() {
+            return cloudHsmClusterId;
+        }
+
+        public final void setCloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+        }
+
+        @Override
+        public final Builder cloudHsmClusterId(String cloudHsmClusterId) {
+            this.cloudHsmClusterId = cloudHsmClusterId;
+            return this;
+        }
+
+        public final String getXksProxyUriEndpoint() {
+            return xksProxyUriEndpoint;
+        }
+
+        public final void setXksProxyUriEndpoint(String xksProxyUriEndpoint) {
+            this.xksProxyUriEndpoint = xksProxyUriEndpoint;
+        }
+
+        @Override
+        public final Builder xksProxyUriEndpoint(String xksProxyUriEndpoint) {
+            this.xksProxyUriEndpoint = xksProxyUriEndpoint;
+            return this;
+        }
+
+        public final String getXksProxyUriPath() {
+            return xksProxyUriPath;
+        }
+
+        public final void setXksProxyUriPath(String xksProxyUriPath) {
+            this.xksProxyUriPath = xksProxyUriPath;
+        }
+
+        @Override
+        public final Builder xksProxyUriPath(String xksProxyUriPath) {
+            this.xksProxyUriPath = xksProxyUriPath;
+            return this;
+        }
+
+        public final String getXksProxyVpcEndpointServiceName() {
+            return xksProxyVpcEndpointServiceName;
+        }
+
+        public final void setXksProxyVpcEndpointServiceName(String xksProxyVpcEndpointServiceName) {
+            this.xksProxyVpcEndpointServiceName = xksProxyVpcEndpointServiceName;
+        }
+
+        @Override
+        public final Builder xksProxyVpcEndpointServiceName(String xksProxyVpcEndpointServiceName) {
+            this.xksProxyVpcEndpointServiceName = xksProxyVpcEndpointServiceName;
+            return this;
+        }
+
+        public final XksProxyAuthenticationCredentialType.Builder getXksProxyAuthenticationCredential() {
+            return xksProxyAuthenticationCredential != null ? xksProxyAuthenticationCredential.toBuilder() : null;
+        }
+
+        public final void setXksProxyAuthenticationCredential(
+                XksProxyAuthenticationCredentialType.BuilderImpl xksProxyAuthenticationCredential) {
+            this.xksProxyAuthenticationCredential = xksProxyAuthenticationCredential != null ? xksProxyAuthenticationCredential
+                    .build() : null;
+        }
+
+        @Override
+        public final Builder xksProxyAuthenticationCredential(
+                XksProxyAuthenticationCredentialType xksProxyAuthenticationCredential) {
+            this.xksProxyAuthenticationCredential = xksProxyAuthenticationCredential;
+            return this;
+        }
+
+        public final String getXksProxyConnectivity() {
+            return xksProxyConnectivity;
+        }
+
+        public final void setXksProxyConnectivity(String xksProxyConnectivity) {
+            this.xksProxyConnectivity = xksProxyConnectivity;
+        }
+
+        @Override
+        public final Builder xksProxyConnectivity(String xksProxyConnectivity) {
+            this.xksProxyConnectivity = xksProxyConnectivity;
+            return this;
+        }
+
+        @Override
+        public final Builder xksProxyConnectivity(XksProxyConnectivityType xksProxyConnectivity) {
+            this.xksProxyConnectivity(xksProxyConnectivity == null ? null : xksProxyConnectivity.toString());
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public UpdateCustomKeyStoreRequest build() {
+            return new UpdateCustomKeyStoreRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateCustomKeyStoreResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateCustomKeyStoreResponse.java
new file mode 100644
index 0000000..fdb8599
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateCustomKeyStoreResponse.java
@@ -0,0 +1,116 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdateCustomKeyStoreResponse extends KmsResponse implements
+        ToCopyableBuilder<UpdateCustomKeyStoreResponse.Builder, UpdateCustomKeyStoreResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private UpdateCustomKeyStoreResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdateCustomKeyStoreResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdateCustomKeyStoreResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, UpdateCustomKeyStoreResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdateCustomKeyStoreResponse model) {
+            super(model);
+        }
+
+        @Override
+        public UpdateCustomKeyStoreResponse build() {
+            return new UpdateCustomKeyStoreResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateKeyDescriptionRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateKeyDescriptionRequest.java
new file mode 100644
index 0000000..b3cfed1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateKeyDescriptionRequest.java
@@ -0,0 +1,355 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdateKeyDescriptionRequest extends KmsRequest implements
+        ToCopyableBuilder<UpdateKeyDescriptionRequest.Builder, UpdateKeyDescriptionRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(UpdateKeyDescriptionRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> DESCRIPTION_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("Description").getter(getter(UpdateKeyDescriptionRequest::description))
+            .setter(setter(Builder::description))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            DESCRIPTION_FIELD));
+
+    private final String keyId;
+
+    private final String description;
+
+    private UpdateKeyDescriptionRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.description = builder.description;
+    }
+
+    /**
+     * <p>
+     * Updates the description of the specified KMS key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of the KMS key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Updates the description of the specified KMS key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of the KMS key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * New description for the KMS key.
+     * </p>
+     * <important>
+     * <p>
+     * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in
+     * CloudTrail logs and other output.
+     * </p>
+     * </important>
+     * 
+     * @return New description for the KMS key.</p> <important>
+     *         <p>
+     *         Do not include confidential or sensitive information in this field. This field may be displayed in
+     *         plaintext in CloudTrail logs and other output.
+     *         </p>
+     */
+    public final String description() {
+        return description;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(description());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdateKeyDescriptionRequest)) {
+            return false;
+        }
+        UpdateKeyDescriptionRequest other = (UpdateKeyDescriptionRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(description(), other.description());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdateKeyDescriptionRequest").add("KeyId", keyId()).add("Description", description()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Description":
+            return Optional.ofNullable(clazz.cast(description()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<UpdateKeyDescriptionRequest, T> g) {
+        return obj -> g.apply((UpdateKeyDescriptionRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, UpdateKeyDescriptionRequest> {
+        /**
+         * <p>
+         * Updates the description of the specified KMS key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of the KMS key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Updates the description of the specified KMS key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of the KMS key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * New description for the KMS key.
+         * </p>
+         * <important>
+         * <p>
+         * Do not include confidential or sensitive information in this field. This field may be displayed in plaintext
+         * in CloudTrail logs and other output.
+         * </p>
+         * </important>
+         * 
+         * @param description
+         *        New description for the KMS key.</p> <important>
+         *        <p>
+         *        Do not include confidential or sensitive information in this field. This field may be displayed in
+         *        plaintext in CloudTrail logs and other output.
+         *        </p>
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder description(String description);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String description;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdateKeyDescriptionRequest model) {
+            super(model);
+            keyId(model.keyId);
+            description(model.description);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getDescription() {
+            return description;
+        }
+
+        public final void setDescription(String description) {
+            this.description = description;
+        }
+
+        @Override
+        public final Builder description(String description) {
+            this.description = description;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public UpdateKeyDescriptionRequest build() {
+            return new UpdateKeyDescriptionRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateKeyDescriptionResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateKeyDescriptionResponse.java
new file mode 100644
index 0000000..7be825c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdateKeyDescriptionResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdateKeyDescriptionResponse extends KmsResponse implements
+        ToCopyableBuilder<UpdateKeyDescriptionResponse.Builder, UpdateKeyDescriptionResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private UpdateKeyDescriptionResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdateKeyDescriptionResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdateKeyDescriptionResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, UpdateKeyDescriptionResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdateKeyDescriptionResponse model) {
+            super(model);
+        }
+
+        @Override
+        public UpdateKeyDescriptionResponse build() {
+            return new UpdateKeyDescriptionResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdatePrimaryRegionRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdatePrimaryRegionRequest.java
new file mode 100644
index 0000000..235e0c3
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdatePrimaryRegionRequest.java
@@ -0,0 +1,352 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdatePrimaryRegionRequest extends KmsRequest implements
+        ToCopyableBuilder<UpdatePrimaryRegionRequest.Builder, UpdatePrimaryRegionRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(UpdatePrimaryRegionRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> PRIMARY_REGION_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("PrimaryRegion").getter(getter(UpdatePrimaryRegionRequest::primaryRegion))
+            .setter(setter(Builder::primaryRegion))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PrimaryRegion").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            PRIMARY_REGION_FIELD));
+
+    private final String keyId;
+
+    private final String primaryRegion;
+
+    private UpdatePrimaryRegionRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.primaryRegion = builder.primaryRegion;
+    }
+
+    /**
+     * <p>
+     * Identifies the current primary key. When the operation completes, this KMS key will be a replica key.
+     * </p>
+     * <p>
+     * Specify the key ID or key ARN of a multi-Region primary key.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     * </p>
+     * 
+     * @return Identifies the current primary key. When the operation completes, this KMS key will be a replica key.</p>
+     *         <p>
+     *         Specify the key ID or key ARN of a multi-Region primary key.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The Amazon Web Services Region of the new primary key. Enter the Region ID, such as <code>us-east-1</code> or
+     * <code>ap-southeast-2</code>. There must be an existing replica key in this Region.
+     * </p>
+     * <p>
+     * When the operation completes, the multi-Region key in this Region will be the primary key.
+     * </p>
+     * 
+     * @return The Amazon Web Services Region of the new primary key. Enter the Region ID, such as
+     *         <code>us-east-1</code> or <code>ap-southeast-2</code>. There must be an existing replica key in this
+     *         Region. </p>
+     *         <p>
+     *         When the operation completes, the multi-Region key in this Region will be the primary key.
+     */
+    public final String primaryRegion() {
+        return primaryRegion;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(primaryRegion());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdatePrimaryRegionRequest)) {
+            return false;
+        }
+        UpdatePrimaryRegionRequest other = (UpdatePrimaryRegionRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(primaryRegion(), other.primaryRegion());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdatePrimaryRegionRequest").add("KeyId", keyId()).add("PrimaryRegion", primaryRegion()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "PrimaryRegion":
+            return Optional.ofNullable(clazz.cast(primaryRegion()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<UpdatePrimaryRegionRequest, T> g) {
+        return obj -> g.apply((UpdatePrimaryRegionRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, UpdatePrimaryRegionRequest> {
+        /**
+         * <p>
+         * Identifies the current primary key. When the operation completes, this KMS key will be a replica key.
+         * </p>
+         * <p>
+         * Specify the key ID or key ARN of a multi-Region primary key.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the current primary key. When the operation completes, this KMS key will be a replica
+         *        key.</p>
+         *        <p>
+         *        Specify the key ID or key ARN of a multi-Region primary key.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The Amazon Web Services Region of the new primary key. Enter the Region ID, such as <code>us-east-1</code> or
+         * <code>ap-southeast-2</code>. There must be an existing replica key in this Region.
+         * </p>
+         * <p>
+         * When the operation completes, the multi-Region key in this Region will be the primary key.
+         * </p>
+         * 
+         * @param primaryRegion
+         *        The Amazon Web Services Region of the new primary key. Enter the Region ID, such as
+         *        <code>us-east-1</code> or <code>ap-southeast-2</code>. There must be an existing replica key in this
+         *        Region. </p>
+         *        <p>
+         *        When the operation completes, the multi-Region key in this Region will be the primary key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder primaryRegion(String primaryRegion);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private String primaryRegion;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdatePrimaryRegionRequest model) {
+            super(model);
+            keyId(model.keyId);
+            primaryRegion(model.primaryRegion);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getPrimaryRegion() {
+            return primaryRegion;
+        }
+
+        public final void setPrimaryRegion(String primaryRegion) {
+            this.primaryRegion = primaryRegion;
+        }
+
+        @Override
+        public final Builder primaryRegion(String primaryRegion) {
+            this.primaryRegion = primaryRegion;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public UpdatePrimaryRegionRequest build() {
+            return new UpdatePrimaryRegionRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdatePrimaryRegionResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdatePrimaryRegionResponse.java
new file mode 100644
index 0000000..7032b4f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/UpdatePrimaryRegionResponse.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+@Generated("software.amazon.awssdk:codegen")
+public final class UpdatePrimaryRegionResponse extends KmsResponse implements
+        ToCopyableBuilder<UpdatePrimaryRegionResponse.Builder, UpdatePrimaryRegionResponse> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private UpdatePrimaryRegionResponse(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof UpdatePrimaryRegionResponse)) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("UpdatePrimaryRegionResponse").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        return Optional.empty();
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, UpdatePrimaryRegionResponse> {
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(UpdatePrimaryRegionResponse model) {
+            super(model);
+        }
+
+        @Override
+        public UpdatePrimaryRegionResponse build() {
+            return new UpdatePrimaryRegionResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyMacRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyMacRequest.java
new file mode 100644
index 0000000..1057fc8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyMacRequest.java
@@ -0,0 +1,661 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class VerifyMacRequest extends KmsRequest implements ToCopyableBuilder<VerifyMacRequest.Builder, VerifyMacRequest> {
+    private static final SdkField<SdkBytes> MESSAGE_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Message").getter(getter(VerifyMacRequest::message)).setter(setter(Builder::message))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Message").build()).build();
+
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(VerifyMacRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<String> MAC_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MacAlgorithm").getter(getter(VerifyMacRequest::macAlgorithmAsString))
+            .setter(setter(Builder::macAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MacAlgorithm").build()).build();
+
+    private static final SdkField<SdkBytes> MAC_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES).memberName("Mac")
+            .getter(getter(VerifyMacRequest::mac)).setter(setter(Builder::mac))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Mac").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(VerifyMacRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(VerifyMacRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(MESSAGE_FIELD, KEY_ID_FIELD,
+            MAC_ALGORITHM_FIELD, MAC_FIELD, GRANT_TOKENS_FIELD, DRY_RUN_FIELD));
+
+    private final SdkBytes message;
+
+    private final String keyId;
+
+    private final String macAlgorithm;
+
+    private final SdkBytes mac;
+
+    private final List<String> grantTokens;
+
+    private final Boolean dryRun;
+
+    private VerifyMacRequest(BuilderImpl builder) {
+        super(builder);
+        this.message = builder.message;
+        this.keyId = builder.keyId;
+        this.macAlgorithm = builder.macAlgorithm;
+        this.mac = builder.mac;
+        this.grantTokens = builder.grantTokens;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * The message that will be used in the verification. Enter the same message that was used to generate the HMAC.
+     * </p>
+     * <p>
+     * <a>GenerateMac</a> and <code>VerifyMac</code> do not provide special handling for message digests. If you
+     * generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.
+     * </p>
+     * 
+     * @return The message that will be used in the verification. Enter the same message that was used to generate the
+     *         HMAC.</p>
+     *         <p>
+     *         <a>GenerateMac</a> and <code>VerifyMac</code> do not provide special handling for message digests. If you
+     *         generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.
+     */
+    public final SdkBytes message() {
+        return message;
+    }
+
+    /**
+     * <p>
+     * The KMS key that will be used in the verification.
+     * </p>
+     * <p>
+     * Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key, the
+     * <code>VerifyMac</code> operation fails.
+     * </p>
+     * 
+     * @return The KMS key that will be used in the verification.</p>
+     *         <p>
+     *         Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key,
+     *         the <code>VerifyMac</code> operation fails.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to compute
+     * the HMAC. This algorithm must be supported by the HMAC KMS key identified by the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
+     *         compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the
+     *         <code>KeyId</code> parameter.
+     * @see MacAlgorithmSpec
+     */
+    public final MacAlgorithmSpec macAlgorithm() {
+        return MacAlgorithmSpec.fromValue(macAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to compute
+     * the HMAC. This algorithm must be supported by the HMAC KMS key identified by the <code>KeyId</code> parameter.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
+     *         compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the
+     *         <code>KeyId</code> parameter.
+     * @see MacAlgorithmSpec
+     */
+    public final String macAlgorithmAsString() {
+        return macAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The HMAC to verify. Enter the HMAC that was generated by the <a>GenerateMac</a> operation when you specified the
+     * same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
+     * </p>
+     * 
+     * @return The HMAC to verify. Enter the HMAC that was generated by the <a>GenerateMac</a> operation when you
+     *         specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
+     */
+    public final SdkBytes mac() {
+        return mac;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(message());
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(macAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(mac());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof VerifyMacRequest)) {
+            return false;
+        }
+        VerifyMacRequest other = (VerifyMacRequest) obj;
+        return Objects.equals(message(), other.message()) && Objects.equals(keyId(), other.keyId())
+                && Objects.equals(macAlgorithmAsString(), other.macAlgorithmAsString()) && Objects.equals(mac(), other.mac())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("VerifyMacRequest").add("Message", message() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("KeyId", keyId()).add("MacAlgorithm", macAlgorithmAsString()).add("Mac", mac())
+                .add("GrantTokens", hasGrantTokens() ? grantTokens() : null).add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Message":
+            return Optional.ofNullable(clazz.cast(message()));
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "MacAlgorithm":
+            return Optional.ofNullable(clazz.cast(macAlgorithmAsString()));
+        case "Mac":
+            return Optional.ofNullable(clazz.cast(mac()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<VerifyMacRequest, T> g) {
+        return obj -> g.apply((VerifyMacRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, VerifyMacRequest> {
+        /**
+         * <p>
+         * The message that will be used in the verification. Enter the same message that was used to generate the HMAC.
+         * </p>
+         * <p>
+         * <a>GenerateMac</a> and <code>VerifyMac</code> do not provide special handling for message digests. If you
+         * generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.
+         * </p>
+         * 
+         * @param message
+         *        The message that will be used in the verification. Enter the same message that was used to generate
+         *        the HMAC.</p>
+         *        <p>
+         *        <a>GenerateMac</a> and <code>VerifyMac</code> do not provide special handling for message digests. If
+         *        you generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash
+         *        digest.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder message(SdkBytes message);
+
+        /**
+         * <p>
+         * The KMS key that will be used in the verification.
+         * </p>
+         * <p>
+         * Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key, the
+         * <code>VerifyMac</code> operation fails.
+         * </p>
+         * 
+         * @param keyId
+         *        The KMS key that will be used in the verification.</p>
+         *        <p>
+         *        Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key,
+         *        the <code>VerifyMac</code> operation fails.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
+         * compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the <code>KeyId</code>
+         * parameter.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
+         *        compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the
+         *        <code>KeyId</code> parameter.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(String macAlgorithm);
+
+        /**
+         * <p>
+         * The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
+         * compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the <code>KeyId</code>
+         * parameter.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
+         *        compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the
+         *        <code>KeyId</code> parameter.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(MacAlgorithmSpec macAlgorithm);
+
+        /**
+         * <p>
+         * The HMAC to verify. Enter the HMAC that was generated by the <a>GenerateMac</a> operation when you specified
+         * the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
+         * </p>
+         * 
+         * @param mac
+         *        The HMAC to verify. Enter the HMAC that was generated by the <a>GenerateMac</a> operation when you
+         *        specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder mac(SdkBytes mac);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private SdkBytes message;
+
+        private String keyId;
+
+        private String macAlgorithm;
+
+        private SdkBytes mac;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(VerifyMacRequest model) {
+            super(model);
+            message(model.message);
+            keyId(model.keyId);
+            macAlgorithm(model.macAlgorithm);
+            mac(model.mac);
+            grantTokens(model.grantTokens);
+            dryRun(model.dryRun);
+        }
+
+        public final ByteBuffer getMessage() {
+            return message == null ? null : message.asByteBuffer();
+        }
+
+        public final void setMessage(ByteBuffer message) {
+            message(message == null ? null : SdkBytes.fromByteBuffer(message));
+        }
+
+        @Override
+        public final Builder message(SdkBytes message) {
+            this.message = message;
+            return this;
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final String getMacAlgorithm() {
+            return macAlgorithm;
+        }
+
+        public final void setMacAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+        }
+
+        @Override
+        public final Builder macAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder macAlgorithm(MacAlgorithmSpec macAlgorithm) {
+            this.macAlgorithm(macAlgorithm == null ? null : macAlgorithm.toString());
+            return this;
+        }
+
+        public final ByteBuffer getMac() {
+            return mac == null ? null : mac.asByteBuffer();
+        }
+
+        public final void setMac(ByteBuffer mac) {
+            mac(mac == null ? null : SdkBytes.fromByteBuffer(mac));
+        }
+
+        @Override
+        public final Builder mac(SdkBytes mac) {
+            this.mac = mac;
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public VerifyMacRequest build() {
+            return new VerifyMacRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyMacResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyMacResponse.java
new file mode 100644
index 0000000..45bedbe
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyMacResponse.java
@@ -0,0 +1,354 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class VerifyMacResponse extends KmsResponse implements
+        ToCopyableBuilder<VerifyMacResponse.Builder, VerifyMacResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(VerifyMacResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Boolean> MAC_VALID_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("MacValid").getter(getter(VerifyMacResponse::macValid)).setter(setter(Builder::macValid))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MacValid").build()).build();
+
+    private static final SdkField<String> MAC_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MacAlgorithm").getter(getter(VerifyMacResponse::macAlgorithmAsString))
+            .setter(setter(Builder::macAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MacAlgorithm").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, MAC_VALID_FIELD,
+            MAC_ALGORITHM_FIELD));
+
+    private final String keyId;
+
+    private final Boolean macValid;
+
+    private final String macAlgorithm;
+
+    private VerifyMacResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.macValid = builder.macValid;
+        this.macAlgorithm = builder.macAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The HMAC KMS key used in the verification.
+     * </p>
+     * 
+     * @return The HMAC KMS key used in the verification.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * A Boolean value that indicates whether the HMAC was verified. A value of <code>True</code> indicates that the
+     * HMAC (<code>Mac</code>) was generated with the specified <code>Message</code>, HMAC KMS key (<code>KeyID</code>)
+     * and <code>MacAlgorithm.</code>.
+     * </p>
+     * <p>
+     * If the HMAC is not verified, the <code>VerifyMac</code> operation fails with a
+     * <code>KMSInvalidMacException</code> exception. This exception indicates that one or more of the inputs changed
+     * since the HMAC was computed.
+     * </p>
+     * 
+     * @return A Boolean value that indicates whether the HMAC was verified. A value of <code>True</code> indicates that
+     *         the HMAC (<code>Mac</code>) was generated with the specified <code>Message</code>, HMAC KMS key (
+     *         <code>KeyID</code>) and <code>MacAlgorithm.</code>.</p>
+     *         <p>
+     *         If the HMAC is not verified, the <code>VerifyMac</code> operation fails with a
+     *         <code>KMSInvalidMacException</code> exception. This exception indicates that one or more of the inputs
+     *         changed since the HMAC was computed.
+     */
+    public final Boolean macValid() {
+        return macValid;
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm used in the verification.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm used in the verification.
+     * @see MacAlgorithmSpec
+     */
+    public final MacAlgorithmSpec macAlgorithm() {
+        return MacAlgorithmSpec.fromValue(macAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The MAC algorithm used in the verification.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #macAlgorithm} will
+     * return {@link MacAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #macAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The MAC algorithm used in the verification.
+     * @see MacAlgorithmSpec
+     */
+    public final String macAlgorithmAsString() {
+        return macAlgorithm;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(macValid());
+        hashCode = 31 * hashCode + Objects.hashCode(macAlgorithmAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof VerifyMacResponse)) {
+            return false;
+        }
+        VerifyMacResponse other = (VerifyMacResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(macValid(), other.macValid())
+                && Objects.equals(macAlgorithmAsString(), other.macAlgorithmAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("VerifyMacResponse").add("KeyId", keyId()).add("MacValid", macValid())
+                .add("MacAlgorithm", macAlgorithmAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "MacValid":
+            return Optional.ofNullable(clazz.cast(macValid()));
+        case "MacAlgorithm":
+            return Optional.ofNullable(clazz.cast(macAlgorithmAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<VerifyMacResponse, T> g) {
+        return obj -> g.apply((VerifyMacResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, VerifyMacResponse> {
+        /**
+         * <p>
+         * The HMAC KMS key used in the verification.
+         * </p>
+         * 
+         * @param keyId
+         *        The HMAC KMS key used in the verification.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * A Boolean value that indicates whether the HMAC was verified. A value of <code>True</code> indicates that the
+         * HMAC (<code>Mac</code>) was generated with the specified <code>Message</code>, HMAC KMS key (
+         * <code>KeyID</code>) and <code>MacAlgorithm.</code>.
+         * </p>
+         * <p>
+         * If the HMAC is not verified, the <code>VerifyMac</code> operation fails with a
+         * <code>KMSInvalidMacException</code> exception. This exception indicates that one or more of the inputs
+         * changed since the HMAC was computed.
+         * </p>
+         * 
+         * @param macValid
+         *        A Boolean value that indicates whether the HMAC was verified. A value of <code>True</code> indicates
+         *        that the HMAC (<code>Mac</code>) was generated with the specified <code>Message</code>, HMAC KMS key (
+         *        <code>KeyID</code>) and <code>MacAlgorithm.</code>.</p>
+         *        <p>
+         *        If the HMAC is not verified, the <code>VerifyMac</code> operation fails with a
+         *        <code>KMSInvalidMacException</code> exception. This exception indicates that one or more of the inputs
+         *        changed since the HMAC was computed.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder macValid(Boolean macValid);
+
+        /**
+         * <p>
+         * The MAC algorithm used in the verification.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm used in the verification.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(String macAlgorithm);
+
+        /**
+         * <p>
+         * The MAC algorithm used in the verification.
+         * </p>
+         * 
+         * @param macAlgorithm
+         *        The MAC algorithm used in the verification.
+         * @see MacAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MacAlgorithmSpec
+         */
+        Builder macAlgorithm(MacAlgorithmSpec macAlgorithm);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Boolean macValid;
+
+        private String macAlgorithm;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(VerifyMacResponse model) {
+            super(model);
+            keyId(model.keyId);
+            macValid(model.macValid);
+            macAlgorithm(model.macAlgorithm);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Boolean getMacValid() {
+            return macValid;
+        }
+
+        public final void setMacValid(Boolean macValid) {
+            this.macValid = macValid;
+        }
+
+        @Override
+        public final Builder macValid(Boolean macValid) {
+            this.macValid = macValid;
+            return this;
+        }
+
+        public final String getMacAlgorithm() {
+            return macAlgorithm;
+        }
+
+        public final void setMacAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+        }
+
+        @Override
+        public final Builder macAlgorithm(String macAlgorithm) {
+            this.macAlgorithm = macAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder macAlgorithm(MacAlgorithmSpec macAlgorithm) {
+            this.macAlgorithm(macAlgorithm == null ? null : macAlgorithm.toString());
+            return this;
+        }
+
+        @Override
+        public VerifyMacResponse build() {
+            return new VerifyMacResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyRequest.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyRequest.java
new file mode 100644
index 0000000..f521717
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyRequest.java
@@ -0,0 +1,1281 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
+import software.amazon.awssdk.core.SdkBytes;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.ListTrait;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
+import software.amazon.awssdk.core.util.SdkAutoConstructList;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class VerifyRequest extends KmsRequest implements ToCopyableBuilder<VerifyRequest.Builder, VerifyRequest> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(VerifyRequest::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<SdkBytes> MESSAGE_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Message").getter(getter(VerifyRequest::message)).setter(setter(Builder::message))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Message").build()).build();
+
+    private static final SdkField<String> MESSAGE_TYPE_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("MessageType").getter(getter(VerifyRequest::messageTypeAsString)).setter(setter(Builder::messageType))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MessageType").build()).build();
+
+    private static final SdkField<SdkBytes> SIGNATURE_FIELD = SdkField.<SdkBytes> builder(MarshallingType.SDK_BYTES)
+            .memberName("Signature").getter(getter(VerifyRequest::signature)).setter(setter(Builder::signature))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Signature").build()).build();
+
+    private static final SdkField<String> SIGNING_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SigningAlgorithm").getter(getter(VerifyRequest::signingAlgorithmAsString))
+            .setter(setter(Builder::signingAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningAlgorithm").build()).build();
+
+    private static final SdkField<List<String>> GRANT_TOKENS_FIELD = SdkField
+            .<List<String>> builder(MarshallingType.LIST)
+            .memberName("GrantTokens")
+            .getter(getter(VerifyRequest::grantTokens))
+            .setter(setter(Builder::grantTokens))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GrantTokens").build(),
+                    ListTrait
+                            .builder()
+                            .memberLocationName(null)
+                            .memberFieldInfo(
+                                    SdkField.<String> builder(MarshallingType.STRING)
+                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
+                                                    .locationName("member").build()).build()).build()).build();
+
+    private static final SdkField<Boolean> DRY_RUN_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("DryRun").getter(getter(VerifyRequest::dryRun)).setter(setter(Builder::dryRun))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DryRun").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD, MESSAGE_FIELD,
+            MESSAGE_TYPE_FIELD, SIGNATURE_FIELD, SIGNING_ALGORITHM_FIELD, GRANT_TOKENS_FIELD, DRY_RUN_FIELD));
+
+    private final String keyId;
+
+    private final SdkBytes message;
+
+    private final String messageType;
+
+    private final SdkBytes signature;
+
+    private final String signingAlgorithm;
+
+    private final List<String> grantTokens;
+
+    private final Boolean dryRun;
+
+    private VerifyRequest(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.message = builder.message;
+        this.messageType = builder.messageType;
+        this.signature = builder.signature;
+        this.signingAlgorithm = builder.signingAlgorithm;
+        this.grantTokens = builder.grantTokens;
+        this.dryRun = builder.dryRun;
+    }
+
+    /**
+     * <p>
+     * Identifies the asymmetric KMS key that will be used to verify the signature. This must be the same KMS key that
+     * was used to generate the signature. If you specify a different KMS key, the signature verification fails.
+     * </p>
+     * <p>
+     * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
+     * <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
+     * or alias ARN.
+     * </p>
+     * <p>
+     * For example:
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias name: <code>alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
+     * alias ARN, use <a>ListAliases</a>.
+     * </p>
+     * 
+     * @return Identifies the asymmetric KMS key that will be used to verify the signature. This must be the same KMS
+     *         key that was used to generate the signature. If you specify a different KMS key, the signature
+     *         verification fails.</p>
+     *         <p>
+     *         To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
+     *         it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
+     *         use the key ARN or alias ARN.
+     *         </p>
+     *         <p>
+     *         For example:
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias name: <code>alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+     *         </p>
+     *         </li>
+     *         </ul>
+     *         <p>
+     *         To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
+     *         name and alias ARN, use <a>ListAliases</a>.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * Specifies the message that was signed. You can submit a raw message of up to 4096 bytes, or a hash digest of the
+     * message. If you submit a digest, use the <code>MessageType</code> parameter with a value of <code>DIGEST</code>.
+     * </p>
+     * <p>
+     * If the message specified here is different from the message that was signed, the signature verification fails. A
+     * message and its hash digest are considered to be the same message.
+     * </p>
+     * 
+     * @return Specifies the message that was signed. You can submit a raw message of up to 4096 bytes, or a hash digest
+     *         of the message. If you submit a digest, use the <code>MessageType</code> parameter with a value of
+     *         <code>DIGEST</code>.</p>
+     *         <p>
+     *         If the message specified here is different from the message that was signed, the signature verification
+     *         fails. A message and its hash digest are considered to be the same message.
+     */
+    public final SdkBytes message() {
+        return message;
+    }
+
+    /**
+     * <p>
+     * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+     * already hashed.
+     * </p>
+     * <p>
+     * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm, which
+     * begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the signing
+     * algorithm.
+     * </p>
+     * <important>
+     * <p>
+     * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message digest.
+     * If you use the <code>DIGEST</code> value with an unhashed message, the security of the verification operation can
+     * be compromised.
+     * </p>
+     * </important>
+     * <p>
+     * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code> value
+     * must match the length of hashed messages for the specified signing algorithm.
+     * </p>
+     * <p>
+     * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the digest
+     * is hashed again while signing. However, if the signed message is hashed once while signing, but twice while
+     * verifying, verification fails, even when the message hasn't changed.
+     * </p>
+     * <p>
+     * The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code> value.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #messageType} will
+     * return {@link MessageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #messageTypeAsString}.
+     * </p>
+     * 
+     * @return Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     *         algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which
+     *         are already hashed.</p>
+     *         <p>
+     *         When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+     *         which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in
+     *         the signing algorithm.
+     *         </p>
+     *         <important>
+     *         <p>
+     *         Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+     *         digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the
+     *         verification operation can be compromised.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+     *         value must match the length of hashed messages for the specified signing algorithm.
+     *         </p>
+     *         <p>
+     *         You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+     *         digest is hashed again while signing. However, if the signed message is hashed once while signing, but
+     *         twice while verifying, verification fails, even when the message hasn't changed.
+     *         </p>
+     *         <p>
+     *         The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code>
+     *         value.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     *         >Offline verification with SM2 key pairs</a>.
+     *         </p>
+     *         </li>
+     * @see MessageType
+     */
+    public final MessageType messageType() {
+        return MessageType.fromValue(messageType);
+    }
+
+    /**
+     * <p>
+     * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+     * already hashed.
+     * </p>
+     * <p>
+     * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm, which
+     * begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the signing
+     * algorithm.
+     * </p>
+     * <important>
+     * <p>
+     * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message digest.
+     * If you use the <code>DIGEST</code> value with an unhashed message, the security of the verification operation can
+     * be compromised.
+     * </p>
+     * </important>
+     * <p>
+     * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code> value
+     * must match the length of hashed messages for the specified signing algorithm.
+     * </p>
+     * <p>
+     * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the digest
+     * is hashed again while signing. However, if the signed message is hashed once while signing, but twice while
+     * verifying, verification fails, even when the message hasn't changed.
+     * </p>
+     * <p>
+     * The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code> value.
+     * </p>
+     * <ul>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     * </p>
+     * </li>
+     * <li>
+     * <p>
+     * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     * >Offline verification with SM2 key pairs</a>.
+     * </p>
+     * </li>
+     * </ul>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #messageType} will
+     * return {@link MessageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
+     * {@link #messageTypeAsString}.
+     * </p>
+     * 
+     * @return Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+     *         algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which
+     *         are already hashed.</p>
+     *         <p>
+     *         When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+     *         which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in
+     *         the signing algorithm.
+     *         </p>
+     *         <important>
+     *         <p>
+     *         Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+     *         digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the
+     *         verification operation can be compromised.
+     *         </p>
+     *         </important>
+     *         <p>
+     *         When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+     *         value must match the length of hashed messages for the specified signing algorithm.
+     *         </p>
+     *         <p>
+     *         You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+     *         digest is hashed again while signing. However, if the signed message is hashed once while signing, but
+     *         twice while verifying, verification fails, even when the message hasn't changed.
+     *         </p>
+     *         <p>
+     *         The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code>
+     *         value.
+     *         </p>
+     *         <ul>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+     *         </p>
+     *         </li>
+     *         <li>
+     *         <p>
+     *         SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+     *         >Offline verification with SM2 key pairs</a>.
+     *         </p>
+     *         </li>
+     * @see MessageType
+     */
+    public final String messageTypeAsString() {
+        return messageType;
+    }
+
+    /**
+     * <p>
+     * The signature that the <code>Sign</code> operation generated.
+     * </p>
+     * 
+     * @return The signature that the <code>Sign</code> operation generated.
+     */
+    public final SdkBytes signature() {
+        return signature;
+    }
+
+    /**
+     * <p>
+     * The signing algorithm that was used to sign the message. If you submit a different algorithm, the signature
+     * verification fails.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The signing algorithm that was used to sign the message. If you submit a different algorithm, the
+     *         signature verification fails.
+     * @see SigningAlgorithmSpec
+     */
+    public final SigningAlgorithmSpec signingAlgorithm() {
+        return SigningAlgorithmSpec.fromValue(signingAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The signing algorithm that was used to sign the message. If you submit a different algorithm, the signature
+     * verification fails.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The signing algorithm that was used to sign the message. If you submit a different algorithm, the
+     *         signature verification fails.
+     * @see SigningAlgorithmSpec
+     */
+    public final String signingAlgorithmAsString() {
+        return signingAlgorithm;
+    }
+
+    /**
+     * For responses, this returns true if the service returned a value for the GrantTokens property. This DOES NOT
+     * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
+     * This is useful because the SDK will never return a null collection or map, but you may need to differentiate
+     * between the service returning nothing (or null) and the service returning an empty collection or map. For
+     * requests, this returns true if a value for the property was specified in the request builder, and false if a
+     * value was not specified.
+     */
+    public final boolean hasGrantTokens() {
+        return grantTokens != null && !(grantTokens instanceof SdkAutoConstructList);
+    }
+
+    /**
+     * <p>
+     * A list of grant tokens.
+     * </p>
+     * <p>
+     * Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved
+     * <i>eventual consistency</i>. For more information, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant
+     * token</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * <p>
+     * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
+     * </p>
+     * <p>
+     * This method will never return null. If you would like to know whether the service returned this field (so that
+     * you can differentiate between null and empty), you can use the {@link #hasGrantTokens} method.
+     * </p>
+     * 
+     * @return A list of grant tokens.</p>
+     *         <p>
+     *         Use a grant token when your permission to call this operation comes from a new grant that has not yet
+     *         achieved <i>eventual consistency</i>. For more information, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and
+     *         <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+     *         a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final List<String> grantTokens() {
+        return grantTokens;
+    }
+
+    /**
+     * <p>
+     * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+     * </p>
+     * <p>
+     * To learn more about how to use this parameter, see <a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     * calls</a> in the <i>Key Management Service Developer Guide</i>.
+     * </p>
+     * 
+     * @return Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+     *         <p>
+     *         To learn more about how to use this parameter, see <a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+     *         calls</a> in the <i>Key Management Service Developer Guide</i>.
+     */
+    public final Boolean dryRun() {
+        return dryRun;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(message());
+        hashCode = 31 * hashCode + Objects.hashCode(messageTypeAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(signature());
+        hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithmAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(hasGrantTokens() ? grantTokens() : null);
+        hashCode = 31 * hashCode + Objects.hashCode(dryRun());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof VerifyRequest)) {
+            return false;
+        }
+        VerifyRequest other = (VerifyRequest) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(message(), other.message())
+                && Objects.equals(messageTypeAsString(), other.messageTypeAsString())
+                && Objects.equals(signature(), other.signature())
+                && Objects.equals(signingAlgorithmAsString(), other.signingAlgorithmAsString())
+                && hasGrantTokens() == other.hasGrantTokens() && Objects.equals(grantTokens(), other.grantTokens())
+                && Objects.equals(dryRun(), other.dryRun());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("VerifyRequest").add("KeyId", keyId())
+                .add("Message", message() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("MessageType", messageTypeAsString()).add("Signature", signature())
+                .add("SigningAlgorithm", signingAlgorithmAsString()).add("GrantTokens", hasGrantTokens() ? grantTokens() : null)
+                .add("DryRun", dryRun()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "Message":
+            return Optional.ofNullable(clazz.cast(message()));
+        case "MessageType":
+            return Optional.ofNullable(clazz.cast(messageTypeAsString()));
+        case "Signature":
+            return Optional.ofNullable(clazz.cast(signature()));
+        case "SigningAlgorithm":
+            return Optional.ofNullable(clazz.cast(signingAlgorithmAsString()));
+        case "GrantTokens":
+            return Optional.ofNullable(clazz.cast(grantTokens()));
+        case "DryRun":
+            return Optional.ofNullable(clazz.cast(dryRun()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<VerifyRequest, T> g) {
+        return obj -> g.apply((VerifyRequest) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<Builder, VerifyRequest> {
+        /**
+         * <p>
+         * Identifies the asymmetric KMS key that will be used to verify the signature. This must be the same KMS key
+         * that was used to generate the signature. If you specify a different KMS key, the signature verification
+         * fails.
+         * </p>
+         * <p>
+         * To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it
+         * with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the
+         * key ARN or alias ARN.
+         * </p>
+         * <p>
+         * For example:
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias name: <code>alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         * </p>
+         * </li>
+         * </ul>
+         * <p>
+         * To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name
+         * and alias ARN, use <a>ListAliases</a>.
+         * </p>
+         * 
+         * @param keyId
+         *        Identifies the asymmetric KMS key that will be used to verify the signature. This must be the same KMS
+         *        key that was used to generate the signature. If you specify a different KMS key, the signature
+         *        verification fails.</p>
+         *        <p>
+         *        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name,
+         *        prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account,
+         *        you must use the key ARN or alias ARN.
+         *        </p>
+         *        <p>
+         *        For example:
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias name: <code>alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
+         *        </p>
+         *        </li>
+         *        </ul>
+         *        <p>
+         *        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the
+         *        alias name and alias ARN, use <a>ListAliases</a>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * Specifies the message that was signed. You can submit a raw message of up to 4096 bytes, or a hash digest of
+         * the message. If you submit a digest, use the <code>MessageType</code> parameter with a value of
+         * <code>DIGEST</code>.
+         * </p>
+         * <p>
+         * If the message specified here is different from the message that was signed, the signature verification
+         * fails. A message and its hash digest are considered to be the same message.
+         * </p>
+         * 
+         * @param message
+         *        Specifies the message that was signed. You can submit a raw message of up to 4096 bytes, or a hash
+         *        digest of the message. If you submit a digest, use the <code>MessageType</code> parameter with a value
+         *        of <code>DIGEST</code>.</p>
+         *        <p>
+         *        If the message specified here is different from the message that was signed, the signature
+         *        verification fails. A message and its hash digest are considered to be the same message.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder message(SdkBytes message);
+
+        /**
+         * <p>
+         * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+         * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+         * already hashed.
+         * </p>
+         * <p>
+         * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+         * which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the
+         * signing algorithm.
+         * </p>
+         * <important>
+         * <p>
+         * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+         * digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the verification
+         * operation can be compromised.
+         * </p>
+         * </important>
+         * <p>
+         * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+         * value must match the length of hashed messages for the specified signing algorithm.
+         * </p>
+         * <p>
+         * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+         * digest is hashed again while signing. However, if the signed message is hashed once while signing, but twice
+         * while verifying, verification fails, even when the message hasn't changed.
+         * </p>
+         * <p>
+         * The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code> value.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         * >Offline verification with SM2 key pairs</a>.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param messageType
+         *        Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the
+         *        signing algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message
+         *        digests, which are already hashed.</p>
+         *        <p>
+         *        When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing
+         *        algorithm, which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the
+         *        hashing step in the signing algorithm.
+         *        </p>
+         *        <important>
+         *        <p>
+         *        Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a
+         *        message digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the
+         *        verification operation can be compromised.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the
+         *        <code>Message</code> value must match the length of hashed messages for the specified signing
+         *        algorithm.
+         *        </p>
+         *        <p>
+         *        You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so
+         *        the digest is hashed again while signing. However, if the signed message is hashed once while signing,
+         *        but twice while verifying, verification fails, even when the message hasn't changed.
+         *        </p>
+         *        <p>
+         *        The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code>
+         *        value.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         *        >Offline verification with SM2 key pairs</a>.
+         *        </p>
+         *        </li>
+         * @see MessageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MessageType
+         */
+        Builder messageType(String messageType);
+
+        /**
+         * <p>
+         * Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the signing
+         * algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message digests, which are
+         * already hashed.
+         * </p>
+         * <p>
+         * When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing algorithm,
+         * which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the hashing step in the
+         * signing algorithm.
+         * </p>
+         * <important>
+         * <p>
+         * Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a message
+         * digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the verification
+         * operation can be compromised.
+         * </p>
+         * </important>
+         * <p>
+         * When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the <code>Message</code>
+         * value must match the length of hashed messages for the specified signing algorithm.
+         * </p>
+         * <p>
+         * You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so the
+         * digest is hashed again while signing. However, if the signed message is hashed once while signing, but twice
+         * while verifying, verification fails, even when the message hasn't changed.
+         * </p>
+         * <p>
+         * The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code> value.
+         * </p>
+         * <ul>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         * </p>
+         * </li>
+         * <li>
+         * <p>
+         * SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         * "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         * >Offline verification with SM2 key pairs</a>.
+         * </p>
+         * </li>
+         * </ul>
+         * 
+         * @param messageType
+         *        Tells KMS whether the value of the <code>Message</code> parameter should be hashed as part of the
+         *        signing algorithm. Use <code>RAW</code> for unhashed messages; use <code>DIGEST</code> for message
+         *        digests, which are already hashed.</p>
+         *        <p>
+         *        When the value of <code>MessageType</code> is <code>RAW</code>, KMS uses the standard signing
+         *        algorithm, which begins with a hash function. When the value is <code>DIGEST</code>, KMS skips the
+         *        hashing step in the signing algorithm.
+         *        </p>
+         *        <important>
+         *        <p>
+         *        Use the <code>DIGEST</code> value only when the value of the <code>Message</code> parameter is a
+         *        message digest. If you use the <code>DIGEST</code> value with an unhashed message, the security of the
+         *        verification operation can be compromised.
+         *        </p>
+         *        </important>
+         *        <p>
+         *        When the value of <code>MessageType</code>is <code>DIGEST</code>, the length of the
+         *        <code>Message</code> value must match the length of hashed messages for the specified signing
+         *        algorithm.
+         *        </p>
+         *        <p>
+         *        You can submit a message digest and omit the <code>MessageType</code> or specify <code>RAW</code> so
+         *        the digest is hashed again while signing. However, if the signed message is hashed once while signing,
+         *        but twice while verifying, verification fails, even when the message hasn't changed.
+         *        </p>
+         *        <p>
+         *        The hashing algorithm in that <code>Verify</code> uses is based on the <code>SigningAlgorithm</code>
+         *        value.
+         *        </p>
+         *        <ul>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
+         *        </p>
+         *        </li>
+         *        <li>
+         *        <p>
+         *        SM2DSA uses the SM3 hashing algorithm. For details, see <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-sm-offline-verification"
+         *        >Offline verification with SM2 key pairs</a>.
+         *        </p>
+         *        </li>
+         * @see MessageType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see MessageType
+         */
+        Builder messageType(MessageType messageType);
+
+        /**
+         * <p>
+         * The signature that the <code>Sign</code> operation generated.
+         * </p>
+         * 
+         * @param signature
+         *        The signature that the <code>Sign</code> operation generated.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signature(SdkBytes signature);
+
+        /**
+         * <p>
+         * The signing algorithm that was used to sign the message. If you submit a different algorithm, the signature
+         * verification fails.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        The signing algorithm that was used to sign the message. If you submit a different algorithm, the
+         *        signature verification fails.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(String signingAlgorithm);
+
+        /**
+         * <p>
+         * The signing algorithm that was used to sign the message. If you submit a different algorithm, the signature
+         * verification fails.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        The signing algorithm that was used to sign the message. If you submit a different algorithm, the
+         *        signature verification fails.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(Collection<String> grantTokens);
+
+        /**
+         * <p>
+         * A list of grant tokens.
+         * </p>
+         * <p>
+         * Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         * achieved <i>eventual consistency</i>. For more information, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a
+         * grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param grantTokens
+         *        A list of grant tokens.</p>
+         *        <p>
+         *        Use a grant token when your permission to call this operation comes from a new grant that has not yet
+         *        achieved <i>eventual consistency</i>. For more information, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a>
+         *        and <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using
+         *        a grant token</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder grantTokens(String... grantTokens);
+
+        /**
+         * <p>
+         * Checks if your request will succeed. <code>DryRun</code> is an optional parameter.
+         * </p>
+         * <p>
+         * To learn more about how to use this parameter, see <a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS API
+         * calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * </p>
+         * 
+         * @param dryRun
+         *        Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
+         *        <p>
+         *        To learn more about how to use this parameter, see <a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-dryrun.html">Testing your KMS
+         *        API calls</a> in the <i>Key Management Service Developer Guide</i>.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder dryRun(Boolean dryRun);
+
+        @Override
+        Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
+
+        @Override
+        Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer);
+    }
+
+    static final class BuilderImpl extends KmsRequest.BuilderImpl implements Builder {
+        private String keyId;
+
+        private SdkBytes message;
+
+        private String messageType;
+
+        private SdkBytes signature;
+
+        private String signingAlgorithm;
+
+        private List<String> grantTokens = DefaultSdkAutoConstructList.getInstance();
+
+        private Boolean dryRun;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(VerifyRequest model) {
+            super(model);
+            keyId(model.keyId);
+            message(model.message);
+            messageType(model.messageType);
+            signature(model.signature);
+            signingAlgorithm(model.signingAlgorithm);
+            grantTokens(model.grantTokens);
+            dryRun(model.dryRun);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final ByteBuffer getMessage() {
+            return message == null ? null : message.asByteBuffer();
+        }
+
+        public final void setMessage(ByteBuffer message) {
+            message(message == null ? null : SdkBytes.fromByteBuffer(message));
+        }
+
+        @Override
+        public final Builder message(SdkBytes message) {
+            this.message = message;
+            return this;
+        }
+
+        public final String getMessageType() {
+            return messageType;
+        }
+
+        public final void setMessageType(String messageType) {
+            this.messageType = messageType;
+        }
+
+        @Override
+        public final Builder messageType(String messageType) {
+            this.messageType = messageType;
+            return this;
+        }
+
+        @Override
+        public final Builder messageType(MessageType messageType) {
+            this.messageType(messageType == null ? null : messageType.toString());
+            return this;
+        }
+
+        public final ByteBuffer getSignature() {
+            return signature == null ? null : signature.asByteBuffer();
+        }
+
+        public final void setSignature(ByteBuffer signature) {
+            signature(signature == null ? null : SdkBytes.fromByteBuffer(signature));
+        }
+
+        @Override
+        public final Builder signature(SdkBytes signature) {
+            this.signature = signature;
+            return this;
+        }
+
+        public final String getSigningAlgorithm() {
+            return signingAlgorithm;
+        }
+
+        public final void setSigningAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm) {
+            this.signingAlgorithm(signingAlgorithm == null ? null : signingAlgorithm.toString());
+            return this;
+        }
+
+        public final Collection<String> getGrantTokens() {
+            if (grantTokens instanceof SdkAutoConstructList) {
+                return null;
+            }
+            return grantTokens;
+        }
+
+        public final void setGrantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+        }
+
+        @Override
+        public final Builder grantTokens(Collection<String> grantTokens) {
+            this.grantTokens = GrantTokenListCopier.copy(grantTokens);
+            return this;
+        }
+
+        @Override
+        @SafeVarargs
+        public final Builder grantTokens(String... grantTokens) {
+            grantTokens(Arrays.asList(grantTokens));
+            return this;
+        }
+
+        public final Boolean getDryRun() {
+            return dryRun;
+        }
+
+        public final void setDryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+        }
+
+        @Override
+        public final Builder dryRun(Boolean dryRun) {
+            this.dryRun = dryRun;
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
+            super.overrideConfiguration(overrideConfiguration);
+            return this;
+        }
+
+        @Override
+        public Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) {
+            super.overrideConfiguration(builderConsumer);
+            return this;
+        }
+
+        @Override
+        public VerifyRequest build() {
+            return new VerifyRequest(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyResponse.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyResponse.java
new file mode 100644
index 0000000..5b204f2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/VerifyResponse.java
@@ -0,0 +1,347 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class VerifyResponse extends KmsResponse implements ToCopyableBuilder<VerifyResponse.Builder, VerifyResponse> {
+    private static final SdkField<String> KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("KeyId")
+            .getter(getter(VerifyResponse::keyId)).setter(setter(Builder::keyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyId").build()).build();
+
+    private static final SdkField<Boolean> SIGNATURE_VALID_FIELD = SdkField.<Boolean> builder(MarshallingType.BOOLEAN)
+            .memberName("SignatureValid").getter(getter(VerifyResponse::signatureValid)).setter(setter(Builder::signatureValid))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SignatureValid").build()).build();
+
+    private static final SdkField<String> SIGNING_ALGORITHM_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("SigningAlgorithm").getter(getter(VerifyResponse::signingAlgorithmAsString))
+            .setter(setter(Builder::signingAlgorithm))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningAlgorithm").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(KEY_ID_FIELD,
+            SIGNATURE_VALID_FIELD, SIGNING_ALGORITHM_FIELD));
+
+    private final String keyId;
+
+    private final Boolean signatureValid;
+
+    private final String signingAlgorithm;
+
+    private VerifyResponse(BuilderImpl builder) {
+        super(builder);
+        this.keyId = builder.keyId;
+        this.signatureValid = builder.signatureValid;
+        this.signingAlgorithm = builder.signingAlgorithm;
+    }
+
+    /**
+     * <p>
+     * The Amazon Resource Name (<a
+     * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+     * asymmetric KMS key that was used to verify the signature.
+     * </p>
+     * 
+     * @return The Amazon Resource Name (<a
+     *         href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of
+     *         the asymmetric KMS key that was used to verify the signature.
+     */
+    public final String keyId() {
+        return keyId;
+    }
+
+    /**
+     * <p>
+     * A Boolean value that indicates whether the signature was verified. A value of <code>True</code> indicates that
+     * the <code>Signature</code> was produced by signing the <code>Message</code> with the specified <code>KeyID</code>
+     * and <code>SigningAlgorithm.</code> If the signature is not verified, the <code>Verify</code> operation fails with
+     * a <code>KMSInvalidSignatureException</code> exception.
+     * </p>
+     * 
+     * @return A Boolean value that indicates whether the signature was verified. A value of <code>True</code> indicates
+     *         that the <code>Signature</code> was produced by signing the <code>Message</code> with the specified
+     *         <code>KeyID</code> and <code>SigningAlgorithm.</code> If the signature is not verified, the
+     *         <code>Verify</code> operation fails with a <code>KMSInvalidSignatureException</code> exception.
+     */
+    public final Boolean signatureValid() {
+        return signatureValid;
+    }
+
+    /**
+     * <p>
+     * The signing algorithm that was used to verify the signature.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The signing algorithm that was used to verify the signature.
+     * @see SigningAlgorithmSpec
+     */
+    public final SigningAlgorithmSpec signingAlgorithm() {
+        return SigningAlgorithmSpec.fromValue(signingAlgorithm);
+    }
+
+    /**
+     * <p>
+     * The signing algorithm that was used to verify the signature.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #signingAlgorithm}
+     * will return {@link SigningAlgorithmSpec#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #signingAlgorithmAsString}.
+     * </p>
+     * 
+     * @return The signing algorithm that was used to verify the signature.
+     * @see SigningAlgorithmSpec
+     */
+    public final String signingAlgorithmAsString() {
+        return signingAlgorithm;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + super.hashCode();
+        hashCode = 31 * hashCode + Objects.hashCode(keyId());
+        hashCode = 31 * hashCode + Objects.hashCode(signatureValid());
+        hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithmAsString());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return super.equals(obj) && equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof VerifyResponse)) {
+            return false;
+        }
+        VerifyResponse other = (VerifyResponse) obj;
+        return Objects.equals(keyId(), other.keyId()) && Objects.equals(signatureValid(), other.signatureValid())
+                && Objects.equals(signingAlgorithmAsString(), other.signingAlgorithmAsString());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("VerifyResponse").add("KeyId", keyId()).add("SignatureValid", signatureValid())
+                .add("SigningAlgorithm", signingAlgorithmAsString()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "KeyId":
+            return Optional.ofNullable(clazz.cast(keyId()));
+        case "SignatureValid":
+            return Optional.ofNullable(clazz.cast(signatureValid()));
+        case "SigningAlgorithm":
+            return Optional.ofNullable(clazz.cast(signingAlgorithmAsString()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<VerifyResponse, T> g) {
+        return obj -> g.apply((VerifyResponse) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<Builder, VerifyResponse> {
+        /**
+         * <p>
+         * The Amazon Resource Name (<a
+         * href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>) of the
+         * asymmetric KMS key that was used to verify the signature.
+         * </p>
+         * 
+         * @param keyId
+         *        The Amazon Resource Name (<a
+         *        href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">key ARN</a>)
+         *        of the asymmetric KMS key that was used to verify the signature.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder keyId(String keyId);
+
+        /**
+         * <p>
+         * A Boolean value that indicates whether the signature was verified. A value of <code>True</code> indicates
+         * that the <code>Signature</code> was produced by signing the <code>Message</code> with the specified
+         * <code>KeyID</code> and <code>SigningAlgorithm.</code> If the signature is not verified, the
+         * <code>Verify</code> operation fails with a <code>KMSInvalidSignatureException</code> exception.
+         * </p>
+         * 
+         * @param signatureValid
+         *        A Boolean value that indicates whether the signature was verified. A value of <code>True</code>
+         *        indicates that the <code>Signature</code> was produced by signing the <code>Message</code> with the
+         *        specified <code>KeyID</code> and <code>SigningAlgorithm.</code> If the signature is not verified, the
+         *        <code>Verify</code> operation fails with a <code>KMSInvalidSignatureException</code> exception.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder signatureValid(Boolean signatureValid);
+
+        /**
+         * <p>
+         * The signing algorithm that was used to verify the signature.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        The signing algorithm that was used to verify the signature.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(String signingAlgorithm);
+
+        /**
+         * <p>
+         * The signing algorithm that was used to verify the signature.
+         * </p>
+         * 
+         * @param signingAlgorithm
+         *        The signing algorithm that was used to verify the signature.
+         * @see SigningAlgorithmSpec
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see SigningAlgorithmSpec
+         */
+        Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm);
+    }
+
+    static final class BuilderImpl extends KmsResponse.BuilderImpl implements Builder {
+        private String keyId;
+
+        private Boolean signatureValid;
+
+        private String signingAlgorithm;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(VerifyResponse model) {
+            super(model);
+            keyId(model.keyId);
+            signatureValid(model.signatureValid);
+            signingAlgorithm(model.signingAlgorithm);
+        }
+
+        public final String getKeyId() {
+            return keyId;
+        }
+
+        public final void setKeyId(String keyId) {
+            this.keyId = keyId;
+        }
+
+        @Override
+        public final Builder keyId(String keyId) {
+            this.keyId = keyId;
+            return this;
+        }
+
+        public final Boolean getSignatureValid() {
+            return signatureValid;
+        }
+
+        public final void setSignatureValid(Boolean signatureValid) {
+            this.signatureValid = signatureValid;
+        }
+
+        @Override
+        public final Builder signatureValid(Boolean signatureValid) {
+            this.signatureValid = signatureValid;
+            return this;
+        }
+
+        public final String getSigningAlgorithm() {
+            return signingAlgorithm;
+        }
+
+        public final void setSigningAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(String signingAlgorithm) {
+            this.signingAlgorithm = signingAlgorithm;
+            return this;
+        }
+
+        @Override
+        public final Builder signingAlgorithm(SigningAlgorithmSpec signingAlgorithm) {
+            this.signingAlgorithm(signingAlgorithm == null ? null : signingAlgorithm.toString());
+            return this;
+        }
+
+        @Override
+        public VerifyResponse build() {
+            return new VerifyResponse(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/WrappingKeySpec.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/WrappingKeySpec.java
new file mode 100644
index 0000000..8e22bd4
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/WrappingKeySpec.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum WrappingKeySpec {
+    RSA_2048("RSA_2048"),
+
+    RSA_3072("RSA_3072"),
+
+    RSA_4096("RSA_4096"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, WrappingKeySpec> VALUE_MAP = EnumUtils.uniqueIndex(WrappingKeySpec.class,
+            WrappingKeySpec::toString);
+
+    private final String value;
+
+    private WrappingKeySpec(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return WrappingKeySpec corresponding to the value
+     */
+    public static WrappingKeySpec fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link WrappingKeySpec}s
+     */
+    public static Set<WrappingKeySpec> knownValues() {
+        Set<WrappingKeySpec> knownValues = EnumSet.allOf(WrappingKeySpec.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyAlreadyInUseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyAlreadyInUseException.java
new file mode 100644
index 0000000..d0f5936
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyAlreadyInUseException.java
@@ -0,0 +1,135 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the (<code>XksKeyId</code>) is already associated with another KMS key in this
+ * external key store. Each KMS key in an external key store must be associated with a different external key.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksKeyAlreadyInUseException extends KmsException implements
+        ToCopyableBuilder<XksKeyAlreadyInUseException.Builder, XksKeyAlreadyInUseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksKeyAlreadyInUseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksKeyAlreadyInUseException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksKeyAlreadyInUseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksKeyAlreadyInUseException build() {
+            return new XksKeyAlreadyInUseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyConfigurationType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyConfigurationType.java
new file mode 100644
index 0000000..5c7e23e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyConfigurationType.java
@@ -0,0 +1,202 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Information about the <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key">external key
+ * </a>that is associated with a KMS key in an external key store.
+ * </p>
+ * <p>
+ * This element appears in a <a>CreateKey</a> or <a>DescribeKey</a> response only for a KMS key in an external key
+ * store.
+ * </p>
+ * <p>
+ * The <i>external key</i> is a symmetric encryption key that is hosted by an external key manager outside of Amazon Web
+ * Services. When you use the KMS key in an external key store in a cryptographic operation, the cryptographic operation
+ * is performed in the external key manager using the specified external key. For more information, see <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key">External
+ * key</a> in the <i>Key Management Service Developer Guide</i>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksKeyConfigurationType implements SdkPojo, Serializable,
+        ToCopyableBuilder<XksKeyConfigurationType.Builder, XksKeyConfigurationType> {
+    private static final SdkField<String> ID_FIELD = SdkField.<String> builder(MarshallingType.STRING).memberName("Id")
+            .getter(getter(XksKeyConfigurationType::id)).setter(setter(Builder::id))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Id").build()).build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ID_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String id;
+
+    private XksKeyConfigurationType(BuilderImpl builder) {
+        this.id = builder.id;
+    }
+
+    /**
+     * <p>
+     * The ID of the external key in its external key manager. This is the ID that the external key store proxy uses to
+     * identify the external key.
+     * </p>
+     * 
+     * @return The ID of the external key in its external key manager. This is the ID that the external key store proxy
+     *         uses to identify the external key.
+     */
+    public final String id() {
+        return id;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(id());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof XksKeyConfigurationType)) {
+            return false;
+        }
+        XksKeyConfigurationType other = (XksKeyConfigurationType) obj;
+        return Objects.equals(id(), other.id());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("XksKeyConfigurationType").add("Id", id()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Id":
+            return Optional.ofNullable(clazz.cast(id()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<XksKeyConfigurationType, T> g) {
+        return obj -> g.apply((XksKeyConfigurationType) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksKeyConfigurationType> {
+        /**
+         * <p>
+         * The ID of the external key in its external key manager. This is the ID that the external key store proxy uses
+         * to identify the external key.
+         * </p>
+         * 
+         * @param id
+         *        The ID of the external key in its external key manager. This is the ID that the external key store
+         *        proxy uses to identify the external key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder id(String id);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String id;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksKeyConfigurationType model) {
+            id(model.id);
+        }
+
+        public final String getId() {
+            return id;
+        }
+
+        public final void setId(String id) {
+            this.id = id;
+        }
+
+        @Override
+        public final Builder id(String id) {
+            this.id = id;
+            return this;
+        }
+
+        @Override
+        public XksKeyConfigurationType build() {
+            return new XksKeyConfigurationType(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyInvalidConfigurationException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyInvalidConfigurationException.java
new file mode 100644
index 0000000..c82dcb9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyInvalidConfigurationException.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the external key specified by the <code>XksKeyId</code> parameter did not meet the
+ * configuration requirements for an external key store.
+ * </p>
+ * <p>
+ * The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksKeyInvalidConfigurationException extends KmsException implements
+        ToCopyableBuilder<XksKeyInvalidConfigurationException.Builder, XksKeyInvalidConfigurationException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksKeyInvalidConfigurationException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksKeyInvalidConfigurationException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksKeyInvalidConfigurationException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksKeyInvalidConfigurationException build() {
+            return new XksKeyInvalidConfigurationException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyNotFoundException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyNotFoundException.java
new file mode 100644
index 0000000..5f52748
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksKeyNotFoundException.java
@@ -0,0 +1,141 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the external key store proxy could not find the external key. This exception is
+ * thrown when the value of the <code>XksKeyId</code> parameter doesn't identify a key in the external key manager
+ * associated with the external key proxy.
+ * </p>
+ * <p>
+ * Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key identifier
+ * that the external key store proxy uses to identify the key. For details, see the documentation provided with your
+ * external key store proxy or key manager.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksKeyNotFoundException extends KmsException implements
+        ToCopyableBuilder<XksKeyNotFoundException.Builder, XksKeyNotFoundException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksKeyNotFoundException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksKeyNotFoundException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksKeyNotFoundException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksKeyNotFoundException build() {
+            return new XksKeyNotFoundException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyAuthenticationCredentialType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyAuthenticationCredentialType.java
new file mode 100644
index 0000000..8881ccb
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyAuthenticationCredentialType.java
@@ -0,0 +1,245 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * KMS uses the authentication credential to sign requests that it sends to the external key store proxy (XKS proxy) on
+ * your behalf. You establish these credentials on your external key store proxy and report them to KMS.
+ * </p>
+ * <p>
+ * The <code>XksProxyAuthenticationCredential</code> includes two required elements.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyAuthenticationCredentialType implements SdkPojo, Serializable,
+        ToCopyableBuilder<XksProxyAuthenticationCredentialType.Builder, XksProxyAuthenticationCredentialType> {
+    private static final SdkField<String> ACCESS_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AccessKeyId").getter(getter(XksProxyAuthenticationCredentialType::accessKeyId))
+            .setter(setter(Builder::accessKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AccessKeyId").build()).build();
+
+    private static final SdkField<String> RAW_SECRET_ACCESS_KEY_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("RawSecretAccessKey").getter(getter(XksProxyAuthenticationCredentialType::rawSecretAccessKey))
+            .setter(setter(Builder::rawSecretAccessKey))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RawSecretAccessKey").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ACCESS_KEY_ID_FIELD,
+            RAW_SECRET_ACCESS_KEY_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String accessKeyId;
+
+    private final String rawSecretAccessKey;
+
+    private XksProxyAuthenticationCredentialType(BuilderImpl builder) {
+        this.accessKeyId = builder.accessKeyId;
+        this.rawSecretAccessKey = builder.rawSecretAccessKey;
+    }
+
+    /**
+     * <p>
+     * A unique identifier for the raw secret access key.
+     * </p>
+     * 
+     * @return A unique identifier for the raw secret access key.
+     */
+    public final String accessKeyId() {
+        return accessKeyId;
+    }
+
+    /**
+     * <p>
+     * A secret string of 43-64 characters. Valid characters are a-z, A-Z, 0-9, /, +, and =.
+     * </p>
+     * 
+     * @return A secret string of 43-64 characters. Valid characters are a-z, A-Z, 0-9, /, +, and =.
+     */
+    public final String rawSecretAccessKey() {
+        return rawSecretAccessKey;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(accessKeyId());
+        hashCode = 31 * hashCode + Objects.hashCode(rawSecretAccessKey());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof XksProxyAuthenticationCredentialType)) {
+            return false;
+        }
+        XksProxyAuthenticationCredentialType other = (XksProxyAuthenticationCredentialType) obj;
+        return Objects.equals(accessKeyId(), other.accessKeyId())
+                && Objects.equals(rawSecretAccessKey(), other.rawSecretAccessKey());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("XksProxyAuthenticationCredentialType")
+                .add("AccessKeyId", accessKeyId() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("RawSecretAccessKey", rawSecretAccessKey() == null ? null : "*** Sensitive Data Redacted ***").build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "AccessKeyId":
+            return Optional.ofNullable(clazz.cast(accessKeyId()));
+        case "RawSecretAccessKey":
+            return Optional.ofNullable(clazz.cast(rawSecretAccessKey()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<XksProxyAuthenticationCredentialType, T> g) {
+        return obj -> g.apply((XksProxyAuthenticationCredentialType) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyAuthenticationCredentialType> {
+        /**
+         * <p>
+         * A unique identifier for the raw secret access key.
+         * </p>
+         * 
+         * @param accessKeyId
+         *        A unique identifier for the raw secret access key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder accessKeyId(String accessKeyId);
+
+        /**
+         * <p>
+         * A secret string of 43-64 characters. Valid characters are a-z, A-Z, 0-9, /, +, and =.
+         * </p>
+         * 
+         * @param rawSecretAccessKey
+         *        A secret string of 43-64 characters. Valid characters are a-z, A-Z, 0-9, /, +, and =.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder rawSecretAccessKey(String rawSecretAccessKey);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String accessKeyId;
+
+        private String rawSecretAccessKey;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyAuthenticationCredentialType model) {
+            accessKeyId(model.accessKeyId);
+            rawSecretAccessKey(model.rawSecretAccessKey);
+        }
+
+        public final String getAccessKeyId() {
+            return accessKeyId;
+        }
+
+        public final void setAccessKeyId(String accessKeyId) {
+            this.accessKeyId = accessKeyId;
+        }
+
+        @Override
+        public final Builder accessKeyId(String accessKeyId) {
+            this.accessKeyId = accessKeyId;
+            return this;
+        }
+
+        public final String getRawSecretAccessKey() {
+            return rawSecretAccessKey;
+        }
+
+        public final void setRawSecretAccessKey(String rawSecretAccessKey) {
+            this.rawSecretAccessKey = rawSecretAccessKey;
+        }
+
+        @Override
+        public final Builder rawSecretAccessKey(String rawSecretAccessKey) {
+            this.rawSecretAccessKey = rawSecretAccessKey;
+            return this;
+        }
+
+        @Override
+        public XksProxyAuthenticationCredentialType build() {
+            return new XksProxyAuthenticationCredentialType(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyConfigurationType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyConfigurationType.java
new file mode 100644
index 0000000..58c4c9e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyConfigurationType.java
@@ -0,0 +1,487 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.core.protocol.MarshallLocation;
+import software.amazon.awssdk.core.protocol.MarshallingType;
+import software.amazon.awssdk.core.traits.LocationTrait;
+import software.amazon.awssdk.utils.ToString;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * Detailed information about the external key store proxy (XKS proxy). Your external key store proxy translates KMS
+ * requests into a format that your external key manager can understand. These fields appear in a
+ * <a>DescribeCustomKeyStores</a> response only when the <code>CustomKeyStoreType</code> is
+ * <code>EXTERNAL_KEY_STORE</code>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyConfigurationType implements SdkPojo, Serializable,
+        ToCopyableBuilder<XksProxyConfigurationType.Builder, XksProxyConfigurationType> {
+    private static final SdkField<String> CONNECTIVITY_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("Connectivity").getter(getter(XksProxyConfigurationType::connectivityAsString))
+            .setter(setter(Builder::connectivity))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Connectivity").build()).build();
+
+    private static final SdkField<String> ACCESS_KEY_ID_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("AccessKeyId").getter(getter(XksProxyConfigurationType::accessKeyId))
+            .setter(setter(Builder::accessKeyId))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AccessKeyId").build()).build();
+
+    private static final SdkField<String> URI_ENDPOINT_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("UriEndpoint").getter(getter(XksProxyConfigurationType::uriEndpoint))
+            .setter(setter(Builder::uriEndpoint))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UriEndpoint").build()).build();
+
+    private static final SdkField<String> URI_PATH_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("UriPath").getter(getter(XksProxyConfigurationType::uriPath)).setter(setter(Builder::uriPath))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UriPath").build()).build();
+
+    private static final SdkField<String> VPC_ENDPOINT_SERVICE_NAME_FIELD = SdkField.<String> builder(MarshallingType.STRING)
+            .memberName("VpcEndpointServiceName").getter(getter(XksProxyConfigurationType::vpcEndpointServiceName))
+            .setter(setter(Builder::vpcEndpointServiceName))
+            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("VpcEndpointServiceName").build())
+            .build();
+
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CONNECTIVITY_FIELD,
+            ACCESS_KEY_ID_FIELD, URI_ENDPOINT_FIELD, URI_PATH_FIELD, VPC_ENDPOINT_SERVICE_NAME_FIELD));
+
+    private static final long serialVersionUID = 1L;
+
+    private final String connectivity;
+
+    private final String accessKeyId;
+
+    private final String uriEndpoint;
+
+    private final String uriPath;
+
+    private final String vpcEndpointServiceName;
+
+    private XksProxyConfigurationType(BuilderImpl builder) {
+        this.connectivity = builder.connectivity;
+        this.accessKeyId = builder.accessKeyId;
+        this.uriEndpoint = builder.uriEndpoint;
+        this.uriPath = builder.uriPath;
+        this.vpcEndpointServiceName = builder.vpcEndpointServiceName;
+    }
+
+    /**
+     * <p>
+     * Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint service to
+     * communicate with KMS.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #connectivity} will
+     * return {@link XksProxyConnectivityType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #connectivityAsString}.
+     * </p>
+     * 
+     * @return Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint service
+     *         to communicate with KMS.
+     * @see XksProxyConnectivityType
+     */
+    public final XksProxyConnectivityType connectivity() {
+        return XksProxyConnectivityType.fromValue(connectivity);
+    }
+
+    /**
+     * <p>
+     * Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint service to
+     * communicate with KMS.
+     * </p>
+     * <p>
+     * If the service returns an enum value that is not available in the current SDK version, {@link #connectivity} will
+     * return {@link XksProxyConnectivityType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
+     * available from {@link #connectivityAsString}.
+     * </p>
+     * 
+     * @return Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint service
+     *         to communicate with KMS.
+     * @see XksProxyConnectivityType
+     */
+    public final String connectivityAsString() {
+        return connectivity;
+    }
+
+    /**
+     * <p>
+     * The part of the external key store <a href=
+     * "https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateCustomKeyStore.html#KMS-CreateCustomKeyStore-request-XksProxyAuthenticationCredential"
+     * >proxy authentication credential</a> that uniquely identifies the secret access key.
+     * </p>
+     * 
+     * @return The part of the external key store <a href=
+     *         "https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateCustomKeyStore.html#KMS-CreateCustomKeyStore-request-XksProxyAuthenticationCredential"
+     *         >proxy authentication credential</a> that uniquely identifies the secret access key.
+     */
+    public final String accessKeyId() {
+        return accessKeyId;
+    }
+
+    /**
+     * <p>
+     * The URI endpoint for the external key store proxy.
+     * </p>
+     * <p>
+     * If the external key store proxy has a public endpoint, it is displayed here.
+     * </p>
+     * <p>
+     * If the external key store proxy uses an Amazon VPC endpoint service name, this field displays the private DNS
+     * name associated with the VPC endpoint service.
+     * </p>
+     * 
+     * @return The URI endpoint for the external key store proxy.</p>
+     *         <p>
+     *         If the external key store proxy has a public endpoint, it is displayed here.
+     *         </p>
+     *         <p>
+     *         If the external key store proxy uses an Amazon VPC endpoint service name, this field displays the private
+     *         DNS name associated with the VPC endpoint service.
+     */
+    public final String uriEndpoint() {
+        return uriEndpoint;
+    }
+
+    /**
+     * <p>
+     * The path to the external key store proxy APIs.
+     * </p>
+     * 
+     * @return The path to the external key store proxy APIs.
+     */
+    public final String uriPath() {
+        return uriPath;
+    }
+
+    /**
+     * <p>
+     * The Amazon VPC endpoint service used to communicate with the external key store proxy. This field appears only
+     * when the external key store proxy uses an Amazon VPC endpoint service to communicate with KMS.
+     * </p>
+     * 
+     * @return The Amazon VPC endpoint service used to communicate with the external key store proxy. This field appears
+     *         only when the external key store proxy uses an Amazon VPC endpoint service to communicate with KMS.
+     */
+    public final String vpcEndpointServiceName() {
+        return vpcEndpointServiceName;
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final int hashCode() {
+        int hashCode = 1;
+        hashCode = 31 * hashCode + Objects.hashCode(connectivityAsString());
+        hashCode = 31 * hashCode + Objects.hashCode(accessKeyId());
+        hashCode = 31 * hashCode + Objects.hashCode(uriEndpoint());
+        hashCode = 31 * hashCode + Objects.hashCode(uriPath());
+        hashCode = 31 * hashCode + Objects.hashCode(vpcEndpointServiceName());
+        return hashCode;
+    }
+
+    @Override
+    public final boolean equals(Object obj) {
+        return equalsBySdkFields(obj);
+    }
+
+    @Override
+    public final boolean equalsBySdkFields(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof XksProxyConfigurationType)) {
+            return false;
+        }
+        XksProxyConfigurationType other = (XksProxyConfigurationType) obj;
+        return Objects.equals(connectivityAsString(), other.connectivityAsString())
+                && Objects.equals(accessKeyId(), other.accessKeyId()) && Objects.equals(uriEndpoint(), other.uriEndpoint())
+                && Objects.equals(uriPath(), other.uriPath())
+                && Objects.equals(vpcEndpointServiceName(), other.vpcEndpointServiceName());
+    }
+
+    /**
+     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
+     * redacted from this string using a placeholder value.
+     */
+    @Override
+    public final String toString() {
+        return ToString.builder("XksProxyConfigurationType").add("Connectivity", connectivityAsString())
+                .add("AccessKeyId", accessKeyId() == null ? null : "*** Sensitive Data Redacted ***")
+                .add("UriEndpoint", uriEndpoint()).add("UriPath", uriPath())
+                .add("VpcEndpointServiceName", vpcEndpointServiceName()).build();
+    }
+
+    public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
+        switch (fieldName) {
+        case "Connectivity":
+            return Optional.ofNullable(clazz.cast(connectivityAsString()));
+        case "AccessKeyId":
+            return Optional.ofNullable(clazz.cast(accessKeyId()));
+        case "UriEndpoint":
+            return Optional.ofNullable(clazz.cast(uriEndpoint()));
+        case "UriPath":
+            return Optional.ofNullable(clazz.cast(uriPath()));
+        case "VpcEndpointServiceName":
+            return Optional.ofNullable(clazz.cast(vpcEndpointServiceName()));
+        default:
+            return Optional.empty();
+        }
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    private static <T> Function<Object, T> getter(Function<XksProxyConfigurationType, T> g) {
+        return obj -> g.apply((XksProxyConfigurationType) obj);
+    }
+
+    private static <T> BiConsumer<Object, T> setter(BiConsumer<Builder, T> s) {
+        return (obj, val) -> s.accept((Builder) obj, val);
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyConfigurationType> {
+        /**
+         * <p>
+         * Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint service to
+         * communicate with KMS.
+         * </p>
+         * 
+         * @param connectivity
+         *        Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint
+         *        service to communicate with KMS.
+         * @see XksProxyConnectivityType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see XksProxyConnectivityType
+         */
+        Builder connectivity(String connectivity);
+
+        /**
+         * <p>
+         * Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint service to
+         * communicate with KMS.
+         * </p>
+         * 
+         * @param connectivity
+         *        Indicates whether the external key store proxy uses a public endpoint or an Amazon VPC endpoint
+         *        service to communicate with KMS.
+         * @see XksProxyConnectivityType
+         * @return Returns a reference to this object so that method calls can be chained together.
+         * @see XksProxyConnectivityType
+         */
+        Builder connectivity(XksProxyConnectivityType connectivity);
+
+        /**
+         * <p>
+         * The part of the external key store <a href=
+         * "https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateCustomKeyStore.html#KMS-CreateCustomKeyStore-request-XksProxyAuthenticationCredential"
+         * >proxy authentication credential</a> that uniquely identifies the secret access key.
+         * </p>
+         * 
+         * @param accessKeyId
+         *        The part of the external key store <a href=
+         *        "https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateCustomKeyStore.html#KMS-CreateCustomKeyStore-request-XksProxyAuthenticationCredential"
+         *        >proxy authentication credential</a> that uniquely identifies the secret access key.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder accessKeyId(String accessKeyId);
+
+        /**
+         * <p>
+         * The URI endpoint for the external key store proxy.
+         * </p>
+         * <p>
+         * If the external key store proxy has a public endpoint, it is displayed here.
+         * </p>
+         * <p>
+         * If the external key store proxy uses an Amazon VPC endpoint service name, this field displays the private DNS
+         * name associated with the VPC endpoint service.
+         * </p>
+         * 
+         * @param uriEndpoint
+         *        The URI endpoint for the external key store proxy.</p>
+         *        <p>
+         *        If the external key store proxy has a public endpoint, it is displayed here.
+         *        </p>
+         *        <p>
+         *        If the external key store proxy uses an Amazon VPC endpoint service name, this field displays the
+         *        private DNS name associated with the VPC endpoint service.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder uriEndpoint(String uriEndpoint);
+
+        /**
+         * <p>
+         * The path to the external key store proxy APIs.
+         * </p>
+         * 
+         * @param uriPath
+         *        The path to the external key store proxy APIs.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder uriPath(String uriPath);
+
+        /**
+         * <p>
+         * The Amazon VPC endpoint service used to communicate with the external key store proxy. This field appears
+         * only when the external key store proxy uses an Amazon VPC endpoint service to communicate with KMS.
+         * </p>
+         * 
+         * @param vpcEndpointServiceName
+         *        The Amazon VPC endpoint service used to communicate with the external key store proxy. This field
+         *        appears only when the external key store proxy uses an Amazon VPC endpoint service to communicate with
+         *        KMS.
+         * @return Returns a reference to this object so that method calls can be chained together.
+         */
+        Builder vpcEndpointServiceName(String vpcEndpointServiceName);
+    }
+
+    static final class BuilderImpl implements Builder {
+        private String connectivity;
+
+        private String accessKeyId;
+
+        private String uriEndpoint;
+
+        private String uriPath;
+
+        private String vpcEndpointServiceName;
+
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyConfigurationType model) {
+            connectivity(model.connectivity);
+            accessKeyId(model.accessKeyId);
+            uriEndpoint(model.uriEndpoint);
+            uriPath(model.uriPath);
+            vpcEndpointServiceName(model.vpcEndpointServiceName);
+        }
+
+        public final String getConnectivity() {
+            return connectivity;
+        }
+
+        public final void setConnectivity(String connectivity) {
+            this.connectivity = connectivity;
+        }
+
+        @Override
+        public final Builder connectivity(String connectivity) {
+            this.connectivity = connectivity;
+            return this;
+        }
+
+        @Override
+        public final Builder connectivity(XksProxyConnectivityType connectivity) {
+            this.connectivity(connectivity == null ? null : connectivity.toString());
+            return this;
+        }
+
+        public final String getAccessKeyId() {
+            return accessKeyId;
+        }
+
+        public final void setAccessKeyId(String accessKeyId) {
+            this.accessKeyId = accessKeyId;
+        }
+
+        @Override
+        public final Builder accessKeyId(String accessKeyId) {
+            this.accessKeyId = accessKeyId;
+            return this;
+        }
+
+        public final String getUriEndpoint() {
+            return uriEndpoint;
+        }
+
+        public final void setUriEndpoint(String uriEndpoint) {
+            this.uriEndpoint = uriEndpoint;
+        }
+
+        @Override
+        public final Builder uriEndpoint(String uriEndpoint) {
+            this.uriEndpoint = uriEndpoint;
+            return this;
+        }
+
+        public final String getUriPath() {
+            return uriPath;
+        }
+
+        public final void setUriPath(String uriPath) {
+            this.uriPath = uriPath;
+        }
+
+        @Override
+        public final Builder uriPath(String uriPath) {
+            this.uriPath = uriPath;
+            return this;
+        }
+
+        public final String getVpcEndpointServiceName() {
+            return vpcEndpointServiceName;
+        }
+
+        public final void setVpcEndpointServiceName(String vpcEndpointServiceName) {
+            this.vpcEndpointServiceName = vpcEndpointServiceName;
+        }
+
+        @Override
+        public final Builder vpcEndpointServiceName(String vpcEndpointServiceName) {
+            this.vpcEndpointServiceName = vpcEndpointServiceName;
+            return this;
+        }
+
+        @Override
+        public XksProxyConfigurationType build() {
+            return new XksProxyConfigurationType(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyConnectivityType.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyConnectivityType.java
new file mode 100644
index 0000000..8cfe428
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyConnectivityType.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.EnumSet;
+import java.util.Map;
+import java.util.Set;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.utils.internal.EnumUtils;
+
+@Generated("software.amazon.awssdk:codegen")
+public enum XksProxyConnectivityType {
+    PUBLIC_ENDPOINT("PUBLIC_ENDPOINT"),
+
+    VPC_ENDPOINT_SERVICE("VPC_ENDPOINT_SERVICE"),
+
+    UNKNOWN_TO_SDK_VERSION(null);
+
+    private static final Map<String, XksProxyConnectivityType> VALUE_MAP = EnumUtils.uniqueIndex(XksProxyConnectivityType.class,
+            XksProxyConnectivityType::toString);
+
+    private final String value;
+
+    private XksProxyConnectivityType(String value) {
+        this.value = value;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(value);
+    }
+
+    /**
+     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
+     *
+     * @param value
+     *        real value
+     * @return XksProxyConnectivityType corresponding to the value
+     */
+    public static XksProxyConnectivityType fromValue(String value) {
+        if (value == null) {
+            return null;
+        }
+        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
+    }
+
+    /**
+     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
+     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
+     *
+     * @return a {@link Set} of known {@link XksProxyConnectivityType}s
+     */
+    public static Set<XksProxyConnectivityType> knownValues() {
+        Set<XksProxyConnectivityType> knownValues = EnumSet.allOf(XksProxyConnectivityType.class);
+        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
+        return knownValues;
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyIncorrectAuthenticationCredentialException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyIncorrectAuthenticationCredentialException.java
new file mode 100644
index 0000000..23b2c2d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyIncorrectAuthenticationCredentialException.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the proxy credentials failed to authenticate to the specified external key store
+ * proxy. The specified external key store proxy rejected a status request from KMS due to invalid credentials. This can
+ * indicate an error in the credentials or in the identification of the external key store proxy.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyIncorrectAuthenticationCredentialException extends KmsException
+        implements
+        ToCopyableBuilder<XksProxyIncorrectAuthenticationCredentialException.Builder, XksProxyIncorrectAuthenticationCredentialException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyIncorrectAuthenticationCredentialException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyIncorrectAuthenticationCredentialException>,
+            KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyIncorrectAuthenticationCredentialException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyIncorrectAuthenticationCredentialException build() {
+            return new XksProxyIncorrectAuthenticationCredentialException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyInvalidConfigurationException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyInvalidConfigurationException.java
new file mode 100644
index 0000000..2603a243
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyInvalidConfigurationException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the external key store proxy is not configured correctly. To identify the cause, see
+ * the error message that accompanies the exception.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyInvalidConfigurationException extends KmsException implements
+        ToCopyableBuilder<XksProxyInvalidConfigurationException.Builder, XksProxyInvalidConfigurationException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyInvalidConfigurationException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyInvalidConfigurationException>,
+            KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyInvalidConfigurationException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyInvalidConfigurationException build() {
+            return new XksProxyInvalidConfigurationException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyInvalidResponseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyInvalidResponseException.java
new file mode 100644
index 0000000..5cffd02
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyInvalidResponseException.java
@@ -0,0 +1,137 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p/>
+ * <p>
+ * KMS cannot interpret the response it received from the external key store proxy. The problem might be a poorly
+ * constructed response, but it could also be a transient network issue. If you see this error repeatedly, report it to
+ * the proxy vendor.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyInvalidResponseException extends KmsException implements
+        ToCopyableBuilder<XksProxyInvalidResponseException.Builder, XksProxyInvalidResponseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyInvalidResponseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyInvalidResponseException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyInvalidResponseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyInvalidResponseException build() {
+            return new XksProxyInvalidResponseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriEndpointInUseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriEndpointInUseException.java
new file mode 100644
index 0000000..c09b926
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriEndpointInUseException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another external key
+ * store in this Amazon Web Services Region. To identify the cause, see the error message that accompanies the
+ * exception.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyUriEndpointInUseException extends KmsException implements
+        ToCopyableBuilder<XksProxyUriEndpointInUseException.Builder, XksProxyUriEndpointInUseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyUriEndpointInUseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyUriEndpointInUseException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyUriEndpointInUseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyUriEndpointInUseException build() {
+            return new XksProxyUriEndpointInUseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriInUseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriInUseException.java
new file mode 100644
index 0000000..3ec62d8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriInUseException.java
@@ -0,0 +1,136 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and
+ * <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web Services
+ * Region. Each external key store in a Region must use a unique external key store proxy API address.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyUriInUseException extends KmsException implements
+        ToCopyableBuilder<XksProxyUriInUseException.Builder, XksProxyUriInUseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyUriInUseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyUriInUseException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyUriInUseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyUriInUseException build() {
+            return new XksProxyUriInUseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriUnreachableException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriUnreachableException.java
new file mode 100644
index 0000000..3ca3223
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyUriUnreachableException.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you create the
+ * external key store or update its settings.
+ * </p>
+ * <p>
+ * This exception is also thrown when the external key store proxy response to a <code>GetHealthStatus</code> request
+ * indicates that all external key manager instances are unavailable.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyUriUnreachableException extends KmsException implements
+        ToCopyableBuilder<XksProxyUriUnreachableException.Builder, XksProxyUriUnreachableException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyUriUnreachableException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyUriUnreachableException>, KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyUriUnreachableException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyUriUnreachableException build() {
+            return new XksProxyUriUnreachableException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceInUseException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceInUseException.java
new file mode 100644
index 0000000..15144ff
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceInUseException.java
@@ -0,0 +1,137 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the specified Amazon VPC endpoint service is already associated with another
+ * external key store in this Amazon Web Services Region. Each external key store in a Region must use a different
+ * Amazon VPC endpoint service.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyVpcEndpointServiceInUseException extends KmsException implements
+        ToCopyableBuilder<XksProxyVpcEndpointServiceInUseException.Builder, XksProxyVpcEndpointServiceInUseException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyVpcEndpointServiceInUseException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyVpcEndpointServiceInUseException>,
+            KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyVpcEndpointServiceInUseException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyVpcEndpointServiceInUseException build() {
+            return new XksProxyVpcEndpointServiceInUseException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceInvalidConfigurationException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceInvalidConfigurationException.java
new file mode 100644
index 0000000..c93fa00
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceInvalidConfigurationException.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for
+ * an external key store. To identify the cause, see the error message that accompanies the exception and <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements">review the
+ * requirements</a> for Amazon VPC endpoint service connectivity for an external key store.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyVpcEndpointServiceInvalidConfigurationException extends KmsException
+        implements
+        ToCopyableBuilder<XksProxyVpcEndpointServiceInvalidConfigurationException.Builder, XksProxyVpcEndpointServiceInvalidConfigurationException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyVpcEndpointServiceInvalidConfigurationException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyVpcEndpointServiceInvalidConfigurationException>,
+            KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyVpcEndpointServiceInvalidConfigurationException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyVpcEndpointServiceInvalidConfigurationException build() {
+            return new XksProxyVpcEndpointServiceInvalidConfigurationException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceNotFoundException.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceNotFoundException.java
new file mode 100644
index 0000000..a9c6db5
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/XksProxyVpcEndpointServiceNotFoundException.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.model;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.awscore.exception.AwsErrorDetails;
+import software.amazon.awssdk.core.SdkField;
+import software.amazon.awssdk.core.SdkPojo;
+import software.amazon.awssdk.utils.builder.CopyableBuilder;
+import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
+
+/**
+ * <p>
+ * The request was rejected because KMS could not find the specified VPC endpoint service. Use
+ * <a>DescribeCustomKeyStores</a> to verify the VPC endpoint service name for the external key store. Also, confirm that
+ * the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service principal for the
+ * Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public final class XksProxyVpcEndpointServiceNotFoundException extends KmsException implements
+        ToCopyableBuilder<XksProxyVpcEndpointServiceNotFoundException.Builder, XksProxyVpcEndpointServiceNotFoundException> {
+    private static final List<SdkField<?>> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList());
+
+    private static final long serialVersionUID = 1L;
+
+    private XksProxyVpcEndpointServiceNotFoundException(BuilderImpl builder) {
+        super(builder);
+    }
+
+    @Override
+    public Builder toBuilder() {
+        return new BuilderImpl(this);
+    }
+
+    public static Builder builder() {
+        return new BuilderImpl();
+    }
+
+    public static Class<? extends Builder> serializableBuilderClass() {
+        return BuilderImpl.class;
+    }
+
+    @Override
+    public final List<SdkField<?>> sdkFields() {
+        return SDK_FIELDS;
+    }
+
+    public interface Builder extends SdkPojo, CopyableBuilder<Builder, XksProxyVpcEndpointServiceNotFoundException>,
+            KmsException.Builder {
+        @Override
+        Builder awsErrorDetails(AwsErrorDetails awsErrorDetails);
+
+        @Override
+        Builder message(String message);
+
+        @Override
+        Builder requestId(String requestId);
+
+        @Override
+        Builder statusCode(int statusCode);
+
+        @Override
+        Builder cause(Throwable cause);
+
+        @Override
+        Builder writableStackTrace(Boolean writableStackTrace);
+    }
+
+    static final class BuilderImpl extends KmsException.BuilderImpl implements Builder {
+        private BuilderImpl() {
+        }
+
+        private BuilderImpl(XksProxyVpcEndpointServiceNotFoundException model) {
+            super(model);
+        }
+
+        @Override
+        public BuilderImpl awsErrorDetails(AwsErrorDetails awsErrorDetails) {
+            this.awsErrorDetails = awsErrorDetails;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl message(String message) {
+            this.message = message;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl requestId(String requestId) {
+            this.requestId = requestId;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl statusCode(int statusCode) {
+            this.statusCode = statusCode;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl cause(Throwable cause) {
+            this.cause = cause;
+            return this;
+        }
+
+        @Override
+        public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
+            this.writableStackTrace = writableStackTrace;
+            return this;
+        }
+
+        @Override
+        public XksProxyVpcEndpointServiceNotFoundException build() {
+            return new XksProxyVpcEndpointServiceNotFoundException(this);
+        }
+
+        @Override
+        public List<SdkField<?>> sdkFields() {
+            return SDK_FIELDS;
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/package-info.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/package-info.java
new file mode 100644
index 0000000..882ecc1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/package-info.java
@@ -0,0 +1,132 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+/**
+ * <fullname>Key Management Service</fullname>
+ * <p>
+ * Key Management Service (KMS) is an encryption and key management web service. This guide describes the KMS operations
+ * that you can call programmatically. For general information about KMS, see the <a
+ * href="https://docs.aws.amazon.com/kms/latest/developerguide/"> <i>Key Management Service Developer Guide</i> </a>.
+ * </p>
+ * <note>
+ * <p>
+ * KMS has replaced the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept has
+ * not changed. To prevent breaking changes, KMS is keeping some variations of this term.
+ * </p>
+ * <p>
+ * Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and
+ * platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a convenient way to create programmatic access
+ * to KMS and other Amazon Web Services services. For example, the SDKs take care of tasks such as signing requests (see
+ * below), managing errors, and retrying requests automatically. For more information about the Amazon Web Services
+ * SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web
+ * Services</a>.
+ * </p>
+ * </note>
+ * <p>
+ * We recommend that you use the Amazon Web Services SDKs to make programmatic API calls to KMS.
+ * </p>
+ * <p>
+ * If you need to use FIPS 140-2 validated cryptographic modules when communicating with Amazon Web Services, use the
+ * FIPS endpoint in your preferred Amazon Web Services Region. For more information about the available FIPS endpoints,
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region">Service endpoints</a> in the Key
+ * Management Service topic of the <i>Amazon Web Services General Reference</i>.
+ * </p>
+ * <p>
+ * All KMS API calls must be signed and be transmitted using Transport Layer Security (TLS). KMS recommends you always
+ * use the latest supported TLS version. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such
+ * as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as
+ * Java 7 and later support these modes.
+ * </p>
+ * <p>
+ * <b>Signing Requests</b>
+ * </p>
+ * <p>
+ * Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use
+ * your Amazon Web Services account root access key ID and secret access key for everyday work. You can use the access
+ * key ID and secret access key for an IAM user or you can use the Security Token Service (STS) to generate temporary
+ * security credentials and use those to sign requests.
+ * </p>
+ * <p>
+ * All KMS requests must be signed with <a
+ * href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4</a>.
+ * </p>
+ * <p>
+ * <b>Logging API Requests</b>
+ * </p>
+ * <p>
+ * KMS supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web
+ * Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by
+ * CloudTrail, you can determine what requests were made to KMS, who made the request, when it was made, and so on. To
+ * learn more about CloudTrail, including how to turn it on and find your log files, see the <a
+ * href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.
+ * </p>
+ * <p>
+ * <b>Additional Resources</b>
+ * </p>
+ * <p>
+ * For more information about credentials and request signing, see the following:
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html">Amazon Web Services Security
+ * Credentials</a> - This topic provides general information about the types of credentials used to access Amazon Web
+ * Services.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security
+ * Credentials</a> - This section of the <i>IAM User Guide</i> describes how to create and use temporary security
+ * credentials.
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 Signing
+ * Process</a> - This set of topics walks you through the process of signing a request using an access key ID and a
+ * secret access key.
+ * </p>
+ * </li>
+ * </ul>
+ * <p>
+ * <b>Commonly Used API Operations</b>
+ * </p>
+ * <p>
+ * Of the API operations discussed in this guide, the following will prove the most useful for most applications. You
+ * will likely perform operations other than these, such as creating keys and assigning policies, by using the console.
+ * </p>
+ * <ul>
+ * <li>
+ * <p>
+ * <a>Encrypt</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>Decrypt</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>GenerateDataKey</a>
+ * </p>
+ * </li>
+ * <li>
+ * <p>
+ * <a>GenerateDataKeyWithoutPlaintext</a>
+ * </p>
+ * </li>
+ * </ul>
+ */
+package software.amazon.awssdk.services.kms;
\ No newline at end of file
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/DescribeCustomKeyStoresIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/DescribeCustomKeyStoresIterable.java
new file mode 100644
index 0000000..61691d4
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/DescribeCustomKeyStoresIterable.java
@@ -0,0 +1,142 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoresListEntry;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#describeCustomKeyStoresPaginator(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse} that can be used to iterate through
+ * all the response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client
+ *             .describeCustomKeyStoresPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresIterable responses = client.describeCustomKeyStoresPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+ * operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class DescribeCustomKeyStoresIterable implements SdkIterable<DescribeCustomKeyStoresResponse> {
+    private final KmsClient client;
+
+    private final DescribeCustomKeyStoresRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public DescribeCustomKeyStoresIterable(KmsClient client, DescribeCustomKeyStoresRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new DescribeCustomKeyStoresResponseFetcher();
+    }
+
+    @Override
+    public Iterator<DescribeCustomKeyStoresResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link DescribeCustomKeyStoresResponse#customKeyStores()}
+     * member. The returned iterable is used to iterate through the results across all response pages and not a single
+     * page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<CustomKeyStoresListEntry> customKeyStores() {
+        Function<DescribeCustomKeyStoresResponse, Iterator<CustomKeyStoresListEntry>> getIterator = response -> {
+            if (response != null && response.customKeyStores() != null) {
+                return response.customKeyStores().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<DescribeCustomKeyStoresResponse, CustomKeyStoresListEntry> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class DescribeCustomKeyStoresResponseFetcher implements SyncPageFetcher<DescribeCustomKeyStoresResponse> {
+        @Override
+        public boolean hasNextPage(DescribeCustomKeyStoresResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public DescribeCustomKeyStoresResponse nextPage(DescribeCustomKeyStoresResponse previousPage) {
+            if (previousPage == null) {
+                return client.describeCustomKeyStores(firstRequest);
+            }
+            return client.describeCustomKeyStores(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/DescribeCustomKeyStoresPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/DescribeCustomKeyStoresPublisher.java
new file mode 100644
index 0000000..70ee64a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/DescribeCustomKeyStoresPublisher.java
@@ -0,0 +1,145 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.CustomKeyStoresListEntry;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#describeCustomKeyStoresPaginator(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse}
+ * response pages as per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.DescribeCustomKeyStoresPublisher publisher = client.describeCustomKeyStoresPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #describeCustomKeyStores(software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest)}
+ * operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class DescribeCustomKeyStoresPublisher implements SdkPublisher<DescribeCustomKeyStoresResponse> {
+    private final KmsAsyncClient client;
+
+    private final DescribeCustomKeyStoresRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public DescribeCustomKeyStoresPublisher(KmsAsyncClient client, DescribeCustomKeyStoresRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private DescribeCustomKeyStoresPublisher(KmsAsyncClient client, DescribeCustomKeyStoresRequest firstRequest,
+            boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new DescribeCustomKeyStoresResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super DescribeCustomKeyStoresResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<CustomKeyStoresListEntry> customKeyStores() {
+        Function<DescribeCustomKeyStoresResponse, Iterator<CustomKeyStoresListEntry>> getIterator = response -> {
+            if (response != null && response.customKeyStores() != null) {
+                return response.customKeyStores().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeCustomKeyStoresResponseFetcher())
+                .iteratorFunction(getIterator).isLastPage(isLastPage).build();
+    }
+
+    private class DescribeCustomKeyStoresResponseFetcher implements AsyncPageFetcher<DescribeCustomKeyStoresResponse> {
+        @Override
+        public boolean hasNextPage(final DescribeCustomKeyStoresResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<DescribeCustomKeyStoresResponse> nextPage(final DescribeCustomKeyStoresResponse previousPage) {
+            if (previousPage == null) {
+                return client.describeCustomKeyStores(firstRequest);
+            }
+            return client.describeCustomKeyStores(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListAliasesIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListAliasesIterable.java
new file mode 100644
index 0000000..a2a8680
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListAliasesIterable.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.AliasListEntry;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#listAliasesPaginator(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.ListAliasesResponse} that can be used to iterate through all the
+ * response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.ListAliasesResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListAliasesIterable implements SdkIterable<ListAliasesResponse> {
+    private final KmsClient client;
+
+    private final ListAliasesRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public ListAliasesIterable(KmsClient client, ListAliasesRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new ListAliasesResponseFetcher();
+    }
+
+    @Override
+    public Iterator<ListAliasesResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link ListAliasesResponse#aliases()} member. The returned
+     * iterable is used to iterate through the results across all response pages and not a single page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<AliasListEntry> aliases() {
+        Function<ListAliasesResponse, Iterator<AliasListEntry>> getIterator = response -> {
+            if (response != null && response.aliases() != null) {
+                return response.aliases().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<ListAliasesResponse, AliasListEntry> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class ListAliasesResponseFetcher implements SyncPageFetcher<ListAliasesResponse> {
+        @Override
+        public boolean hasNextPage(ListAliasesResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public ListAliasesResponse nextPage(ListAliasesResponse previousPage) {
+            if (previousPage == null) {
+                return client.listAliases(firstRequest);
+            }
+            return client.listAliases(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListAliasesPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListAliasesPublisher.java
new file mode 100644
index 0000000..923aff8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListAliasesPublisher.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.AliasListEntry;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#listAliasesPaginator(software.amazon.awssdk.services.kms.model.ListAliasesRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.ListAliasesResponse} response pages as
+ * per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListAliasesResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.ListAliasesResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listAliases(software.amazon.awssdk.services.kms.model.ListAliasesRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListAliasesPublisher implements SdkPublisher<ListAliasesResponse> {
+    private final KmsAsyncClient client;
+
+    private final ListAliasesRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public ListAliasesPublisher(KmsAsyncClient client, ListAliasesRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private ListAliasesPublisher(KmsAsyncClient client, ListAliasesRequest firstRequest, boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new ListAliasesResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super ListAliasesResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<AliasListEntry> aliases() {
+        Function<ListAliasesResponse, Iterator<AliasListEntry>> getIterator = response -> {
+            if (response != null && response.aliases() != null) {
+                return response.aliases().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new ListAliasesResponseFetcher()).iteratorFunction(getIterator)
+                .isLastPage(isLastPage).build();
+    }
+
+    private class ListAliasesResponseFetcher implements AsyncPageFetcher<ListAliasesResponse> {
+        @Override
+        public boolean hasNextPage(final ListAliasesResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<ListAliasesResponse> nextPage(final ListAliasesResponse previousPage) {
+            if (previousPage == null) {
+                return client.listAliases(firstRequest);
+            }
+            return client.listAliases(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListGrantsIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListGrantsIterable.java
new file mode 100644
index 0000000..57f1afc
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListGrantsIterable.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.GrantListEntry;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListGrantsResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#listGrantsPaginator(software.amazon.awssdk.services.kms.model.ListGrantsRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.ListGrantsResponse} that can be used to iterate through all the
+ * response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.ListGrantsResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListGrantsIterable responses = client.listGrantsPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListGrantsIterable implements SdkIterable<ListGrantsResponse> {
+    private final KmsClient client;
+
+    private final ListGrantsRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public ListGrantsIterable(KmsClient client, ListGrantsRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new ListGrantsResponseFetcher();
+    }
+
+    @Override
+    public Iterator<ListGrantsResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link ListGrantsResponse#grants()} member. The returned
+     * iterable is used to iterate through the results across all response pages and not a single page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<GrantListEntry> grants() {
+        Function<ListGrantsResponse, Iterator<GrantListEntry>> getIterator = response -> {
+            if (response != null && response.grants() != null) {
+                return response.grants().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<ListGrantsResponse, GrantListEntry> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class ListGrantsResponseFetcher implements SyncPageFetcher<ListGrantsResponse> {
+        @Override
+        public boolean hasNextPage(ListGrantsResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public ListGrantsResponse nextPage(ListGrantsResponse previousPage) {
+            if (previousPage == null) {
+                return client.listGrants(firstRequest);
+            }
+            return client.listGrants(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListGrantsPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListGrantsPublisher.java
new file mode 100644
index 0000000..248184a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListGrantsPublisher.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.GrantListEntry;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListGrantsResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#listGrantsPaginator(software.amazon.awssdk.services.kms.model.ListGrantsRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.ListGrantsResponse} response pages as
+ * per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher publisher = client.listGrantsPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListGrantsPublisher publisher = client.listGrantsPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListGrantsResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.ListGrantsResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listGrants(software.amazon.awssdk.services.kms.model.ListGrantsRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListGrantsPublisher implements SdkPublisher<ListGrantsResponse> {
+    private final KmsAsyncClient client;
+
+    private final ListGrantsRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public ListGrantsPublisher(KmsAsyncClient client, ListGrantsRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private ListGrantsPublisher(KmsAsyncClient client, ListGrantsRequest firstRequest, boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new ListGrantsResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super ListGrantsResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<GrantListEntry> grants() {
+        Function<ListGrantsResponse, Iterator<GrantListEntry>> getIterator = response -> {
+            if (response != null && response.grants() != null) {
+                return response.grants().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new ListGrantsResponseFetcher()).iteratorFunction(getIterator)
+                .isLastPage(isLastPage).build();
+    }
+
+    private class ListGrantsResponseFetcher implements AsyncPageFetcher<ListGrantsResponse> {
+        @Override
+        public boolean hasNextPage(final ListGrantsResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<ListGrantsResponse> nextPage(final ListGrantsResponse previousPage) {
+            if (previousPage == null) {
+                return client.listGrants(firstRequest);
+            }
+            return client.listGrants(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeyPoliciesIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeyPoliciesIterable.java
new file mode 100644
index 0000000..8160217
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeyPoliciesIterable.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#listKeyPoliciesPaginator(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse} that can be used to iterate through all the
+ * response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesIterable responses = client.listKeyPoliciesPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListKeyPoliciesIterable implements SdkIterable<ListKeyPoliciesResponse> {
+    private final KmsClient client;
+
+    private final ListKeyPoliciesRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public ListKeyPoliciesIterable(KmsClient client, ListKeyPoliciesRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new ListKeyPoliciesResponseFetcher();
+    }
+
+    @Override
+    public Iterator<ListKeyPoliciesResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link ListKeyPoliciesResponse#policyNames()} member. The
+     * returned iterable is used to iterate through the results across all response pages and not a single page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<String> policyNames() {
+        Function<ListKeyPoliciesResponse, Iterator<String>> getIterator = response -> {
+            if (response != null && response.policyNames() != null) {
+                return response.policyNames().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<ListKeyPoliciesResponse, String> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class ListKeyPoliciesResponseFetcher implements SyncPageFetcher<ListKeyPoliciesResponse> {
+        @Override
+        public boolean hasNextPage(ListKeyPoliciesResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public ListKeyPoliciesResponse nextPage(ListKeyPoliciesResponse previousPage) {
+            if (previousPage == null) {
+                return client.listKeyPolicies(firstRequest);
+            }
+            return client.listKeyPolicies(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeyPoliciesPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeyPoliciesPublisher.java
new file mode 100644
index 0000000..2e990bc
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeyPoliciesPublisher.java
@@ -0,0 +1,142 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#listKeyPoliciesPaginator(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse} response
+ * pages as per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher publisher = client.listKeyPoliciesPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeyPoliciesPublisher publisher = client.listKeyPoliciesPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.ListKeyPoliciesResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listKeyPolicies(software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListKeyPoliciesPublisher implements SdkPublisher<ListKeyPoliciesResponse> {
+    private final KmsAsyncClient client;
+
+    private final ListKeyPoliciesRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public ListKeyPoliciesPublisher(KmsAsyncClient client, ListKeyPoliciesRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private ListKeyPoliciesPublisher(KmsAsyncClient client, ListKeyPoliciesRequest firstRequest, boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new ListKeyPoliciesResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super ListKeyPoliciesResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<String> policyNames() {
+        Function<ListKeyPoliciesResponse, Iterator<String>> getIterator = response -> {
+            if (response != null && response.policyNames() != null) {
+                return response.policyNames().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new ListKeyPoliciesResponseFetcher())
+                .iteratorFunction(getIterator).isLastPage(isLastPage).build();
+    }
+
+    private class ListKeyPoliciesResponseFetcher implements AsyncPageFetcher<ListKeyPoliciesResponse> {
+        @Override
+        public boolean hasNextPage(final ListKeyPoliciesResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<ListKeyPoliciesResponse> nextPage(final ListKeyPoliciesResponse previousPage) {
+            if (previousPage == null) {
+                return client.listKeyPolicies(firstRequest);
+            }
+            return client.listKeyPolicies(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeysIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeysIterable.java
new file mode 100644
index 0000000..11ad56c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeysIterable.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.KeyListEntry;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.services.kms.model.ListKeysResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#listKeysPaginator(software.amazon.awssdk.services.kms.model.ListKeysRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.ListKeysResponse} that can be used to iterate through all the
+ * response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.ListKeysResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeysIterable responses = client.listKeysPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListKeysIterable implements SdkIterable<ListKeysResponse> {
+    private final KmsClient client;
+
+    private final ListKeysRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public ListKeysIterable(KmsClient client, ListKeysRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new ListKeysResponseFetcher();
+    }
+
+    @Override
+    public Iterator<ListKeysResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link ListKeysResponse#keys()} member. The returned
+     * iterable is used to iterate through the results across all response pages and not a single page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<KeyListEntry> keys() {
+        Function<ListKeysResponse, Iterator<KeyListEntry>> getIterator = response -> {
+            if (response != null && response.keys() != null) {
+                return response.keys().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<ListKeysResponse, KeyListEntry> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class ListKeysResponseFetcher implements SyncPageFetcher<ListKeysResponse> {
+        @Override
+        public boolean hasNextPage(ListKeysResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public ListKeysResponse nextPage(ListKeysResponse previousPage) {
+            if (previousPage == null) {
+                return client.listKeys(firstRequest);
+            }
+            return client.listKeys(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeysPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeysPublisher.java
new file mode 100644
index 0000000..892f345
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListKeysPublisher.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.KeyListEntry;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.services.kms.model.ListKeysResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#listKeysPaginator(software.amazon.awssdk.services.kms.model.ListKeysRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.ListKeysResponse} response pages as
+ * per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListKeysPublisher publisher = client.listKeysPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListKeysResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.ListKeysResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listKeys(software.amazon.awssdk.services.kms.model.ListKeysRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListKeysPublisher implements SdkPublisher<ListKeysResponse> {
+    private final KmsAsyncClient client;
+
+    private final ListKeysRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public ListKeysPublisher(KmsAsyncClient client, ListKeysRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private ListKeysPublisher(KmsAsyncClient client, ListKeysRequest firstRequest, boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new ListKeysResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super ListKeysResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<KeyListEntry> keys() {
+        Function<ListKeysResponse, Iterator<KeyListEntry>> getIterator = response -> {
+            if (response != null && response.keys() != null) {
+                return response.keys().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new ListKeysResponseFetcher()).iteratorFunction(getIterator)
+                .isLastPage(isLastPage).build();
+    }
+
+    private class ListKeysResponseFetcher implements AsyncPageFetcher<ListKeysResponse> {
+        @Override
+        public boolean hasNextPage(final ListKeysResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<ListKeysResponse> nextPage(final ListKeysResponse previousPage) {
+            if (previousPage == null) {
+                return client.listKeys(firstRequest);
+            }
+            return client.listKeys(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListResourceTagsIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListResourceTagsIterable.java
new file mode 100644
index 0000000..0c67efa
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListResourceTagsIterable.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;
+import software.amazon.awssdk.services.kms.model.Tag;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#listResourceTagsPaginator(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.ListResourceTagsResponse} that can be used to iterate through all
+ * the response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.ListResourceTagsResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListResourceTagsIterable responses = client.listResourceTagsPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListResourceTagsIterable implements SdkIterable<ListResourceTagsResponse> {
+    private final KmsClient client;
+
+    private final ListResourceTagsRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public ListResourceTagsIterable(KmsClient client, ListResourceTagsRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new ListResourceTagsResponseFetcher();
+    }
+
+    @Override
+    public Iterator<ListResourceTagsResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link ListResourceTagsResponse#tags()} member. The returned
+     * iterable is used to iterate through the results across all response pages and not a single page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<Tag> tags() {
+        Function<ListResourceTagsResponse, Iterator<Tag>> getIterator = response -> {
+            if (response != null && response.tags() != null) {
+                return response.tags().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<ListResourceTagsResponse, Tag> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class ListResourceTagsResponseFetcher implements SyncPageFetcher<ListResourceTagsResponse> {
+        @Override
+        public boolean hasNextPage(ListResourceTagsResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public ListResourceTagsResponse nextPage(ListResourceTagsResponse previousPage) {
+            if (previousPage == null) {
+                return client.listResourceTags(firstRequest);
+            }
+            return client.listResourceTags(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListResourceTagsPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListResourceTagsPublisher.java
new file mode 100644
index 0000000..ca00690
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListResourceTagsPublisher.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;
+import software.amazon.awssdk.services.kms.model.Tag;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#listResourceTagsPaginator(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.ListResourceTagsResponse} response
+ * pages as per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher publisher = client.listResourceTagsPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListResourceTagsPublisher publisher = client.listResourceTagsPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListResourceTagsResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.ListResourceTagsResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listResourceTags(software.amazon.awssdk.services.kms.model.ListResourceTagsRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListResourceTagsPublisher implements SdkPublisher<ListResourceTagsResponse> {
+    private final KmsAsyncClient client;
+
+    private final ListResourceTagsRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public ListResourceTagsPublisher(KmsAsyncClient client, ListResourceTagsRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private ListResourceTagsPublisher(KmsAsyncClient client, ListResourceTagsRequest firstRequest, boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new ListResourceTagsResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super ListResourceTagsResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<Tag> tags() {
+        Function<ListResourceTagsResponse, Iterator<Tag>> getIterator = response -> {
+            if (response != null && response.tags() != null) {
+                return response.tags().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new ListResourceTagsResponseFetcher())
+                .iteratorFunction(getIterator).isLastPage(isLastPage).build();
+    }
+
+    private class ListResourceTagsResponseFetcher implements AsyncPageFetcher<ListResourceTagsResponse> {
+        @Override
+        public boolean hasNextPage(final ListResourceTagsResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<ListResourceTagsResponse> nextPage(final ListResourceTagsResponse previousPage) {
+            if (previousPage == null) {
+                return client.listResourceTags(firstRequest);
+            }
+            return client.listResourceTags(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListRetirableGrantsIterable.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListRetirableGrantsIterable.java
new file mode 100644
index 0000000..d0403ec
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListRetirableGrantsIterable.java
@@ -0,0 +1,140 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.function.Function;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.pagination.sync.PaginatedItemsIterable;
+import software.amazon.awssdk.core.pagination.sync.PaginatedResponsesIterator;
+import software.amazon.awssdk.core.pagination.sync.SdkIterable;
+import software.amazon.awssdk.core.pagination.sync.SyncPageFetcher;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.GrantListEntry;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsClient#listRetirableGrantsPaginator(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)}
+ * operation which is a paginated operation. This class is an iterable of
+ * {@link software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse} that can be used to iterate through all
+ * the response pages of the operation.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily
+ * loading response pages by making service calls until there are no pages left or your iteration stops. If there are
+ * errors in your request, you will see the failures only after you start iterating through the iterable.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to iterate through the response pages:
+ * </p>
+ * 1) Using a Stream
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client.listRetirableGrantsPaginator(request);
+ * responses.stream().forEach(....);
+ * }
+ * </pre>
+ *
+ * 2) Using For loop
+ * 
+ * <pre>
+ * {
+ *     &#064;code
+ *     software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client
+ *             .listRetirableGrantsPaginator(request);
+ *     for (software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse response : responses) {
+ *         // do something;
+ *     }
+ * }
+ * </pre>
+ *
+ * 3) Use iterator directly
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsIterable responses = client.listRetirableGrantsPaginator(request);
+ * responses.iterator().forEachRemaining(....);
+ * }
+ * </pre>
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListRetirableGrantsIterable implements SdkIterable<ListRetirableGrantsResponse> {
+    private final KmsClient client;
+
+    private final ListRetirableGrantsRequest firstRequest;
+
+    private final SyncPageFetcher nextPageFetcher;
+
+    public ListRetirableGrantsIterable(KmsClient client, ListRetirableGrantsRequest firstRequest) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.nextPageFetcher = new ListRetirableGrantsResponseFetcher();
+    }
+
+    @Override
+    public Iterator<ListRetirableGrantsResponse> iterator() {
+        return PaginatedResponsesIterator.builder().nextPageFetcher(nextPageFetcher).build();
+    }
+
+    /**
+     * Returns an iterable to iterate through the paginated {@link ListRetirableGrantsResponse#grants()} member. The
+     * returned iterable is used to iterate through the results across all response pages and not a single page.
+     *
+     * This method is useful if you are interested in iterating over the paginated member in the response pages instead
+     * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the
+     * next list of results until the iteration stops or there are no more results.
+     */
+    public final SdkIterable<GrantListEntry> grants() {
+        Function<ListRetirableGrantsResponse, Iterator<GrantListEntry>> getIterator = response -> {
+            if (response != null && response.grants() != null) {
+                return response.grants().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsIterable.<ListRetirableGrantsResponse, GrantListEntry> builder().pagesIterable(this)
+                .itemIteratorFunction(getIterator).build();
+    }
+
+    private class ListRetirableGrantsResponseFetcher implements SyncPageFetcher<ListRetirableGrantsResponse> {
+        @Override
+        public boolean hasNextPage(ListRetirableGrantsResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public ListRetirableGrantsResponse nextPage(ListRetirableGrantsResponse previousPage) {
+            if (previousPage == null) {
+                return client.listRetirableGrants(firstRequest);
+            }
+            return client.listRetirableGrants(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListRetirableGrantsPublisher.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListRetirableGrantsPublisher.java
new file mode 100644
index 0000000..ed1a544
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/paginators/ListRetirableGrantsPublisher.java
@@ -0,0 +1,143 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.paginators;
+
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import org.reactivestreams.Subscriber;
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.core.async.SdkPublisher;
+import software.amazon.awssdk.core.pagination.async.AsyncPageFetcher;
+import software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher;
+import software.amazon.awssdk.core.pagination.async.ResponsesSubscription;
+import software.amazon.awssdk.core.util.PaginatorUtils;
+import software.amazon.awssdk.services.kms.KmsAsyncClient;
+import software.amazon.awssdk.services.kms.internal.UserAgentUtils;
+import software.amazon.awssdk.services.kms.model.GrantListEntry;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse;
+
+/**
+ * <p>
+ * Represents the output for the
+ * {@link software.amazon.awssdk.services.kms.KmsAsyncClient#listRetirableGrantsPaginator(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)}
+ * operation which is a paginated operation. This class is a type of {@link org.reactivestreams.Publisher} which can be
+ * used to provide a sequence of {@link software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse} response
+ * pages as per demand from the subscriber.
+ * </p>
+ * <p>
+ * When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and
+ * so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures
+ * only after you start streaming the data. The subscribe method should be called as a request to start streaming data.
+ * For more info, see {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the
+ * subscribe method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data
+ * from the starting request.
+ * </p>
+ *
+ * <p>
+ * The following are few ways to use the response class:
+ * </p>
+ * 1) Using the subscribe helper method
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher publisher = client.listRetirableGrantsPaginator(request);
+ * CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
+ * future.get();
+ * }
+ * </pre>
+ *
+ * 2) Using a custom subscriber
+ * 
+ * <pre>
+ * {@code
+ * software.amazon.awssdk.services.kms.paginators.ListRetirableGrantsPublisher publisher = client.listRetirableGrantsPaginator(request);
+ * publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse>() {
+ * 
+ * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
+ * 
+ * 
+ * public void onNext(software.amazon.awssdk.services.kms.model.ListRetirableGrantsResponse response) { //... };
+ * });}
+ * </pre>
+ * 
+ * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
+ * <p>
+ * <b>Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It
+ * only limits the number of results in each page.</b>
+ * </p>
+ * <p>
+ * <b>Note: If you prefer to have control on service calls, use the
+ * {@link #listRetirableGrants(software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest)} operation.</b>
+ * </p>
+ */
+@Generated("software.amazon.awssdk:codegen")
+public class ListRetirableGrantsPublisher implements SdkPublisher<ListRetirableGrantsResponse> {
+    private final KmsAsyncClient client;
+
+    private final ListRetirableGrantsRequest firstRequest;
+
+    private final AsyncPageFetcher nextPageFetcher;
+
+    private boolean isLastPage;
+
+    public ListRetirableGrantsPublisher(KmsAsyncClient client, ListRetirableGrantsRequest firstRequest) {
+        this(client, firstRequest, false);
+    }
+
+    private ListRetirableGrantsPublisher(KmsAsyncClient client, ListRetirableGrantsRequest firstRequest, boolean isLastPage) {
+        this.client = client;
+        this.firstRequest = UserAgentUtils.applyPaginatorUserAgent(firstRequest);
+        this.isLastPage = isLastPage;
+        this.nextPageFetcher = new ListRetirableGrantsResponseFetcher();
+    }
+
+    @Override
+    public void subscribe(Subscriber<? super ListRetirableGrantsResponse> subscriber) {
+        subscriber.onSubscribe(ResponsesSubscription.builder().subscriber(subscriber).nextPageFetcher(nextPageFetcher).build());
+    }
+
+    /**
+     * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
+     * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
+     * and then applies that consumer to each response returned by the service.
+     */
+    public final SdkPublisher<GrantListEntry> grants() {
+        Function<ListRetirableGrantsResponse, Iterator<GrantListEntry>> getIterator = response -> {
+            if (response != null && response.grants() != null) {
+                return response.grants().iterator();
+            }
+            return Collections.emptyIterator();
+        };
+        return PaginatedItemsPublisher.builder().nextPageFetcher(new ListRetirableGrantsResponseFetcher())
+                .iteratorFunction(getIterator).isLastPage(isLastPage).build();
+    }
+
+    private class ListRetirableGrantsResponseFetcher implements AsyncPageFetcher<ListRetirableGrantsResponse> {
+        @Override
+        public boolean hasNextPage(final ListRetirableGrantsResponse previousPage) {
+            return PaginatorUtils.isOutputTokenAvailable(previousPage.nextMarker());
+        }
+
+        @Override
+        public CompletableFuture<ListRetirableGrantsResponse> nextPage(final ListRetirableGrantsResponse previousPage) {
+            if (previousPage == null) {
+                return client.listRetirableGrants(firstRequest);
+            }
+            return client.listRetirableGrants(firstRequest.toBuilder().marker(previousPage.nextMarker()).build());
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CancelKeyDeletionRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CancelKeyDeletionRequestMarshaller.java
new file mode 100644
index 0000000..995f2ac
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CancelKeyDeletionRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.CancelKeyDeletionRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link CancelKeyDeletionRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class CancelKeyDeletionRequestMarshaller implements Marshaller<CancelKeyDeletionRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.CancelKeyDeletion").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public CancelKeyDeletionRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(CancelKeyDeletionRequest cancelKeyDeletionRequest) {
+        Validate.paramNotNull(cancelKeyDeletionRequest, "cancelKeyDeletionRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(cancelKeyDeletionRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ConnectCustomKeyStoreRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ConnectCustomKeyStoreRequestMarshaller.java
new file mode 100644
index 0000000..0aa3d7c
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ConnectCustomKeyStoreRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ConnectCustomKeyStoreRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ConnectCustomKeyStoreRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ConnectCustomKeyStoreRequestMarshaller implements Marshaller<ConnectCustomKeyStoreRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ConnectCustomKeyStore").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ConnectCustomKeyStoreRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ConnectCustomKeyStoreRequest connectCustomKeyStoreRequest) {
+        Validate.paramNotNull(connectCustomKeyStoreRequest, "connectCustomKeyStoreRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(connectCustomKeyStoreRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateAliasRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateAliasRequestMarshaller.java
new file mode 100644
index 0000000..67ed338
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateAliasRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.CreateAliasRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link CreateAliasRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class CreateAliasRequestMarshaller implements Marshaller<CreateAliasRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.CreateAlias").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public CreateAliasRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(CreateAliasRequest createAliasRequest) {
+        Validate.paramNotNull(createAliasRequest, "createAliasRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(createAliasRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateCustomKeyStoreRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateCustomKeyStoreRequestMarshaller.java
new file mode 100644
index 0000000..2016b65
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateCustomKeyStoreRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.CreateCustomKeyStoreRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link CreateCustomKeyStoreRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class CreateCustomKeyStoreRequestMarshaller implements Marshaller<CreateCustomKeyStoreRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.CreateCustomKeyStore").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public CreateCustomKeyStoreRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(CreateCustomKeyStoreRequest createCustomKeyStoreRequest) {
+        Validate.paramNotNull(createCustomKeyStoreRequest, "createCustomKeyStoreRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(createCustomKeyStoreRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateGrantRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateGrantRequestMarshaller.java
new file mode 100644
index 0000000..8be304e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateGrantRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.CreateGrantRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link CreateGrantRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class CreateGrantRequestMarshaller implements Marshaller<CreateGrantRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.CreateGrant").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public CreateGrantRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(CreateGrantRequest createGrantRequest) {
+        Validate.paramNotNull(createGrantRequest, "createGrantRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(createGrantRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateKeyRequestMarshaller.java
new file mode 100644
index 0000000..0494541
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/CreateKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.CreateKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link CreateKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class CreateKeyRequestMarshaller implements Marshaller<CreateKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.CreateKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public CreateKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(CreateKeyRequest createKeyRequest) {
+        Validate.paramNotNull(createKeyRequest, "createKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(createKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DecryptRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DecryptRequestMarshaller.java
new file mode 100644
index 0000000..401b434
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DecryptRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DecryptRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DecryptRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DecryptRequestMarshaller implements Marshaller<DecryptRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.Decrypt").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DecryptRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DecryptRequest decryptRequest) {
+        Validate.paramNotNull(decryptRequest, "decryptRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(decryptRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteAliasRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteAliasRequestMarshaller.java
new file mode 100644
index 0000000..a3b942d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteAliasRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DeleteAliasRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DeleteAliasRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DeleteAliasRequestMarshaller implements Marshaller<DeleteAliasRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DeleteAlias").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DeleteAliasRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DeleteAliasRequest deleteAliasRequest) {
+        Validate.paramNotNull(deleteAliasRequest, "deleteAliasRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(deleteAliasRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteCustomKeyStoreRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteCustomKeyStoreRequestMarshaller.java
new file mode 100644
index 0000000..bce314b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteCustomKeyStoreRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DeleteCustomKeyStoreRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DeleteCustomKeyStoreRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DeleteCustomKeyStoreRequestMarshaller implements Marshaller<DeleteCustomKeyStoreRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DeleteCustomKeyStore").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DeleteCustomKeyStoreRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DeleteCustomKeyStoreRequest deleteCustomKeyStoreRequest) {
+        Validate.paramNotNull(deleteCustomKeyStoreRequest, "deleteCustomKeyStoreRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(deleteCustomKeyStoreRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteImportedKeyMaterialRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteImportedKeyMaterialRequestMarshaller.java
new file mode 100644
index 0000000..7103195
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DeleteImportedKeyMaterialRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DeleteImportedKeyMaterialRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DeleteImportedKeyMaterialRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DeleteImportedKeyMaterialRequestMarshaller implements Marshaller<DeleteImportedKeyMaterialRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DeleteImportedKeyMaterial").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DeleteImportedKeyMaterialRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DeleteImportedKeyMaterialRequest deleteImportedKeyMaterialRequest) {
+        Validate.paramNotNull(deleteImportedKeyMaterialRequest, "deleteImportedKeyMaterialRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(deleteImportedKeyMaterialRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DescribeCustomKeyStoresRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DescribeCustomKeyStoresRequestMarshaller.java
new file mode 100644
index 0000000..9a640e6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DescribeCustomKeyStoresRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DescribeCustomKeyStoresRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DescribeCustomKeyStoresRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DescribeCustomKeyStoresRequestMarshaller implements Marshaller<DescribeCustomKeyStoresRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DescribeCustomKeyStores").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DescribeCustomKeyStoresRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DescribeCustomKeyStoresRequest describeCustomKeyStoresRequest) {
+        Validate.paramNotNull(describeCustomKeyStoresRequest, "describeCustomKeyStoresRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(describeCustomKeyStoresRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DescribeKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DescribeKeyRequestMarshaller.java
new file mode 100644
index 0000000..e986ffd
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DescribeKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DescribeKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DescribeKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DescribeKeyRequestMarshaller implements Marshaller<DescribeKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DescribeKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DescribeKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DescribeKeyRequest describeKeyRequest) {
+        Validate.paramNotNull(describeKeyRequest, "describeKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(describeKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisableKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisableKeyRequestMarshaller.java
new file mode 100644
index 0000000..c27a079
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisableKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DisableKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DisableKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DisableKeyRequestMarshaller implements Marshaller<DisableKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DisableKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DisableKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DisableKeyRequest disableKeyRequest) {
+        Validate.paramNotNull(disableKeyRequest, "disableKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(disableKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisableKeyRotationRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisableKeyRotationRequestMarshaller.java
new file mode 100644
index 0000000..5313149
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisableKeyRotationRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DisableKeyRotationRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DisableKeyRotationRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DisableKeyRotationRequestMarshaller implements Marshaller<DisableKeyRotationRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DisableKeyRotation").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DisableKeyRotationRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DisableKeyRotationRequest disableKeyRotationRequest) {
+        Validate.paramNotNull(disableKeyRotationRequest, "disableKeyRotationRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(disableKeyRotationRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisconnectCustomKeyStoreRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisconnectCustomKeyStoreRequestMarshaller.java
new file mode 100644
index 0000000..100361b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/DisconnectCustomKeyStoreRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.DisconnectCustomKeyStoreRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link DisconnectCustomKeyStoreRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class DisconnectCustomKeyStoreRequestMarshaller implements Marshaller<DisconnectCustomKeyStoreRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.DisconnectCustomKeyStore").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public DisconnectCustomKeyStoreRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(DisconnectCustomKeyStoreRequest disconnectCustomKeyStoreRequest) {
+        Validate.paramNotNull(disconnectCustomKeyStoreRequest, "disconnectCustomKeyStoreRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(disconnectCustomKeyStoreRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EnableKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EnableKeyRequestMarshaller.java
new file mode 100644
index 0000000..2526608
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EnableKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.EnableKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link EnableKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class EnableKeyRequestMarshaller implements Marshaller<EnableKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.EnableKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public EnableKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(EnableKeyRequest enableKeyRequest) {
+        Validate.paramNotNull(enableKeyRequest, "enableKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(enableKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EnableKeyRotationRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EnableKeyRotationRequestMarshaller.java
new file mode 100644
index 0000000..8badf10
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EnableKeyRotationRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.EnableKeyRotationRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link EnableKeyRotationRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class EnableKeyRotationRequestMarshaller implements Marshaller<EnableKeyRotationRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.EnableKeyRotation").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public EnableKeyRotationRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(EnableKeyRotationRequest enableKeyRotationRequest) {
+        Validate.paramNotNull(enableKeyRotationRequest, "enableKeyRotationRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(enableKeyRotationRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EncryptRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EncryptRequestMarshaller.java
new file mode 100644
index 0000000..3713033
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/EncryptRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.EncryptRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link EncryptRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class EncryptRequestMarshaller implements Marshaller<EncryptRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.Encrypt").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public EncryptRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(EncryptRequest encryptRequest) {
+        Validate.paramNotNull(encryptRequest, "encryptRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(encryptRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyPairRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyPairRequestMarshaller.java
new file mode 100644
index 0000000..baaeb83
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyPairRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GenerateDataKeyPairRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GenerateDataKeyPairRequestMarshaller implements Marshaller<GenerateDataKeyPairRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GenerateDataKeyPair").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GenerateDataKeyPairRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GenerateDataKeyPairRequest generateDataKeyPairRequest) {
+        Validate.paramNotNull(generateDataKeyPairRequest, "generateDataKeyPairRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(generateDataKeyPairRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyPairWithoutPlaintextRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyPairWithoutPlaintextRequestMarshaller.java
new file mode 100644
index 0000000..82ec927
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyPairWithoutPlaintextRequestMarshaller.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyPairWithoutPlaintextRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GenerateDataKeyPairWithoutPlaintextRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GenerateDataKeyPairWithoutPlaintextRequestMarshaller implements
+        Marshaller<GenerateDataKeyPairWithoutPlaintextRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GenerateDataKeyPairWithoutPlaintext").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GenerateDataKeyPairWithoutPlaintextRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GenerateDataKeyPairWithoutPlaintextRequest generateDataKeyPairWithoutPlaintextRequest) {
+        Validate.paramNotNull(generateDataKeyPairWithoutPlaintextRequest, "generateDataKeyPairWithoutPlaintextRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(generateDataKeyPairWithoutPlaintextRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyRequestMarshaller.java
new file mode 100644
index 0000000..da9e368
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GenerateDataKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GenerateDataKeyRequestMarshaller implements Marshaller<GenerateDataKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GenerateDataKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GenerateDataKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GenerateDataKeyRequest generateDataKeyRequest) {
+        Validate.paramNotNull(generateDataKeyRequest, "generateDataKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(generateDataKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyWithoutPlaintextRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyWithoutPlaintextRequestMarshaller.java
new file mode 100644
index 0000000..e22f78b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateDataKeyWithoutPlaintextRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GenerateDataKeyWithoutPlaintextRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GenerateDataKeyWithoutPlaintextRequestMarshaller implements Marshaller<GenerateDataKeyWithoutPlaintextRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GenerateDataKeyWithoutPlaintext").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GenerateDataKeyWithoutPlaintextRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GenerateDataKeyWithoutPlaintextRequest generateDataKeyWithoutPlaintextRequest) {
+        Validate.paramNotNull(generateDataKeyWithoutPlaintextRequest, "generateDataKeyWithoutPlaintextRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(generateDataKeyWithoutPlaintextRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateMacRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateMacRequestMarshaller.java
new file mode 100644
index 0000000..b857f45
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateMacRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GenerateMacRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GenerateMacRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GenerateMacRequestMarshaller implements Marshaller<GenerateMacRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GenerateMac").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GenerateMacRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GenerateMacRequest generateMacRequest) {
+        Validate.paramNotNull(generateMacRequest, "generateMacRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(generateMacRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateRandomRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateRandomRequestMarshaller.java
new file mode 100644
index 0000000..60590df
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GenerateRandomRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GenerateRandomRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GenerateRandomRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GenerateRandomRequestMarshaller implements Marshaller<GenerateRandomRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GenerateRandom").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GenerateRandomRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GenerateRandomRequest generateRandomRequest) {
+        Validate.paramNotNull(generateRandomRequest, "generateRandomRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(generateRandomRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetKeyPolicyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetKeyPolicyRequestMarshaller.java
new file mode 100644
index 0000000..04102a8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetKeyPolicyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GetKeyPolicyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GetKeyPolicyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GetKeyPolicyRequestMarshaller implements Marshaller<GetKeyPolicyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GetKeyPolicy").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GetKeyPolicyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GetKeyPolicyRequest getKeyPolicyRequest) {
+        Validate.paramNotNull(getKeyPolicyRequest, "getKeyPolicyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(getKeyPolicyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetKeyRotationStatusRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetKeyRotationStatusRequestMarshaller.java
new file mode 100644
index 0000000..9199ea9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetKeyRotationStatusRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GetKeyRotationStatusRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GetKeyRotationStatusRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GetKeyRotationStatusRequestMarshaller implements Marshaller<GetKeyRotationStatusRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GetKeyRotationStatus").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GetKeyRotationStatusRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GetKeyRotationStatusRequest getKeyRotationStatusRequest) {
+        Validate.paramNotNull(getKeyRotationStatusRequest, "getKeyRotationStatusRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(getKeyRotationStatusRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetParametersForImportRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetParametersForImportRequestMarshaller.java
new file mode 100644
index 0000000..97e1ef0
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetParametersForImportRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GetParametersForImportRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GetParametersForImportRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GetParametersForImportRequestMarshaller implements Marshaller<GetParametersForImportRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GetParametersForImport").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GetParametersForImportRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GetParametersForImportRequest getParametersForImportRequest) {
+        Validate.paramNotNull(getParametersForImportRequest, "getParametersForImportRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(getParametersForImportRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetPublicKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetPublicKeyRequestMarshaller.java
new file mode 100644
index 0000000..75be066
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/GetPublicKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.GetPublicKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link GetPublicKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class GetPublicKeyRequestMarshaller implements Marshaller<GetPublicKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.GetPublicKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public GetPublicKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(GetPublicKeyRequest getPublicKeyRequest) {
+        Validate.paramNotNull(getPublicKeyRequest, "getPublicKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(getPublicKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ImportKeyMaterialRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ImportKeyMaterialRequestMarshaller.java
new file mode 100644
index 0000000..c0112c8
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ImportKeyMaterialRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ImportKeyMaterialRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ImportKeyMaterialRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ImportKeyMaterialRequestMarshaller implements Marshaller<ImportKeyMaterialRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ImportKeyMaterial").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ImportKeyMaterialRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ImportKeyMaterialRequest importKeyMaterialRequest) {
+        Validate.paramNotNull(importKeyMaterialRequest, "importKeyMaterialRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(importKeyMaterialRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListAliasesRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListAliasesRequestMarshaller.java
new file mode 100644
index 0000000..0cc7a5e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListAliasesRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ListAliasesRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ListAliasesRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ListAliasesRequestMarshaller implements Marshaller<ListAliasesRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ListAliases").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ListAliasesRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ListAliasesRequest listAliasesRequest) {
+        Validate.paramNotNull(listAliasesRequest, "listAliasesRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(listAliasesRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListGrantsRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListGrantsRequestMarshaller.java
new file mode 100644
index 0000000..4e812b1
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListGrantsRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ListGrantsRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ListGrantsRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ListGrantsRequestMarshaller implements Marshaller<ListGrantsRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ListGrants").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ListGrantsRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ListGrantsRequest listGrantsRequest) {
+        Validate.paramNotNull(listGrantsRequest, "listGrantsRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(listGrantsRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListKeyPoliciesRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListKeyPoliciesRequestMarshaller.java
new file mode 100644
index 0000000..e4884e6
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListKeyPoliciesRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ListKeyPoliciesRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ListKeyPoliciesRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ListKeyPoliciesRequestMarshaller implements Marshaller<ListKeyPoliciesRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ListKeyPolicies").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ListKeyPoliciesRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ListKeyPoliciesRequest listKeyPoliciesRequest) {
+        Validate.paramNotNull(listKeyPoliciesRequest, "listKeyPoliciesRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(listKeyPoliciesRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListKeysRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListKeysRequestMarshaller.java
new file mode 100644
index 0000000..5dd2f91
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListKeysRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ListKeysRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ListKeysRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ListKeysRequestMarshaller implements Marshaller<ListKeysRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ListKeys").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ListKeysRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ListKeysRequest listKeysRequest) {
+        Validate.paramNotNull(listKeysRequest, "listKeysRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(listKeysRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListResourceTagsRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListResourceTagsRequestMarshaller.java
new file mode 100644
index 0000000..24489d2
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListResourceTagsRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ListResourceTagsRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ListResourceTagsRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ListResourceTagsRequestMarshaller implements Marshaller<ListResourceTagsRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ListResourceTags").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ListResourceTagsRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ListResourceTagsRequest listResourceTagsRequest) {
+        Validate.paramNotNull(listResourceTagsRequest, "listResourceTagsRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(listResourceTagsRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListRetirableGrantsRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListRetirableGrantsRequestMarshaller.java
new file mode 100644
index 0000000..e052463
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ListRetirableGrantsRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ListRetirableGrantsRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ListRetirableGrantsRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ListRetirableGrantsRequestMarshaller implements Marshaller<ListRetirableGrantsRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ListRetirableGrants").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ListRetirableGrantsRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ListRetirableGrantsRequest listRetirableGrantsRequest) {
+        Validate.paramNotNull(listRetirableGrantsRequest, "listRetirableGrantsRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(listRetirableGrantsRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/PutKeyPolicyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/PutKeyPolicyRequestMarshaller.java
new file mode 100644
index 0000000..69cc12b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/PutKeyPolicyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.PutKeyPolicyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link PutKeyPolicyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class PutKeyPolicyRequestMarshaller implements Marshaller<PutKeyPolicyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.PutKeyPolicy").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public PutKeyPolicyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(PutKeyPolicyRequest putKeyPolicyRequest) {
+        Validate.paramNotNull(putKeyPolicyRequest, "putKeyPolicyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(putKeyPolicyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ReEncryptRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ReEncryptRequestMarshaller.java
new file mode 100644
index 0000000..9e68b6f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ReEncryptRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ReEncryptRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ReEncryptRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ReEncryptRequestMarshaller implements Marshaller<ReEncryptRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ReEncrypt").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ReEncryptRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ReEncryptRequest reEncryptRequest) {
+        Validate.paramNotNull(reEncryptRequest, "reEncryptRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(reEncryptRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ReplicateKeyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ReplicateKeyRequestMarshaller.java
new file mode 100644
index 0000000..3aceeb9
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ReplicateKeyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ReplicateKeyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ReplicateKeyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ReplicateKeyRequestMarshaller implements Marshaller<ReplicateKeyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ReplicateKey").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ReplicateKeyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ReplicateKeyRequest replicateKeyRequest) {
+        Validate.paramNotNull(replicateKeyRequest, "replicateKeyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(replicateKeyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/RetireGrantRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/RetireGrantRequestMarshaller.java
new file mode 100644
index 0000000..d182cb4
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/RetireGrantRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.RetireGrantRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link RetireGrantRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class RetireGrantRequestMarshaller implements Marshaller<RetireGrantRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.RetireGrant").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public RetireGrantRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(RetireGrantRequest retireGrantRequest) {
+        Validate.paramNotNull(retireGrantRequest, "retireGrantRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(retireGrantRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/RevokeGrantRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/RevokeGrantRequestMarshaller.java
new file mode 100644
index 0000000..03c0e48
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/RevokeGrantRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.RevokeGrantRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link RevokeGrantRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class RevokeGrantRequestMarshaller implements Marshaller<RevokeGrantRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.RevokeGrant").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public RevokeGrantRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(RevokeGrantRequest revokeGrantRequest) {
+        Validate.paramNotNull(revokeGrantRequest, "revokeGrantRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(revokeGrantRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ScheduleKeyDeletionRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ScheduleKeyDeletionRequestMarshaller.java
new file mode 100644
index 0000000..b6b14ea
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/ScheduleKeyDeletionRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.ScheduleKeyDeletionRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link ScheduleKeyDeletionRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class ScheduleKeyDeletionRequestMarshaller implements Marshaller<ScheduleKeyDeletionRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.ScheduleKeyDeletion").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public ScheduleKeyDeletionRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest) {
+        Validate.paramNotNull(scheduleKeyDeletionRequest, "scheduleKeyDeletionRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(scheduleKeyDeletionRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/SignRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/SignRequestMarshaller.java
new file mode 100644
index 0000000..c10fde1d
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/SignRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.SignRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link SignRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class SignRequestMarshaller implements Marshaller<SignRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.Sign").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public SignRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(SignRequest signRequest) {
+        Validate.paramNotNull(signRequest, "signRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(signRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/TagResourceRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/TagResourceRequestMarshaller.java
new file mode 100644
index 0000000..675b72f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/TagResourceRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.TagResourceRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link TagResourceRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class TagResourceRequestMarshaller implements Marshaller<TagResourceRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.TagResource").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public TagResourceRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(TagResourceRequest tagResourceRequest) {
+        Validate.paramNotNull(tagResourceRequest, "tagResourceRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(tagResourceRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UntagResourceRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UntagResourceRequestMarshaller.java
new file mode 100644
index 0000000..f503e4b
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UntagResourceRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.UntagResourceRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link UntagResourceRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class UntagResourceRequestMarshaller implements Marshaller<UntagResourceRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.UntagResource").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public UntagResourceRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(UntagResourceRequest untagResourceRequest) {
+        Validate.paramNotNull(untagResourceRequest, "untagResourceRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(untagResourceRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateAliasRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateAliasRequestMarshaller.java
new file mode 100644
index 0000000..1757b5e
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateAliasRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.UpdateAliasRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link UpdateAliasRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class UpdateAliasRequestMarshaller implements Marshaller<UpdateAliasRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.UpdateAlias").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public UpdateAliasRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(UpdateAliasRequest updateAliasRequest) {
+        Validate.paramNotNull(updateAliasRequest, "updateAliasRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(updateAliasRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateCustomKeyStoreRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateCustomKeyStoreRequestMarshaller.java
new file mode 100644
index 0000000..1ee421a
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateCustomKeyStoreRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.UpdateCustomKeyStoreRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link UpdateCustomKeyStoreRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class UpdateCustomKeyStoreRequestMarshaller implements Marshaller<UpdateCustomKeyStoreRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.UpdateCustomKeyStore").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public UpdateCustomKeyStoreRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(UpdateCustomKeyStoreRequest updateCustomKeyStoreRequest) {
+        Validate.paramNotNull(updateCustomKeyStoreRequest, "updateCustomKeyStoreRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(updateCustomKeyStoreRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateKeyDescriptionRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateKeyDescriptionRequestMarshaller.java
new file mode 100644
index 0000000..d636522
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdateKeyDescriptionRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.UpdateKeyDescriptionRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link UpdateKeyDescriptionRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class UpdateKeyDescriptionRequestMarshaller implements Marshaller<UpdateKeyDescriptionRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.UpdateKeyDescription").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public UpdateKeyDescriptionRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(UpdateKeyDescriptionRequest updateKeyDescriptionRequest) {
+        Validate.paramNotNull(updateKeyDescriptionRequest, "updateKeyDescriptionRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(updateKeyDescriptionRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdatePrimaryRegionRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdatePrimaryRegionRequestMarshaller.java
new file mode 100644
index 0000000..1ec280f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/UpdatePrimaryRegionRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link UpdatePrimaryRegionRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class UpdatePrimaryRegionRequestMarshaller implements Marshaller<UpdatePrimaryRegionRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.UpdatePrimaryRegion").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public UpdatePrimaryRegionRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(UpdatePrimaryRegionRequest updatePrimaryRegionRequest) {
+        Validate.paramNotNull(updatePrimaryRegionRequest, "updatePrimaryRegionRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(updatePrimaryRegionRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/VerifyMacRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/VerifyMacRequestMarshaller.java
new file mode 100644
index 0000000..ea7e79f
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/VerifyMacRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.VerifyMacRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link VerifyMacRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class VerifyMacRequestMarshaller implements Marshaller<VerifyMacRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.VerifyMac").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public VerifyMacRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(VerifyMacRequest verifyMacRequest) {
+        Validate.paramNotNull(verifyMacRequest, "verifyMacRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(verifyMacRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/VerifyRequestMarshaller.java b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/VerifyRequestMarshaller.java
new file mode 100644
index 0000000..2b6ce82
--- /dev/null
+++ b/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/transform/VerifyRequestMarshaller.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
+ * the License. A copy of the License is located at
+ * 
+ * http://aws.amazon.com/apache2.0
+ * 
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+package software.amazon.awssdk.services.kms.transform;
+
+import software.amazon.awssdk.annotations.Generated;
+import software.amazon.awssdk.annotations.SdkInternalApi;
+import software.amazon.awssdk.core.exception.SdkClientException;
+import software.amazon.awssdk.core.runtime.transform.Marshaller;
+import software.amazon.awssdk.http.SdkHttpFullRequest;
+import software.amazon.awssdk.http.SdkHttpMethod;
+import software.amazon.awssdk.protocols.core.OperationInfo;
+import software.amazon.awssdk.protocols.core.ProtocolMarshaller;
+import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
+import software.amazon.awssdk.services.kms.model.VerifyRequest;
+import software.amazon.awssdk.utils.Validate;
+
+/**
+ * {@link VerifyRequest} Marshaller
+ */
+@Generated("software.amazon.awssdk:codegen")
+@SdkInternalApi
+public class VerifyRequestMarshaller implements Marshaller<VerifyRequest> {
+    private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().requestUri("/")
+            .httpMethod(SdkHttpMethod.POST).hasExplicitPayloadMember(false).hasImplicitPayloadMembers(true)
+            .hasPayloadMembers(true).operationIdentifier("TrentService.Verify").build();
+
+    private final BaseAwsJsonProtocolFactory protocolFactory;
+
+    public VerifyRequestMarshaller(BaseAwsJsonProtocolFactory protocolFactory) {
+        this.protocolFactory = protocolFactory;
+    }
+
+    @Override
+    public SdkHttpFullRequest marshall(VerifyRequest verifyRequest) {
+        Validate.paramNotNull(verifyRequest, "verifyRequest");
+        try {
+            ProtocolMarshaller<SdkHttpFullRequest> protocolMarshaller = protocolFactory
+                    .createProtocolMarshaller(SDK_OPERATION_BINDING);
+            return protocolMarshaller.marshall(verifyRequest);
+        } catch (Exception e) {
+            throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();
+        }
+    }
+}
diff --git a/third-party/third-party-jackson-core/Android.bp b/third-party/third-party-jackson-core/Android.bp
index f501328..b1c4cf9 100644
--- a/third-party/third-party-jackson-core/Android.bp
+++ b/third-party/third-party-jackson-core/Android.bp
@@ -2,10 +2,9 @@
     name: "awssdk-third-party-jackson-core",
     static_libs: ["jackson-core"],
     jarjar_rules: "jarjar-rules.txt",
-    // TODO(b/328041351)
-    // target: {
-    //     windows: {
-    //         enabled: true,
-    //     },
-    // },
+    target: {
+        windows: {
+            enabled: true,
+        },
+    },
 }